]>
BookStack Code Mirror - bookstack/blob - resources/views/form/checkbox.blade.php
projects
/
bookstack
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Updated user and shelf views to new design
[bookstack]
/
resources
/
views
/
form
/
checkbox.blade.php
1
{{--
2
$name
3
$label
4
$errors?
5
$model?
6
--}}
7
@include('components.custom-checkbox', [
8
'name' => $name,
9
'label' => $label,
10
'value' => 'true',
11
'checked' => old($name) || (!old() && isset($model) && $model->$name)
12
])
13
14
@if($errors->has($name))
15
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
16
@endif