@extends('layout') @push('styles') @endpush @section('content') @if (session('success'))
×

{{ __('Success!') }}

{{ session('success') }}

@endif

{{ __('Overview') }}

{{-- Search --}} {{-- Date Filter --}} {{-- Sort Field --}} {{-- Direction --}} {{-- Buttons --}}
{{ __('Reset') }}
@forelse($transactions as $transaction) {{-- Transaction UUID --}} {{-- Event Name --}} {{-- Booking ID (Order) --}} {{-- Date & Time --}} {{-- Amount --}} {{-- Payment Method --}} {{-- --}} {{-- Status --}} {{-- Actions --}} @empty @endforelse
{{ __('Transaction ID') }} {{ __('Event') }} {{ __('Booking ID') }} {{ __('Date & Time') }} {{ __('Amount') }} {{ __('Status') }}
{{ 'TR-' . $transaction->id }}
{{ optional($transaction?->order?->event)->title ?? '-' }}
{{ 'BK-' . $transaction->order_id }}
{{ \Carbon\Carbon::parse($transaction->order?->event?->start_date . ' ' . $transaction->order?->event?->time)->format('d M, Y | h:i A') }} @if (isset($transaction->order->total)) ${{ number_format($transaction->order->total, 2) }} @else - @endif {{ $transaction->order->payment_method ?? '-' }} @php $statusClass = match (strtolower($transaction->status)) { 'completed', 'successful', 'paid' => 'successful', 'failed', 'refunded', 'partially refunded', 'cancelled' => 'failed', 'pending' => 'pending', default => '', }; @endphp {{ __(ucfirst($transaction->status)) }}
{{ __('No transactions found.') }}
{{-- Items per page dropdown --}}
@foreach (request()->except('per_page') as $key => $value) @endforeach
{{-- Pagination Display --}}

{{ __('Page') }} {{ $transactions->currentPage() }} {{ __('of') }} {{ $transactions->lastPage() }}

{{-- Previous --}} @if ($transactions->onFirstPage()) @else icon @endif {{-- Next --}} @if ($transactions->currentPage() == $transactions->lastPage()) @else icon @endif
{{-- Press Enter in search to submit --}} {{-- Keep original delete modal JS --}} @endsection