| 
									
										
										
										
											2019-02-03 21:45:45 +08:00
										 |  |  | {{-- | 
					
						
							|  |  |  | $name | 
					
						
							|  |  |  | $label | 
					
						
							|  |  |  | $errors? | 
					
						
							|  |  |  | $model? | 
					
						
							|  |  |  | --}} | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  | @include('form.custom-checkbox', [ | 
					
						
							| 
									
										
										
										
											2019-02-03 21:45:45 +08:00
										 |  |  |     'name' => $name, | 
					
						
							|  |  |  |     'label' => $label, | 
					
						
							|  |  |  |     'value' => 'true', | 
					
						
							|  |  |  |     'checked' => old($name) || (!old() && isset($model) && $model->$name) | 
					
						
							|  |  |  | ]) | 
					
						
							| 
									
										
										
										
											2016-02-28 18:49:41 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | @if($errors->has($name)) | 
					
						
							|  |  |  |     <div class="text-neg text-small">{{ $errors->first($name) }}</div> | 
					
						
							|  |  |  | @endif |