mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-12 05:23:40 +08:00
8 lines
432 B
PHP
8 lines
432 B
PHP
<label toggle-switch="{{$name}}" custom-checkbox class="toggle-switch">
|
|
<input type="hidden" name="{{$name}}" value="{{$value?'true':'false'}}"/>
|
|
<input type="checkbox" @if($value) checked="checked" @endif>
|
|
<span tabindex="0" role="checkbox"
|
|
aria-checked="{{ $value ? 'true' : 'false' }}"
|
|
class="custom-checkbox text-primary">@icon('check')</span>
|
|
<span class="label">{{ $label }}</span>
|
|
</label> |