Mercurial > packages > framework
view publishable/resources/views/components/form/checkbox.blade.php @ 7:e6132a1e8e24 default tip
Adding better support for test among other base changes.
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Thu, 25 Sep 2025 19:58:32 -0400 |
| parents | 84c75d9d90be |
| children |
line wrap: on
line source
@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>
