{{ __('Bookings') }}
{{ __('Overview') }}
| {{ __('Booking ID') }} | {{ __('Attendee Info') }} | {{ __('Event/attend date') }} | {{ __('Tickets Type/count') }} | {{ __('total price') }} | {{ __('Status') }} | ||
|---|---|---|---|---|---|---|---|
|
BK-{{ $order->id }} |
{{ $order->first_name }} {{ $order->last_name }} {{ $order->phone }} |
{{ optional($order->event)->title ?? 'N/A' }} {{ optional($order->event)->start_date->format('d M, Y') }} at {{ optional($order->event)->start_time->format('h:i A') }} |
@php
$ticketCount = $order->eventTickets->sum('pivot.quantity');
$ticketType = $order->eventTickets
->pluck('pivot.ticket_type_title')
->unique()
->implode(', ');
@endphp
{{ $ticketType ?: '-' }} {{ $ticketCount }} {{ __('Tickets') }} |
{{ $ticketCurrency }}{{ number_format($order->total) }}
{{ $order->payment_method }}
{{ $order->card_number ? '****' . substr($order->card_number, -4) : '-' }}
@php
// Normalize payment status
$validStatuses = [
\App\Enums\PaymentStatus::Pending->value,
\App\Enums\PaymentStatus::Paid->value,
\App\Enums\PaymentStatus::Failed->value,
];
// Determine CSS class: fallback to 'failed' if invalid
$statusValue = $order->payment_status;
$statusClass = in_array($statusValue, $validStatuses)
? strtolower(str_replace(' ', '', $statusValue))
: 'failed';
@endphp
{{ __($statusValue) }}
|
@php $statusValue = $order->order_status; // Default CSS class: lowercase and remove spaces $statusClass = strtolower(str_replace(' ', '', $statusValue)); // Handle special cases if ($statusValue === 'Checked-In') { $statusClass = 'checkin'; } elseif ($statusValue === 'Refunded') { $statusClass = 'cancelled'; } @endphp {{ __($statusValue) }} |
{{-- Action Trigger --}}
{{-- Dropdown Menu --}}
|
|
| {{ __('No bookings found.') }} | |||||||