@section('top-menu-items') @endsection
@if(Auth::user()->hasAnyRole(['Administrator', 'Owner']) || Auth::user()->can('read_dashboard'))

Pending Orders with Past Booking Dates

@foreach ($orders as $order) @endforeach
Customer Name Partner Organization Booking Date Order Date Order ID Actions
{{ $order->orderable->first_name ?? 'N/A' }} {{ $order->orderable->last_name ?? '' }} {{ $order->orderable->partner->organization_name ?? 'N/A' }} @php $earliestBooking = $order->bookings->min('booking_date'); @endphp @if($order->bookings->count() > 0) {{ $earliestBooking ? \Carbon\Carbon::parse($earliestBooking)->format('Y-m-d') : 'N/A' }} @else N/A @endif {{ $order->order_date ? \Carbon\Carbon::parse($order->order_date)->format('Y-m-d') : 'N/A' }} {{ $order->id }} Actions
{{ $orders->onEachSide(1)->links('livewire::bootstrap') }}

Online Booking Form Orders

@foreach ($customer_placed_orders as $order) @endforeach
Customer Name Order Date Actions
{{ $order->orderable->first_name ?? 'N/A' }} {{ $order->orderable->last_name ?? '' }} {{ $order->order_date ? \Carbon\Carbon::parse($order->order_date)->format('Y-m-d') : 'N/A' }} Actions
{{ $customer_placed_orders->onEachSide(1)->links('livewire::bootstrap') }}
@livewire('merchandise-orders')
@livewire('modals.refund-modal') @livewire('modals.payment-method-modal') @else
Unauthorized
@endif