| 
									
										
										
										
											2019-02-03 21:45:45 +08:00
										 |  |  | {{-- | 
					
						
							|  |  |  | $name | 
					
						
							|  |  |  | $label | 
					
						
							|  |  |  | $role | 
					
						
							|  |  |  | $action | 
					
						
							|  |  |  | $model? | 
					
						
							|  |  |  | --}} | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  | @include('form.custom-checkbox', [ | 
					
						
							| 
									
										
										
										
											2019-02-03 21:45:45 +08:00
										 |  |  |     'name' => $name . '[' . $role->id . '][' . $action . ']', | 
					
						
							|  |  |  |     'label' => $label, | 
					
						
							|  |  |  |     'value' => 'true', | 
					
						
							|  |  |  |     'checked' => isset($model) && $model->hasRestriction($role->id, $action) | 
					
						
							|  |  |  | ]) |