Mercurial > packages > framework
comparison resources/views/components/form/checkbox.blade.php @ 1:56d9c64d64aa
Setting up the base, still have plenty of work to be done here.
| author | luka |
|---|---|
| date | Mon, 09 Jun 2025 23:07:17 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:07e7262a8cce | 1:56d9c64d64aa |
|---|---|
| 1 @props(['name', 'label', 'checked' => false]) | |
| 2 | |
| 3 <div class="mb-4 flex items-center"> | |
| 4 <input type="checkbox" id="{{ $name }}" name="{{ $name }}" value="1" | |
| 5 {{ old($name, $checked) ? 'checked' : '' }} | |
| 6 class="rounded border-gray-300 text-blue-600 shadow-sm focus:ring-blue-200"> | |
| 7 <label for="{{ $name }}" class="ml-2 text-gray-700">{{ $label }}</label> | |
| 8 @error($name) | |
| 9 <span class="text-red-600 text-sm">{{ $message }}</span> | |
| 10 @enderror | |
| 11 </div> |
