{!! csrf_field() !!}

{{ $title }}

{{--

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

--}}

Set permissions here to override the default permissions provided by user roles. @if($model instanceof \BookStack\Entities\Models\Book)
Permissions set on books will automatically cascade to child chapters and pages, unless they have their own permissions defined. @endif @if($model instanceof \BookStack\Entities\Models\Chapter)
Permissions set on chapters will automatically cascade to child pages, unless they have their own permissions defined. @endif

@if($model instanceof \BookStack\Entities\Models\Bookshelf)

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

@endif
@include('form.user-select', ['user' => $model->ownedBy, 'name' => 'owned_by'])

@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') }}