@extends('customer.layouts.app') @section('title', 'Payment History') @section('page-title', 'Payment History') @section('content')
| Payment # | Invoice | Date | Method | Amount | Status | Actions |
|---|---|---|---|---|---|---|
| {{ $payment->payment_number }} | {{ $payment->invoice->invoice_number }} | {{ $payment->payment_date->format('M d, Y') }} | {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} | {{ \App\Models\Currency::formatAmount($payment->amount, $payment->currency) }} | @php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-700', 'completed' => 'bg-green-100 text-green-700', 'failed' => 'bg-red-100 text-red-700', 'refunded' => 'bg-gray-100 text-gray-700', ]; @endphp {{ ucfirst($payment->status) }} | View |
| No payments found | ||||||