{!! csrf_field() !!}

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

@include('form.checkbox', [ 'name' => 'restricted', 'label' => trans('entities.permissions_enable'), ])
@include('form.user-select', ['user' => $model->ownedBy, 'name' => 'owned_by', 'compact' => false])
@if($model instanceof \BookStack\Entities\Models\Bookshelf)

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

@endif
@foreach(\BookStack\Auth\Role::restrictable() as $role) @if(!$model->isA('page')) @endif @endforeach
{{ trans('common.role') }} {{ trans('common.actions') }} {{ trans('common.toggle_all') }}
{{ $role->display_name }} {{ trans('common.toggle_all') }} @include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.view'), 'action' => 'view'])@include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.create'), 'action' => 'create'])@include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.update'), 'action' => 'update']) @include('form.restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.delete'), 'action' => 'delete'])
{{ trans('common.cancel') }}