16 lines
505 B
PHP
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>
|