@props([
'disabled' => false,
'label' => null,
'checked' => false,
'name' => $attributes->get('name'),
'id' => $attributes->get('name'),
])
@if($label)
<label for="{{ $id }}" class="flex items-center">
    <input id="{{ $id }}" {{ $disabled ? 'disabled' : '' }} {{ $checked ? 'checked' : '' }} type="checkbox" name="{{ $name }}" {!! $attributes->merge(['class' => 'form-checkbox']) !!}>
    <span class="ml-2 text-gray-600">{{ $label }}</span>
</label>
@else
<input id="{{ $id }}" {{ $disabled ? 'disabled' : '' }} {{ $checked ? 'checked' : '' }} type="checkbox" name="{{ $name }}" {!! $attributes->merge(['class' => 'form-checkbox']) !!}>
@endif