@props(['name', 'label', 'checked' => false])

<div class="mb-3 form-check">
    <input type="checkbox" id="{{ $name }}" name="{{ $name }}" value="1"
        {{ old($name, $checked) ? 'checked' : '' }}
        class="form-check-input">
    <label for="{{ $name }}" class="form-check-label">{{ $label }}</label>
    @error($name)
        <div class="text-danger small">{{ $message }}</div>
    @enderror
</div>
