17 lines
528 B
PHP
17 lines
528 B
PHP
<label class="col-form-label" for="{{ $id }}">
|
|
<b>{{ $label }}</b>
|
|
</label>
|
|
<div class="form-check form-switch ms-2">
|
|
<input id="{{ $id }}"
|
|
aria-describedby="{{ $id }}Help"
|
|
name="{{ $name }}"
|
|
type="checkbox"
|
|
class="ml-2 form-check-input"
|
|
value="1"
|
|
@if(old($name, (old('_token') ? false : ($model->{$name} ?? false))))
|
|
checked
|
|
@endif>
|
|
</div>
|
|
@include('modules.input-error', [
|
|
'inputName' => $name, 'helperId' => '{{ $id }}Help' , 'helper' => $helper
|
|
])
|