{!! csrf_field() !!}

{{ trans('entities.permissions_intro') }}

@include('form.user-select', ['user' => $model->ownedBy, 'name' => 'owned_by'])
@if($model instanceof \BookStack\Entities\Models\Bookshelf)

{{ trans('entities.shelves_permissions_cascade_warning') }}

@endif
@foreach($data->permissionsWithRoles() as $permission) @include('form.entity-permissions-row', [ 'permission' => $permission, 'role' => $permission->role, 'entityType' => $model->getType(), 'inheriting' => false, ]) @endforeach
@include('form.entity-permissions-row', [ 'role' => $data->everyoneElseRole(), 'permission' => $data->everyoneElseEntityPermission(), 'entityType' => $model->getType(), 'inheriting' => !$model->permissions()->where('role_id', '=', 0)->exists(), ])
{{ trans('common.cancel') }}