1 <form action="{{ $model->getUrl('/permissions') }}" method="POST">
3 <input type="hidden" name="_method" value="PUT">
5 <p>Once enabled, These permissions will take priority over any set role permissions.</p>
7 <div class="form-group">
8 @include('form/checkbox', ['name' => 'restricted', 'label' => 'Enable custom permissions'])
15 <th @if($model->isA('page')) colspan="3" @else colspan="4" @endif>Actions</th>
17 @foreach($roles as $role)
19 <td>{{ $role->display_name }}</td>
20 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'View', 'action' => 'view'])</td>
21 @if(!$model->isA('page'))
22 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Create', 'action' => 'create'])</td>
24 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Update', 'action' => 'update'])</td>
25 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Delete', 'action' => 'delete'])</td>
30 <a href="{{ $model->getUrl() }}" class="button muted">Cancel</a>
31 <button type="submit" class="button pos">Save Permissions</button>