17 lines
713 B
PHP
17 lines
713 B
PHP
<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($old ?? $name) is-invalid @enderror" id="{{ $id ?? $name }}" name="{{ $name }}" @checked(old($old ?? $name,$value ?? '')) @readonly(isset($readonly)) @required(isset($required)) @disabled(isset($disabled))>
|
|
@if(isset($label))
|
|
<label class="custom-control-label" for="{{ $id ?? $name }}">{{ $label }}</label>
|
|
@endif
|
|
</div>
|
|
<span class="invalid-feedback">
|
|
@error($name)
|
|
{{ $message }}
|
|
@elseif(isset($feedback))
|
|
{{ $feedback }}
|
|
@enderror
|
|
</span>
|
|
</div>
|
|
</div> |