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

4 lines
202 B
PHP
Raw Normal View History

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