Added toggle form helper
This commit is contained in:
parent
e3ebef90d9
commit
05d3caddf4
11
resources/themes/adminlte/views/widget/form_toggle.blade.php
Normal file
11
resources/themes/adminlte/views/widget/form_toggle.blade.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<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>
|
Loading…
Reference in New Issue
Block a user