@extends('layouts.app') @section('title', 'Payments') @php use App\Enums\Currency; use App\Enums\PaymentMethod; use Illuminate\Support\Str; @endphp @section('content')
{{ number_format($totalCount) }} {{ Str::plural('payment', $totalCount) }} recorded
Total Collected
{{ $defaultCurrency->symbol() }} {{ number_format((float) $totalCollected, 2) }}
All time
This Month
{{ $defaultCurrency->symbol() }} {{ number_format((float) $thisMonth, 2) }}
{{ now()->format('F Y') }}
Payment Records
{{ number_format($totalCount) }}
All time
Most Used Method
@if($mostUsedMethod) @php $pm = $mostUsedMethod->payment_method; $methodLabel = $pm instanceof \App\Enums\PaymentMethod ? $pm->label() : (\App\Enums\PaymentMethod::tryFrom((string) $pm)?->label() ?? (string) $pm ?? '—'); @endphp{{ $methodLabel }}
{{ $mostUsedMethod->count }} payments
@else—
@endifNo payments found
@if(request()->anyFilled(['search', 'currency', 'method', 'date_from', 'date_to', 'client_id'])) Clear filters @endif| Date | Client | Invoice | Paid In | Base ({{ $defaultCurrency->value }}) | Method | Notes | Actions |
|---|---|---|---|---|---|---|---|
|
{{ $payment->paid_at->format('d M Y') }} {{ $payment->paid_at->format('H:i') }} |
@if($payment->invoice?->client) {{ $payment->invoice->client->name }} @else — @endif | @if($payment->invoice) {{ $payment->invoice->invoice_number }} @if($payment->invoice->currency) {{ $payment->invoice->currency->value }} @endif @else — @endif |
@if($isCross)
{{ $payment->payment_currency->symbol() }} {{ number_format((float) $payment->payment_amount, 2) }} @ {{ number_format((float) $payment->exchange_rate, 4) }} @else {{ $defaultCurrency->symbol() }} {{ number_format((float) $payment->amount, 2) }} @endif |
{{ $defaultCurrency->symbol() }} {{ number_format((float) $payment->amount, 2) }} | @if($pmEnum) {{ $pmEnum->label() }} @else — @endif | @if($payment->notes) {{ Str::limit($payment->notes, 30) }} @else — @endif |
@if($payment->invoice)
View Invoice →
@endif
@can('invoices.record-payment')
@endcan
|