{{-- Shared toolbar for all report pages. Variables expected: $active ('occupancy'|'revenue'|'night-audit'), $from, $to, $date --}}
{{-- Tab switcher --}}
Occupancy Revenue Night Audit
{{-- Date picker form — adapts to the active tab --}} @if($active === 'night-audit')
@if($date !== now()->toDateString()) Today @endif CSV Excel Print
@else
{{-- Quick presets --}}
@php $presets = [ 'This Month' => ['from' => now()->startOfMonth()->toDateString(), 'to' => now()->toDateString()], 'Last Month' => ['from' => now()->subMonth()->startOfMonth()->toDateString(), 'to' => now()->subMonth()->endOfMonth()->toDateString()], 'Last 7d' => ['from' => now()->subDays(6)->toDateString(), 'to' => now()->toDateString()], 'Last 30d' => ['from' => now()->subDays(29)->toDateString(), 'to' => now()->toDateString()], ]; @endphp @foreach($presets as $label => $params) @php $isActive = $from === $params['from'] && $to === $params['to']; @endphp {{ $label }} @endforeach
CSV Excel Print
@endif
@push('pageTour') @php $__pageTour = [ ['target' => '[data-tour=report-tabs]', 'title' => 'Switch report', 'desc' => 'Jump between the Occupancy, Revenue, and Night Audit views — your selected date range carries across.'], ['target' => '[data-tour=date-range]', 'title' => 'Pick a period', 'desc' => 'Set a custom From/To range (or use a quick preset like This Month or Last 7 days), then Apply.'], ['target' => '[data-tour=summary-tiles]', 'title' => 'Headline numbers','desc' => 'The KPI tiles summarize the whole selected period at a glance.'], ['target' => '[data-tour=export-actions]', 'title' => 'Export & print', 'desc' => 'Download the report as CSV or Excel (.xlsx), or open a print-ready letterhead version.'], ]; @endphp @endpush