15 lines
		
	
	
		
			580 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			580 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
@props([
 | 
						|
    'label'      => '',   // label text
 | 
						|
    'labelclass' => '',   // extra CSS classes for the label
 | 
						|
    'checkclass' => '',   // checkbox classes
 | 
						|
    'name'       => '',   // checkbox name
 | 
						|
    'value'      => '',   // checkbox value
 | 
						|
    'style'      => '',   // raw style string for the checkbox
 | 
						|
    'checked'    => false // true/false or truthy value
 | 
						|
])
 | 
						|
 | 
						|
<label {{ $attributes->class("checkbox-label $labelclass") }}>
 | 
						|
    <x-input.checkbox :name="$name" :value="$value" :class="$checkclass" :style="$style" :checked="$checked" />
 | 
						|
    <span>{{ $label }}</span>
 | 
						|
</label>
 |