Payments
| # | Transaction ID | Order No | Customer | Amount | Method | Card/Phone | Status | Date | Action |
|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $payment->transaction_id ?? 'N/A' }} | @if($payment->order) {{ $payment->order->order_no }} @else N/A @endif |
{{ $payment->order->user->name ?? '-' }} {{ $payment->order->user->email ?? '' }} |
৳{{ number_format($payment->amount, 2) }} | {{ $payment->gateway ?? 'N/A' }} |
{{ $payment->payment_card ?? '-' }} {{ $payment->phone_number ?? '' }} |
@php $statusClass = match($payment->status) { 'paid' => 'bg-success', 'pending' => 'bg-warning text-dark', 'failed' => 'bg-danger', 'refunded' => 'bg-secondary', 'cancelled' => 'bg-dark', default => 'bg-light text-muted' }; @endphp {{ ucfirst($payment->status) }} | {{ $payment->created_at->format('d M, Y h:i A') }} | |
| No payments found | |||||||||
{{ $payments->links() }}