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

Monthly Usage per Account

Water consumption per client account, broken down by month

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

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

cu.m across {{ number_format($rows->count()) }} accounts
Average per Account

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

cu.m for the whole range
Bills Covered

{{ number_format($totals['bills']) }}

over {{ count($months) }} month(s)
Value of Consumption

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

total billed for this usage
Consumption by Account (cu.m)
Sorted by highest total consumption
@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 }}Bills Total Avg Peak Billed
{{ $row['client_name'] }}
{{ $row['account_number'] }}
{{ $row['months'][$key] > 0 ? number_format($row['months'][$key], 2) : '—' }} {{ number_format($row['bills']) }} {{ number_format($row['total_units'], 2) }} {{ number_format($row['average_units'], 2) }} {{ number_format($row['peak_units'], 2) }} {{ $cur }}{{ number_format($row['total_amount'], 2) }}
No consumption recorded in this period.
All Accounts{{ number_format($totals['months'][$key], 2) }}{{ number_format($totals['bills']) }} {{ number_format($totals['total_units'], 2) }} {{ $cur }}{{ number_format($totals['total_amount'], 2) }}
@if($paginated->hasPages()) @endif

Totals in the footer cover every matching account, not just the accounts shown on this page. Consumption is taken from the approved billings for each month.

@endsection