{{-- Reporting period selector: quarter presets swap the report body via HTMX (falling back to a full page load without JS), the custom range submits a plain GET form. @props period: \Leantime\Domain\Reports\Models\ReportPeriod - the active period url: string - page URL (fallback links, pushed browser URL, custom-range form action) hxUrl: string - HTMX endpoint rendering the report body partial target: string - CSS selector of the report body element to swap --}} @props(['period', 'url', 'hxUrl', 'target' => '#reportBody']) @php $presets = [ \Leantime\Domain\Reports\Models\ReportPeriod::PRESET_LAST_QUARTER => __('label.period_last_quarter'), \Leantime\Domain\Reports\Models\ReportPeriod::PRESET_THIS_QUARTER => __('label.period_this_quarter'), \Leantime\Domain\Reports\Models\ReportPeriod::PRESET_NEXT_QUARTER => __('label.period_next_quarter'), ]; $isCustom = $period->preset === \Leantime\Domain\Reports\Models\ReportPeriod::PRESET_CUSTOM; @endphp