{{-- $role - The Role to display this row for. $entityType - String identifier for type of entity having permissions applied. $permission - The entity permission containing the permissions. $inheriting - Boolean if the current row should be marked as inheriting default permissions. Used for "Everyone Else" role. --}}
@icon($role->id === 0 ? 'groups' : 'role')
{{ $role->display_name }}
{{ $role->description }}
@if($role->id !== 0) @endif
@if($role->id === 0)
@include('form.custom-checkbox', [ 'name' => 'entity-permissions-inherit', 'label' => trans('entities.permissions_inherit_defaults'), 'value' => 'true', 'checked' => $inheriting ])
@endif
@include('form.custom-checkbox', [ 'name' => 'permissions[' . $role->id . '][view]', 'label' => trans('common.view'), 'value' => 'true', 'checked' => $permission->view, 'disabled' => $inheriting ])
@if($entityType !== 'page')
@include('form.custom-checkbox', [ 'name' => 'permissions[' . $role->id . '][create]', 'label' => trans('common.create') . ($entityType === 'bookshelf' ? ' *' : ''), 'value' => 'true', 'checked' => $permission->create, 'disabled' => $inheriting ])
@endif
@include('form.custom-checkbox', [ 'name' => 'permissions[' . $role->id . '][update]', 'label' => trans('common.update'), 'value' => 'true', 'checked' => $permission->update, 'disabled' => $inheriting ])
@include('form.custom-checkbox', [ 'name' => 'permissions[' . $role->id . '][delete]', 'label' => trans('common.delete'), 'value' => 'true', 'checked' => $permission->delete, 'disabled' => $inheriting ])
@if($role->id !== 0)
@endif