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

4 lines
190 B
PHP
Raw Normal View History

<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>