{{ __('Transactions') }}
{{ __('Overview') }}
| {{ __('Transaction ID') }} | {{ __('Event') }} | {{ __('Booking ID') }} | {{ __('Date & Time') }} | {{ __('Amount') }} | {{ __('Status') }} | |||
|---|---|---|---|---|---|---|---|---|
| {{-- Transaction UUID --}} |
{{ 'TR-' . $transaction->id }}
|
{{-- Event Name --}}
{{ optional($transaction?->order?->event)->title ?? '-' }} | {{-- Booking ID (Order) --}}
{{ 'BK-' . $transaction->order_id }}
|
{{-- Date & Time --}}
{{ \Carbon\Carbon::parse($transaction->order?->event?->start_date . ' ' . $transaction->order?->event?->time)->format('d M, Y | h:i A') }} | {{-- Amount --}}@if (isset($transaction->order->total)) ${{ number_format($transaction->order->total, 2) }} @else - @endif | {{-- Payment Method --}} {{--{{ $transaction->order->payment_method ?? '-' }} | --}} {{-- Status --}}@php $statusClass = match (strtolower($transaction->status)) { 'completed', 'successful', 'paid' => 'successful', 'failed', 'refunded', 'partially refunded', 'cancelled' => 'failed', 'pending' => 'pending', default => '', }; @endphp {{ __(ucfirst($transaction->status)) }} | {{-- Actions --}}|
| {{ __('No transactions found.') }} | ||||||||