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

Payment Reports

Fees collection summaries by class and payment mode

Invoiced

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

Collected

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

Outstanding

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

Receipts (valid)

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

By Class

@foreach ($byClass as $c) @endforeach
Class Invoiced Collected Balance
{{ $c->class_name }} KES {{ number_format($c->invoiced, 2) }} KES {{ number_format($c->paid, 2) }} KES {{ number_format($c->balance, 2) }}

By Payment Mode

@foreach ($modes as $m)
{{ $m->mode }} {{ $m->count }} receipts KES {{ number_format($m->total, 2) }}
@endforeach

Recent Daily Collections

@foreach ($daily as $d) @endforeach
Date Receipts Total
{{ $d->date }} {{ $d->count }} KES {{ number_format($d->total, 2) }}
@endsection