{!! 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() ]) @endforeach
@include('form.entity-permissions-row', [ 'role' => $data->everyoneElseRole(), 'permission' => new \BookStack\Auth\Permissions\EntityPermission(), 'entityType' => $model->getType(), ])
{{ trans('common.cancel') }}