{!! 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(\BookStack\Auth\Role::restrictable() as $role) @include('form.entity-permissions-row', ['role' => $role, 'model' => $model]) @endforeach
@include('form.entity-permissions-row', ['role' => \BookStack\Auth\Role::getEveryoneElseRole(), 'model' => $model])
{{ trans('common.cancel') }}