@props(['name', 'label', 'value' => '', 'required' => false])

<div class="mb-3">
    <label for="{{ $name }}" class="form-label">{{ $label }}</label>
    <input type="date" name="{{ $name }}" id="{{ $name }}" value="{{ old($name, $value) }}"
        @if ($required) required @endif class="form-control">
    @error($name)
        <div class="text-danger small">{{ $message }}</div>
    @enderror
</div>
