{!! csrf_field() !!}

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

@include('form.checkbox', [ 'name' => 'restricted', 'label' => trans('entities.permissions_enable'), ])
@include('components.user-select', ['user' => $model->ownedBy, 'name' => 'owned_by', 'compact' => false])

@foreach(\BookStack\Auth\Role::restrictable() as $role) @if(!$model->isA('page')) @endif @endforeach
{{ trans('common.role') }} isA('page')) colspan="3" @else colspan="4" @endif> {{ 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') }}