| 
									
										
										
										
											2016-03-31 03:15:44 +08:00
										 |  |  | <form action="{{ $model->getUrl() }}/permissions" method="POST"> | 
					
						
							| 
									
										
										
										
											2016-02-28 18:49:41 +08:00
										 |  |  |     {!! csrf_field() !!} | 
					
						
							|  |  |  |     <input type="hidden" name="_method" value="PUT"> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-31 03:15:44 +08:00
										 |  |  |     <p>Once enabled, These permissions will take priority over any set role permissions.</p> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-28 18:49:41 +08:00
										 |  |  |     <div class="form-group"> | 
					
						
							| 
									
										
										
										
											2016-03-31 03:15:44 +08:00
										 |  |  |         @include('form/checkbox', ['name' => 'restricted', 'label' => 'Enable custom permissions']) | 
					
						
							| 
									
										
										
										
											2016-02-28 18:49:41 +08:00
										 |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-31 03:15:44 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-02-28 18:49:41 +08:00
										 |  |  |     <table class="table"> | 
					
						
							|  |  |  |         <tr> | 
					
						
							|  |  |  |             <th>Role</th> | 
					
						
							|  |  |  |             <th @if($model->isA('page')) colspan="3" @else colspan="4" @endif>Actions</th> | 
					
						
							|  |  |  |         </tr> | 
					
						
							|  |  |  |         @foreach($roles as $role) | 
					
						
							|  |  |  |             <tr> | 
					
						
							|  |  |  |                 <td>{{ $role->display_name }}</td> | 
					
						
							|  |  |  |                 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'View', 'action' => 'view'])</td> | 
					
						
							|  |  |  |                 @if(!$model->isA('page')) | 
					
						
							|  |  |  |                     <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Create', 'action' => 'create'])</td> | 
					
						
							|  |  |  |                 @endif | 
					
						
							|  |  |  |                 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Update', 'action' => 'update'])</td> | 
					
						
							|  |  |  |                 <td>@include('form/restriction-checkbox', ['name'=>'restrictions', 'label' => 'Delete', 'action' => 'delete'])</td> | 
					
						
							|  |  |  |             </tr> | 
					
						
							|  |  |  |         @endforeach | 
					
						
							|  |  |  |     </table> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-06 02:09:21 +08:00
										 |  |  |     <a href="{{ $model->getUrl() }}" class="button muted">Cancel</a> | 
					
						
							| 
									
										
										
										
											2016-03-31 03:15:44 +08:00
										 |  |  |     <button type="submit" class="button pos">Save Permissions</button> | 
					
						
							| 
									
										
										
										
											2016-02-28 18:49:41 +08:00
										 |  |  | </form> |