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

13 lines
No EOL
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)
])