mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 12:22:40 +08:00
16 lines
328 B
PHP
16 lines
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 |