Payments

View all Stripe and Terminal payment transactions processed through the system.

@if(request()->anyFilled(['search', 'status', 'gateway', 'date_from', 'date_to'])) Clear @endif
@forelse($payments as $payment) @empty @endforelse
TRANSACTION ID INVOICE AMOUNT GATEWAY STATUS DATE
@php $invoiceRoute = $payment->invoice ? route('invoices.show', encrypt($payment->invoice->id)) : null; @endphp @if($invoiceRoute) {{ $payment->transaction_id ?? '—' }} @else {{ $payment->transaction_id ?? '—' }} @endif @if($payment->invoice) #{{ $payment->invoice->compact_invoice_number ?? $payment->invoice->number }} @else No invoice @endif {{ currency_format($payment->amount) }} {{ $payment->gateway === 'stripe_terminal' ? 'Terminal' : 'Stripe' }} @php $statusBadgeMap = [ 'successful' => 'bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20', 'pending' => 'bg-amber-500/10 text-amber-600 dark:text-amber-400 border border-amber-500/20', 'failed' => 'bg-rose-500/10 text-rose-600 dark:text-rose-400 border border-rose-500/20', 'refunded' => 'bg-purple-500/10 text-purple-600 dark:text-purple-400 border border-purple-500/20', ]; $statusClass = $statusBadgeMap[$payment->status] ?? 'bg-zinc-500/10 text-zinc-600 border border-zinc-500/20'; @endphp {{ ucfirst($payment->status) }} {{ $payment->created_at->format('M d, Y g:i A') }}
No Stripe transactions found.
@if ($payments->hasPages())
@include('partials.pagination', ['paginator' => $payments])
@endif