15 lines
428 B
PHP
15 lines
428 B
PHP
@props([
|
|
'class' => '', // extra CSS classes
|
|
'name' => '', // input name
|
|
'value' => '', // input value
|
|
'style' => '', // raw style string
|
|
'checked' => false // true/false or truthy value
|
|
])
|
|
|
|
<input type="checkbox"
|
|
name="{{ $name }}"
|
|
value="{{ $value }}"
|
|
{{ $attributes->class($class) }}
|
|
@if($style !== '') style="{{ $style }}" @endif
|
|
@checked($checked) />
|