BookStack/resources/views/form/restriction-checkbox.blade.php

13 lines
267 B
PHP
Raw Normal View History

{{--
$name
$label
$role
$action
$model?
--}}
@include('form.custom-checkbox', [
'name' => $name . '[' . $role->id . '][' . $action . ']',
'label' => $label,
'value' => 'true',
'checked' => isset($model) && $model->hasRestriction($role->id, $action)
])