@extends('layouts.admin', [ 'title' => 'Booking Report', 'pageTitle' => 'Booking Report', 'active' => 'reports', ]) @section('content')

Analyze booking volume, appointment status, and appointment history by date range.

@include('admin.reports.partials.nav', ['activeTab' => 'bookings'])
@include('admin.reports.partials.filters')
@forelse ($bookingsByDate as $bar)
{{ $bar['label'] }}
@empty
No bookings in this range.
@endforelse
@forelse ($bookingsByStatus as $status)
{{ $status['label'] }} {{ $status['count'] }}
@empty

No booking statuses found.

@endforelse
@forelse ($appointments as $appointment)

{{ $appointment->customer?->name ?? '-' }}

{{ $appointment->service?->name ?? '-' }} with {{ $appointment->staffProfile?->name ?? '-' }}

{{ $appointment->status_label }}

{{ $appointment->booking_number }} - {{ $appointment->starts_at?->format('M d, Y') }} at {{ $appointment->starts_at?->format('g:i A') }}

@empty
No appointments found.
@endforelse
@endsection