BookStack/resources/views/components/toggle-switch.blade.php

4 lines
190 B
PHP

<div toggle-switch class="toggle-switch @if($value) active @endif">
<input type="hidden" name="{{$name}}" value="{{$value?'true':'false'}}"/>
<div class="switch-handle"></div>
</div>