{{-- Reusable date-range filter component for report pages. Props: - $dateRangeModel (string) wire:model key for the preset select, e.g. "dateRange" - $dateFromModel (string) wire:model key for the custom start date, e.g. "dateFrom" - $dateToModel (string) wire:model key for the custom end date, e.g. "dateTo" - $currentRange (string) current value of the preset select (passed in from the page) Usage: Flatpickr is vendored locally under public/vendor/ and loaded once globally (no third-party CDN is contacted at runtime). It is initialized on demand via Alpine when the custom range is active. --}} @props([ 'dateRangeModel' => 'dateRange', 'dateFromModel' => 'dateFrom', 'dateToModel' => 'dateTo', 'currentRange' => 'custom', ])
{{-- Flatpickr — vendored locally under public/vendor/ so no third- party CDN is contacted at runtime. Only loaded once globally. --}} @once @endonce
{{ $slot }}