2 $role - The Role to display this row for.
3 $entityType - String identifier for type of entity having permissions applied.
4 $permission - The entity permission containing the permissions.
5 $inheriting - Boolean if the current row should be marked as inheriting default permissions. Used for "Everyone Else" role.
8 <div component="permissions-table" class="item-list-row flex-container-row justify-space-between wrap">
9 <div class="gap-x-m flex-container-row items-center px-l py-m flex">
10 <div class="text-large" title="{{ $role->id === 0 ? trans('entities.permissions_role_everyone_else') : trans('common.role') }}">
11 @icon($role->id === 0 ? 'groups' : 'role')
14 <strong>{{ $role->display_name }}</strong> <br>
15 <small class="text-muted">{{ $role->description }}</small>
19 class="ml-auto flex-none text-small text-link text-button hover-underline item-list-row-toggle-all hide-under-s"
20 refs="permissions-table@toggle-all"
21 ><strong>{{ trans('common.toggle_all') }}</strong></button>
25 <div class="px-l flex-container-row items-center" refs="entity-permissions@everyone-inherit">
26 @include('form.custom-checkbox', [
27 'name' => 'entity-permissions-inherit',
28 'label' => trans('entities.permissions_inherit_defaults'),
30 'checked' => $inheriting
34 <div class="flex-container-row justify-space-between gap-x-xl wrap items-center">
35 <input type="hidden" name="permissions[{{ $role->id }}][active]"
36 @if($inheriting) disabled="disabled" @endif
39 @include('form.custom-checkbox', [
40 'name' => 'permissions[' . $role->id . '][view]',
41 'label' => trans('common.view'),
43 'checked' => $permission->view,
44 'disabled' => $inheriting
47 @if($entityType !== 'page')
49 @include('form.custom-checkbox', [
50 'name' => 'permissions[' . $role->id . '][create]',
51 'label' => trans('common.create') . ($entityType === 'bookshelf' ? ' *' : ''),
53 'checked' => $permission->create,
54 'disabled' => $inheriting
59 @include('form.custom-checkbox', [
60 'name' => 'permissions[' . $role->id . '][update]',
61 'label' => trans('common.update'),
63 'checked' => $permission->update,
64 'disabled' => $inheriting
68 @include('form.custom-checkbox', [
69 'name' => 'permissions[' . $role->id . '][delete]',
70 'label' => trans('common.delete'),
72 'checked' => $permission->delete,
73 'disabled' => $inheriting
78 <div class="flex-container-row items-center px-m py-s">
80 class="text-neg p-m icon-button"
81 data-role-id="{{ $role->id }}"
82 data-role-name="{{ $role->display_name }}"
83 title="{{ trans('common.remove') }}">
84 @icon('close') <span class="hide-over-m ml-xs">{{ trans('common.remove') }}</span>