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

17 lines
505 B
PHP
Raw Permalink Normal View History

2023-03-27 12:17:31 +02:00
<div class="form-check form-switch">
<input id="booleanSwitch{{ $id }}"
class="form-check-input"
name="{{ $name }}"
type="checkbox"
value="1"
role="button"
2023-04-17 17:46:20 +02:00
@if (old('status', $value ?? $model->{$name} ?? '')) checked @endif>
2023-03-27 12:17:31 +02:00
<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>