11 lines
482 B
PHP
11 lines
482 B
PHP
|
<div class="form-group">
|
||
|
<div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success">
|
||
|
<input type="checkbox" class="custom-control-input" id="{{ $id }}" name="{{ $name ?: $id }}" {{ old($old ?? $name,$value) ? 'checked' : '' }}>
|
||
|
<label class="custom-control-label" for="{{ $id }}">{{ $label }}</label>
|
||
|
</div>
|
||
|
<span class="invalid-feedback @error($id) d-block @enderror" role="alert">
|
||
|
@error($id)
|
||
|
{{ $message }}
|
||
|
@enderror
|
||
|
</span>
|
||
|
</div>
|