mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 13:58:29 +08:00
13 lines
273 B
PHP
13 lines
273 B
PHP
{{--
|
|
$name
|
|
$label
|
|
$role
|
|
$action
|
|
$model?
|
|
--}}
|
|
@include('components.custom-checkbox', [
|
|
'name' => $name . '[' . $role->id . '][' . $action . ']',
|
|
'label' => $label,
|
|
'value' => 'true',
|
|
'checked' => isset($model) && $model->hasRestriction($role->id, $action)
|
|
]) |