History Payment History

@php $trans = $transactions['data']; @endphp
Showing {{ $transactions['to'] }}-{{ $transactions['total'] }} of {{ $transactions['total'] }} results
@can('payment-view-receipt') @endcan @forelse($transactions['data'] ?? [] as $tran) @if (isset($tran['items']) && count($tran['items']) > 0) @foreach ($tran['items'] as $index => $item) @if ($index === 0) @endif @if ($index === 0) @endif @endforeach @else @can('payment-view-receipt') @endcan @endif @empty @endforelse
Transaction ID Order ID Tour Name Date Amount Payment Method Active StatusReceipt
{{ $tran['transaction_number'] }} {{ $item['booking']['booking_no'] ?? 'N/A' }} Tour {{ $item['booking']['tour_package']['name'] ?? 'N/A' }} Date {{ \Carbon\Carbon::parse($tran['created_at'])->format('d M Y') }} ৳ {{ number_format($tran['amount'], 2) }} {{ ucfirst($tran['method']['name']) }} @php $statusClass = match ($tran['payment_status']) { 'success' => 'bg-success', 'pending' => 'bg-warning', 'failed' => 'bg-danger', 'refunded' => 'bg-secondary', default => 'bg-light', }; $statusLabel = ucfirst($tran['payment_status']); @endphp {{ $statusLabel }} Download
{{ $tran['transaction_number'] }} N/A N/A Date {{ \Carbon\Carbon::parse($tran['created_at'])->format('d M Y') }} ৳ {{ number_format($tran['amount'], 2) }} {{ ucfirst($tran['method']['name']) }} @php $statusClass = match ($tran['payment_status']) { 'success' => 'bg-success', 'pending' => 'bg-warning', 'failed' => 'bg-danger', 'refunded' => 'bg-secondary', default => 'bg-light', }; $statusLabel = ucfirst($tran['payment_status']); @endphp {{ $statusLabel }} Download
No payment history found.
Showing {{ $transactions['from'] }} to {{ $transactions['to'] }} of {{ $transactions['total'] }} pages
@push('scripts') @endpush