1 <form action="{{ $model->getUrl('/permissions') }}" method="POST">
3 <input type="hidden" name="_method" value="PUT">
5 <p>{{ trans('entities.permissions_intro') }}</p>
7 <div class="form-group">
8 @include('form/checkbox', ['name' => 'restricted', 'label' => trans('entities.permissions_enable')])
14 <th>{{ trans('common.role') }}</th>
15 <th @if($model->isA('page')) colspan="3" @else colspan="4" @endif>{{ trans('common.actions') }}</th>
17 @foreach($roles as $role)
19 <td>{{ $role->display_name }}</td>
20 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.view'), 'action' => 'view'])</td>
21 @if(!$model->isA('page'))
22 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.create'), 'action' => 'create'])</td>
24 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.update'), 'action' => 'update'])</td>
25 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => trans('common.delete'), 'action' => 'delete'])</td>
30 <div class="text-right">
31 <a href="{{ $model->getUrl() }}" class="button outline">{{ trans('common.cancel') }}</a>
32 <button type="submit" class="button pos">{{ trans('entities.permissions_save') }}</button>