2019-02-03 13:45:45 +00:00
|
|
|
{{--
|
|
|
|
$name
|
|
|
|
$value
|
|
|
|
$checked
|
|
|
|
$label
|
2019-06-04 09:45:44 +00:00
|
|
|
$tabindex
|
2019-02-03 13:45:45 +00:00
|
|
|
--}}
|
2019-06-04 09:45:44 +00:00
|
|
|
<label custom-checkbox class="toggle-switch @if($errors->has($name)) text-neg @endif">
|
2019-02-03 13:45:45 +00:00
|
|
|
<input type="checkbox" name="{{$name}}" value="{{ $value }}" @if($checked) checked="checked" @endif>
|
2019-06-04 09:45:44 +00:00
|
|
|
<span tabindex="{{ $tabindex ?? '0' }}"
|
|
|
|
role="checkbox"
|
|
|
|
aria-checked="{{ $checked ? 'true' : 'false' }}"
|
|
|
|
class="custom-checkbox text-primary">@icon('check')</span>
|
2019-02-03 13:45:45 +00:00
|
|
|
<span class="label">{{$label}}</span>
|
|
|
|
</label>
|