@extends('layouts.app') @section('title', 'Payments') @section('content')

Payments

{{ $transactions->total() }} transaction(s) in this view.

Export CSV + Record payment
@include('components.kpi', ['label' => 'Collected today', 'value' => money($stats['today']), 'variant' => 'good', 'href' => route('payments.index')]) @include('components.kpi', ['label' => 'This month', 'value' => money($stats['month']), 'variant' => 'good', 'href' => route('payments.index')]) @include('components.kpi', ['label' => 'Success rate', 'value' => percent($stats['success_rate']), 'variant' => 'info', 'delta' => $stats['failed'].' failed', 'href' => route('payments.index', ['status' => 'failed'])]) @include('components.kpi', ['label' => 'Average payment', 'value' => money($stats['average']), 'href' => '#'])
@forelse ($transactions as $tx) @empty @endforelse
ReferenceDateCustomerMethodGateway AmountAllocatedStatusCollected by
{{ $tx->reference }} {{ $tx->paid_at?->format('d M Y H:i') ?: '—' }} {{ $tx->customer->display_name }} {{ title_case_words($tx->method) }} @if ($tx->payer_reference)
{{ $tx->payer_reference }}
@endif
{{ $tx->gateway?->name ?: '—' }} {{ money($tx->amount, $tx->currency) }} @if ($tx->fee_amount > 0)
fee {{ money($tx->fee_amount, $tx->currency) }}
@endif
{{ money($tx->amount_allocated, $tx->currency) }} {{ $tx->status }} {{ $tx->collector?->name ?: 'Gateway' }} Receipt @if ($tx->status === 'success')
@csrf @method('DELETE')
@endif
@include('components.empty-state', ['icon' => '💳', 'title' => 'No payments found', 'message' => 'Record a payment to begin.', 'action' => '+ Record payment'])
@if ($transactions->hasPages())
{{ $transactions->links('partials.pagination') }}
@endif
@endsection