{{-- Header with Stats --}}

Payment History

View your payments and download receipts

{{-- Stats Cards --}}
${{ number_format($stats['total_paid'], 2) }}
Total Paid
{{ $stats['payment_count'] }}
Payments
{{ $stats['last_payment']?->format('M j') ?? 'N/A' }}
Last Payment
{{-- Filters --}}
All Statuses @foreach($statuses as $value => $label) {{ $label }} @endforeach @if($filterByStatus) @endif
{{-- Payments List --}}
@forelse($payments as $payment)
{{-- Header --}}
{{ $payment->processed_at?->format('F j, Y') ?? $payment->created_at->format('F j, Y') }}
@if($payment->processed_at)
{{ $payment->processed_at->format('g:i A') }}
@endif
@php $statusStyles = [ 'completed' => 'bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400', 'pending' => 'bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400', 'failed' => 'bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400', 'refunded' => 'bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400', 'cancelled' => 'bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400', ]; $statusIcons = [ 'completed' => '', 'pending' => '', 'failed' => '', 'refunded' => '', 'cancelled' => '', ]; @endphp {!! $statusIcons[$payment->status] ?? '' !!} {{ ucfirst($payment->status) }}
{{-- Content --}}
{{-- Order Info --}} @if($payment->order)
Order {{ $payment->order->order_number }} · {{ $payment->order->orderItems->count() }} {{ Str::plural('item', $payment->order->orderItems->count()) }}
@endif {{-- Payment Method --}}
@php $methodIcons = [ 'credit_card' => '', 'paypal' => '', ]; @endphp {!! $methodIcons[$payment->payment_method] ?? $methodIcons['credit_card'] !!} {{ ucfirst(str_replace('_', ' ', $payment->payment_method ?? 'Card')) }} @if($payment->payment_processor) · {{ ucfirst($payment->payment_processor) }} @endif
{{-- Transaction ID --}} @if($payment->transaction_id)
ID: {{ Str::limit($payment->transaction_id, 24) }}
@endif
{{-- Amount and Receipt --}}
${{ number_format($payment->amount, 2) }}
{{ $payment->currency ?? 'USD' }}
@if($payment->status === 'completed' && $payment->order) @endif
{{-- Failure Reason --}} @if($payment->status === 'failed' && $payment->failure_reason)
Reason: {{ $payment->failure_reason }}
@endif
@empty {{-- Empty State --}}

No payments yet

Your payment history will appear here after you make a purchase.

Browse Store
@endforelse
{{-- Pagination --}} @if($payments->hasPages())
{{ $payments->links() }}
@endif