@extends('crm.master') @section('title', 'Daily Manifest - ' . $date->format('M j, Y')) @section('content')

Daily Manifest

Bookings for {{ $date->format('l, F j, Y') }}

New Booking
@include('crm.components.alerts')
@if(request()->hasAny(['type', 'time', 'category_id', 'product_id', 'status', 'search'])) @endif
{{ $date->format('D, M j, Y') }} - {{ $bookings->count() }} booking{{ $bookings->count() !== 1 ? 's' : '' }}
{{ $manifestProducts->count() }} product{{ $manifestProducts->count() !== 1 ? 's' : '' }} scheduled
Products
{{ $manifestProducts->count() }}
Bookings
{{ $totalBookings }}
Revenue
${{ number_format($totalRevenue, 2) }}
@forelse($manifestProducts as $productGroup)
{{ optional($productGroup->first_datetime)->format('h:i A') }} - {{ optional($productGroup->last_datetime)->format('h:i A') }} | {{ $productGroup->product_name }}
{{ $productGroup->category_name ?: 'Uncategorized' }}
{{ $productGroup->booking_count }} Booking{{ $productGroup->booking_count !== 1 ? 's' : '' }}
${{ number_format($productGroup->total_amount, 2) }} ({{ $productGroup->payment_label }})
@foreach($productGroup->rows as $entry) @php $booking = $entry['booking']; $balance = max(0, $booking->total_amount - $booking->deposit_amount); $canCheckIn = in_array($booking->status, ['reserved', 'deposit', 'paid']); $canCheckOut = $booking->status === 'checked_in'; $noteText = $booking->notes ?: $booking->internal_notes ?: $booking->purpose; @endphp @endforeach
Booking Code Start Date/Time End Date/Time Assigned Assets Payment Status Check In / Out Discount Code Booker Note
{{ $booking->booking_number }}
{{ $booking->start_datetime->format('m/d/y') }}
{{ $booking->start_datetime->format('h:i A') }}
{{ $booking->end_datetime->format('m/d/y') }}
{{ $booking->end_datetime->format('h:i A') }}
${{ number_format($booking->total_amount, 2) }}
@if($balance > 0) Due: ${{ number_format($balance, 2) }} @else Paid @endif
{{ $booking->status_label }} @if($canCheckIn)
@csrf @method('PATCH')
@elseif($canCheckOut)
@csrf @method('PATCH')
@else @endif
{{ $booking->discount_code ?: '-' }}
{{ $booking->customer_name }}
@if($booking->customer_email) @endif
@if($booking->is_wedding) Wedding @if($noteText) {{ \Illuminate\Support\Str::limit($noteText, 80) }} @endif @elseif($noteText) {{ \Illuminate\Support\Str::limit($noteText, 80) }} @else — @endif
@empty
No bookings for {{ $date->format('F j, Y') }}.
@endforelse
@endsection