2019-02-03 08:45:45 -05:00
|
|
|
{{--
|
|
|
|
$name
|
|
|
|
$value
|
|
|
|
$checked
|
|
|
|
$label
|
|
|
|
--}}
|
2022-11-15 07:44:57 -05:00
|
|
|
<label component="custom-checkbox" class="toggle-switch @if($errors->has($name)) text-neg @endif">
|
2022-10-02 13:09:48 -04:00
|
|
|
<input type="checkbox" name="{{$name}}" value="{{ $value }}" @if($checked) checked="checked" @endif @if($disabled ?? false) disabled="disabled" @endif>
|
2019-10-17 09:21:13 -04:00
|
|
|
<span tabindex="0" role="checkbox"
|
2019-06-04 05:45:44 -04:00
|
|
|
aria-checked="{{ $checked ? 'true' : 'false' }}"
|
|
|
|
class="custom-checkbox text-primary">@icon('check')</span>
|
2019-02-03 08:45:45 -05:00
|
|
|
<span class="label">{{$label}}</span>
|
|
|
|
</label>
|