Add old tag for components, for values that are nested in an array. Enable LeenooksCarbon to accept a string date when setting.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<div class="form-group">
|
||||
<div class="input-group has-validation">
|
||||
<div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success">
|
||||
<input type="checkbox" class="custom-control-input @error($name) is-invalid @enderror" id="{{ $id ?? $name }}" name="{{ $name }}" @checked(old($name,$value ?? ''))>
|
||||
<input type="checkbox" class="custom-control-input @error($old ?? $name) is-invalid @enderror" id="{{ $id ?? $name }}" name="{{ $name }}" @checked(old($old ?? $name,$value ?? ''))>
|
||||
@if(isset($label))
|
||||
<label class="custom-control-label" for="{{ $id ?? $name }}">{{ $label }}</label>
|
||||
@endif
|
||||
|
Reference in New Issue
Block a user