Mercurial > borealpoint
view resources/views/components/form/checkbox.blade.php @ 2:90296614b7e2 default tip
Adding in the base for the clients table
| author | luka |
|---|---|
| date | Thu, 28 Aug 2025 20:55:40 -0400 |
| parents | 9d7dcd54c677 |
| 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>
