| 
									
										
										
										
											2016-02-28 03:24:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-03 21:45:45 +08:00
										 |  |  | <div class="toggle-switch-list dual-column-content"> | 
					
						
							|  |  |  |     @foreach($roles as $role) | 
					
						
							|  |  |  |         <div> | 
					
						
							|  |  |  |             @include('components.custom-checkbox', [ | 
					
						
							| 
									
										
										
										
											2019-04-15 22:42:18 +08:00
										 |  |  |                 'name' => $name . '[' . str_replace('.', 'DOT', $role->name) . ']', | 
					
						
							| 
									
										
										
										
											2019-02-03 21:45:45 +08:00
										 |  |  |                 'label' => $role->display_name, | 
					
						
							|  |  |  |                 'value' => $role->id, | 
					
						
							| 
									
										
										
										
											2019-04-15 22:42:18 +08:00
										 |  |  |                 'checked' => old($name . '.' . str_replace('.', 'DOT', $role->name)) || (!old('name') && isset($model) && $model->hasRole($role->name)) | 
					
						
							| 
									
										
										
										
											2019-02-03 21:45:45 +08:00
										 |  |  |             ]) | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     @endforeach | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2016-02-28 03:24:42 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | @if($errors->has($name)) | 
					
						
							|  |  |  |     <div class="text-neg text-small">{{ $errors->first($name) }}</div> | 
					
						
							|  |  |  | @endif |