annotate resources/views/components/form/checkbox.blade.php @ 0:9d7dcd54c677

Initial Commit and package setup
author luka
date Sat, 23 Aug 2025 22:20:51 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
1 @props(['name', 'label', 'checked' => false])
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
2
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
3 <div class="mb-3 form-check">
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
4 <input type="checkbox" id="{{ $name }}" name="{{ $name }}" value="1"
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
5 {{ old($name, $checked) ? 'checked' : '' }}
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
6 class="form-check-input">
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
7 <label for="{{ $name }}" class="form-check-label">{{ $label }}</label>
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
8 @error($name)
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
9 <div class="text-danger small">{{ $message }}</div>
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
10 @enderror
9d7dcd54c677 Initial Commit and package setup
luka
parents:
diff changeset
11 </div>