@extends('crm.master') @section('title', 'Booking Volume') @php $dateRanges = [ 'last_12_months' => 'Last 12 months', 'this_month' => 'This month', 'last_month' => 'Last month', 'last_3_months' => 'Last 3 months', 'last_6_months' => 'Last 6 months', 'all' => 'All bookings', 'custom' => 'Custom', ]; $nextDir = fn ($column) => $sort === $column && $dir === 'asc' ? 'desc' : 'asc'; $sortLink = fn ($column) => route('crm.reports.booking-volume', array_merge(request()->query(), [ 'sort' => $column, 'dir' => $nextDir($column), ])); $toggleChartLink = route('crm.reports.booking-volume', array_merge(request()->query(), [ 'show_chart' => $showChart ? 0 : 1, ])); @endphp @section('content')

Booking Volume

{{ $label }}
@if($dateRange === 'custom')
@endif
@if($showChart)
@endif
@forelse($rows as $row) @empty @endforelse
Date Bookings Qty Total
{{ $row->date_label }} {{ number_format($row->bookings) }} {{ number_format($row->quantity) }} ${{ number_format($row->total, 2) }}
No booking volume found for the selected period.
Total {{ number_format($totals['bookings']) }} {{ number_format($totals['quantity']) }} ${{ number_format($totals['total'], 2) }}
@endsection @section('head-extra') @endsection @section('page-script') @if($showChart) @endif @endsection