2019-02-03 14:45:45 +01:00
|
|
|
{{--
|
|
|
|
$name
|
|
|
|
$label
|
|
|
|
$role
|
|
|
|
$action
|
|
|
|
$model?
|
|
|
|
--}}
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('form.custom-checkbox', [
|
2019-02-03 14:45:45 +01:00
|
|
|
'name' => $name . '[' . $role->id . '][' . $action . ']',
|
|
|
|
'label' => $label,
|
|
|
|
'value' => 'true',
|
|
|
|
'checked' => isset($model) && $model->hasRestriction($role->id, $action)
|
|
|
|
])
|