16 lines
		
	
	
		
			322 B
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			322 B
		
	
	
	
		
			PHP
		
	
	
	
| {{--
 | |
| $name
 | |
| $label
 | |
| $errors?
 | |
| $model?
 | |
| --}}
 | |
| @include('form.custom-checkbox', [
 | |
|     'name' => $name,
 | |
|     'label' => $label,
 | |
|     'value' => 'true',
 | |
|     'checked' => old($name) || (!old() && isset($model) && $model->$name)
 | |
| ])
 | |
| 
 | |
| @if($errors->has($name))
 | |
|     <div class="text-neg text-small">{{ $errors->first($name) }}</div>
 | |
| @endif |