comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:9d7dcd54c677
1 @props(['name', 'label', 'checked' => false])
2
3 <div class="mb-3 form-check">
4 <input type="checkbox" id="{{ $name }}" name="{{ $name }}" value="1"
5 {{ old($name, $checked) ? 'checked' : '' }}
6 class="form-check-input">
7 <label for="{{ $name }}" class="form-check-label">{{ $label }}</label>
8 @error($name)
9 <div class="text-danger small">{{ $message }}</div>
10 @enderror
11 </div>