{{-- $modelType - The type of permission model; String matching one of: user, role, fallback $modelId - The ID of the permission model. $modelName - The name of the permission model. $modelDescription - The description of the permission model. $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($modelType === 'fallback' ? 'groups' : ($modelType === 'role' ? 'role' : 'user'))
{{ $modelName }}
{{ $modelDescription }}
@if($modelType !== 'fallback') @endif
@if($modelType === 'fallback')
@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[' . $modelType . '][' . $modelId . '][view]', 'label' => trans('common.view'), 'value' => 'true', 'checked' => $permission->view, 'disabled' => $inheriting ])
@if($entityType !== 'page')
@include('form.custom-checkbox', [ 'name' => 'permissions[' . $modelType . '][' . $modelId . '][create]', 'label' => trans('common.create'), 'value' => 'true', 'checked' => $permission->create, 'disabled' => $inheriting ])
@endif
@include('form.custom-checkbox', [ 'name' => 'permissions[' . $modelType . '][' . $modelId . '][update]', 'label' => trans('common.update'), 'value' => 'true', 'checked' => $permission->update, 'disabled' => $inheriting ])
@include('form.custom-checkbox', [ 'name' => 'permissions[' . $modelType . '][' . $modelId . '][delete]', 'label' => trans('common.delete'), 'value' => 'true', 'checked' => $permission->delete, 'disabled' => $inheriting ])
@if($modelType !== 'fallback')
@endif