ldc-com-app-bo/resources/views/bo/partials/inputs/boolean-switch.blade.php
2023-04-18 10:19:33 +02:00

16 lines
505 B
PHP

<div class="form-check form-switch">
<input id="booleanSwitch{{ $id }}"
class="form-check-input"
name="{{ $name }}"
type="checkbox"
value="1"
role="button"
@if (old('status', $value ?? $model->{$name} ?? '')) checked @endif>
<label class="form-check-label" for="booleanSwitch{{ $id }}" role="button">
<b>{{ $label }}</b>
</label>
<br>
@if ($helper)
<small class="form-text text-muted">{{ $helper }}</small>
@endif
</div>