annotate resources/views/components/form/date.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 |
|
| rev |
line source |
|
0
|
1 @props(['name', 'label', 'value' => '', 'required' => false])
|
|
|
2
|
|
|
3 <div class="mb-3">
|
|
|
4 <label for="{{ $name }}" class="form-label">{{ $label }}</label>
|
|
|
5 <input type="date" name="{{ $name }}" id="{{ $name }}" value="{{ old($name, $value) }}"
|
|
|
6 @if ($required) required @endif class="form-control">
|
|
|
7 @error($name)
|
|
|
8 <div class="text-danger small">{{ $message }}</div>
|
|
|
9 @enderror
|
|
|
10 </div>
|