@extends('layouts.app') @section('title', 'Monthly Payments per Account') @section('content') @php $cur = ($filters['currency'] ?? 'PHP') === 'PHP' ? '₱' : $filters['currency'] . ' '; @endphp
Back to Reports

Monthly Payments per Account

Payments received from each client account, broken down by month

@include('reports.partials.filter', ['route' => 'reports.payments', 'showSearch' => true])
Total Collected

{{ $cur }}{{ number_format($totals['total_paid'], 2) }}

{{ number_format($totals['payments']) }} payments
Paying Accounts

{{ number_format($rows->count()) }}

accounts paid in this range
Average per Account

{{ $cur }}{{ $rows->count() > 0 ? number_format($totals['total_paid'] / $rows->count(), 2) : '0.00' }}

for the whole range
Balance Still Owed

{{ $cur }}{{ number_format($totals['balance'], 2) }}

by these same accounts
Payments by Account
Sorted by highest total paid
@foreach($months as $label) @endforeach @forelse($paginated as $row) @foreach(array_keys($months) as $key) @endforeach @empty @endforelse @if($rows->isNotEmpty()) @foreach(array_keys($months) as $key) @endforeach @endif
Account{{ $label }}Payments Total Paid Last Payment Balance
{{ $row['client_name'] }}
{{ $row['account_number'] }}
{{ $row['months'][$key] > 0 ? number_format($row['months'][$key], 2) : '—' }} {{ number_format($row['payments']) }} {{ $cur }}{{ number_format($row['total_paid'], 2) }} {{ $row['last_payment'] ? \Illuminate\Support\Carbon::parse($row['last_payment'])->format('M d, Y') : '—' }} {{ $row['balance'] > 0 ? $cur . number_format($row['balance'], 2) : '—' }}
No payments received in this period.
All Accounts{{ number_format($totals['months'][$key], 2) }}{{ number_format($totals['payments']) }} {{ $cur }}{{ number_format($totals['total_paid'], 2) }} {{ $cur }}{{ number_format($totals['balance'], 2) }}
@if($paginated->hasPages()) @endif

Only completed cash payments are counted; system-generated late fee and disconnection notice records are excluded. Balance is the account's current outstanding amount across all bills, not just this date range.

@endsection