@section('title', 'Orders')
@section('heading', 'Orders')
@section('top-menu-items')
|
|
Customer Name | Partner Organization | Status | Order ID | Order Date | Booking Date | Payment Method | Actions |
|---|---|---|---|---|---|---|---|---|
|
|
{{ $order->orderable->first_name ?? 'N/A' }} {{ $order->orderable->last_name ?? '' }} | {{ $order->orderable->partner->organization_name ?? 'N/A'}} | @if ($order->is_refund) Refund {{ $order->status ?? '' }} @else {{ $order->status ?? '' }} @endif | {{ $order->id }} | {{ $order->order_date ? \Carbon\Carbon::parse($order->order_date)->format('Y-m-d') : '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->payment_method }} | Actions |