ldc-com-app-bo/resources/views/bo/partials/inputs/tinyint-boolean.blade.php

16 lines
513 B
PHP
Raw Permalink Normal View History

2023-03-14 14:57:03 +01:00
<label class="col-form-label" for="{{ $id }}"><b>{{ $label }}</b></label>
<div class="form-check form-switch ms-2">
2023-03-27 12:17:31 +02:00
<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>
2023-03-14 14:57:03 +01:00
</div>
@include('modules.input-error', [
2023-03-27 12:17:31 +02:00
'inputName' => $name,
'helperId' => '{{ $id }}Help',
'helper' => $helper
2023-03-14 17:43:46 +01:00
])