@extends('crm.master') @section('title', 'Booking Daily List - ' . $date->format('M j, Y')) @php $queryWithoutView = request()->except('view'); @endphp @section('content')

Booking Daily List

View bookings by product, time, and daily summary totals.

New Booking
@include('crm.components.alerts')
Daily Booking Summary
{{ $totalBookings }} bookings | Qty {{ $totalQuantity }} | ${{ number_format($totalRevenue, 2) }}
@forelse($summaryRows as $row) @empty @endforelse
Product Inventory Consumed Bookings Total Quantity Total
{{ $row->product_name }}
{{ $row->category_name ?: 'Uncategorized' }}
@if(!is_null($row->consumed_percentage))
{{ $row->total_quantity }}/{{ $row->inventory_amount }}
@else N/A @endif
{{ $row->bookings_count }} {{ $row->total_quantity }} ${{ number_format($row->total_amount, 2) }}
No summary data for this day.
@if($view === 'time') @forelse($timeGroups as $timeGroup)
{{ $timeGroup->time_label }}
Qty {{ $timeGroup->total_quantity }} | ${{ number_format($timeGroup->total_amount, 2) }}
@foreach($timeGroup->products as $productGroup)
{{ $productGroup->product_name }}
@foreach($productGroup->rows as $entry) @php $booking = $entry['booking']; $noteText = $booking->notes ?: $booking->internal_notes ?: $booking->purpose; @endphp @endforeach
ID Booker Start Time End Time Email Total Quantity Total Status Note
{{ $booking->booking_number }} {{ $booking->customer_name }} {{ $booking->start_datetime->format('h:i A') }} {{ $booking->end_datetime->format('h:i A') }} {{ $booking->customer_email }} {{ $entry['quantity'] }} ${{ number_format($entry['amount'], 2) }} {{ $booking->status_label }} {{ $noteText ? \Illuminate\Support\Str::limit($noteText, 60) : '-' }}
@endforeach
@empty
No bookings for this date.
@endforelse @else @forelse($itemGroups as $categoryGroup)
{{ $categoryGroup->category_name }}
@foreach($categoryGroup->products as $productGroup)
{{ $productGroup->product_name }} {{ $productGroup->booking_count }} bookings | Qty {{ $productGroup->total_quantity }} | ${{ number_format($productGroup->total_amount, 2) }}
@foreach($productGroup->rows as $entry) @php $booking = $entry['booking']; $noteText = $booking->notes ?: $booking->internal_notes ?: $booking->purpose; @endphp @endforeach
ID Booker Start Time End Time Email Total Quantity Total Status Note
{{ $booking->booking_number }} {{ $booking->customer_name }} {{ $booking->start_datetime->format('m/d/y h:i A') }} {{ $booking->end_datetime->format('m/d/y h:i A') }} {{ $booking->customer_email }} {{ $entry['quantity'] }} ${{ number_format($entry['amount'], 2) }} {{ $booking->status_label }} {{ $noteText ? \Illuminate\Support\Str::limit($noteText, 60) : '-' }}
@endforeach
@empty
No bookings for this date.
@endforelse @endif
@endsection @section('page-script') @endsection