2018-08-04 19:07:32 +03:00
|
|
|
@stack($name . '_input_start')
|
2019-11-16 10:21:14 +03:00
|
|
|
<div
|
|
|
|
class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }}"
|
2019-11-21 12:46:13 +03:00
|
|
|
:class="[{'has-error': {{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }} }]">
|
2019-11-16 10:21:14 +03:00
|
|
|
{!! Form::label($name, $text, ['class' => 'form-control-label']) !!}
|
2018-08-04 19:07:32 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="tab-pane tab-example-result fade show active" role="tabpanel" aria-labelledby="-component-tab">
|
|
|
|
<div class="btn-group btn-group-toggle radio-yes-no" data-toggle="buttons">
|
2019-12-16 18:25:17 +03:00
|
|
|
<label class="btn btn-success" @click="form.{{ $name }}=1" v-bind:class="{ active: form.{{ $name }} }">
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ trans('general.yes') }}
|
2019-12-14 10:03:41 +03:00
|
|
|
<input type="radio" name="{{ $name }}-1" id="{{ $name }}-1" v-model="{{ !empty($attributes['v-model']) ? $attributes['v-model'] : 'form.' . $name }}">
|
2017-09-14 22:21:00 +03:00
|
|
|
</label>
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2019-12-16 18:25:17 +03:00
|
|
|
<label class="btn btn-danger" @click="form.{{ $name }}=0" v-bind:class="{ active: !form.{{ $name }} }">
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ trans('general.no') }}
|
2019-12-14 10:03:41 +03:00
|
|
|
<input type="radio" name="{{ $name }}-0" id="{{ $name }}-0" v-model="{{ !empty($attributes['v-model']) ? $attributes['v-model'] : 'form.' . $name }}">
|
2017-09-14 22:21:00 +03:00
|
|
|
</label>
|
|
|
|
</div>
|
2019-12-16 18:25:17 +03:00
|
|
|
<input type="radio" name="{{ $name }}" value="{{ $value ? true : false }}" class="d-none">
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
<div class="invalid-feedback d-block"
|
2019-11-21 12:46:13 +03:00
|
|
|
v-if="{{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.has("' . $name . '")' }}"
|
|
|
|
v-html="{{ isset($attributes['v-error-message']) ? $attributes['v-error-message'] : 'form.errors.get("' . $name . '")' }}">
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
2018-08-04 19:07:32 +03:00
|
|
|
|
|
|
|
@stack($name . '_input_end')
|