2024-07-23 13:50:02 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group has-validation">
|
|
|
|
<div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success">
|
2024-08-17 03:14:51 +00:00
|
|
|
<input type="checkbox" class="custom-control-input @error((! empty($old)) ? $old : $name) is-invalid @enderror" id="{{ $id ?? $name }}" name="{{ $name }}" @checked(old($old ?? $name,$value ?? '')) @readonly(isset($readonly)) @required(isset($required)) @disabled(isset($disabled))>
|
2024-07-23 13:50:02 +00:00
|
|
|
@if(isset($label))
|
|
|
|
<label class="custom-control-label" for="{{ $id ?? $name }}">{{ $label }}</label>
|
|
|
|
@endif
|
|
|
|
</div>
|
2024-08-14 12:19:53 +00:00
|
|
|
<span class="invalid-feedback">
|
2024-07-23 13:50:02 +00:00
|
|
|
@error($name)
|
|
|
|
{{ $message }}
|
|
|
|
@elseif(isset($feedback))
|
|
|
|
{{ $feedback }}
|
|
|
|
@enderror
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|