BookStack/resources/views/form/checkbox.blade.php
2019-02-03 13:45:45 +00:00

16 lines
No EOL
328 B
PHP

{{--
$name
$label
$errors?
$model?
--}}
@include('components.custom-checkbox', [
'name' => $name,
'label' => $label,
'value' => 'true',
'checked' => old($name) || (!old() && isset($model) && $model->$name)
])
@if($errors->has($name))
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
@endif