{{-- resources/views/reports/payments.blade.php --}} @extends('layouts.app') @section('title', 'Payments Report') @section('page_title', 'Payments Report') @section('page_subtitle', $from->format('d M Y') . ' — ' . $to->format('d M Y')) @section('content') @include('reports.partials.nav') @include('reports.partials.filters', [ 'route' => 'reports.payments', 'showExport' => true, 'reportName' => 'payments', ])
${{ number_format($total, 0) }}
Total Collected
{{ $count }}
Transactions
${{ $count > 0 ? number_format($total / $count, 0) : 0 }}
Avg Transaction
{{-- By Method --}}
By Payment Method
@forelse($by_method as $method => $data)
{{ ucfirst(str_replace('_', ' ', $method)) }}
{{ $data['count'] }} {{ Str::plural('transaction', $data['count']) }}
${{ number_format($data['total'], 2) }}
@empty

No payments

@endforelse
{{-- Transaction List --}}
Transactions {{ $payments->count() }} total
@foreach($payments as $payment) @endforeach
Reference Guest Method Amount Date
{{ $payment->reference }} {{ $payment->guest?->first_name }} {{ $payment->guest?->last_name ?? '—' }} {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} {{ $payment->currency }} {{ number_format($payment->amount, 2) }} {{ $payment->paid_at?->format('d M H:i') }}
@endsection