@extends('layouts.app') @section('title', 'Financial Reports | Institution Axis') @section('sidebar-menu') @include('schooladmin.partials.sidebar') @endsection @section('sidebar-footer')

{{ auth()->user()->school?->name ?? 'Institution Axis' }}

@endsection @section('breadcrumb') Home / Finance / Reports @endsection @section('content')

Financial Overview

Total Invoiced

KES {{ number_format($totalInvoiced/1000000, 1) }}M

Total fees billed this year

Total Collections

KES {{ number_format($totalPaid/1000, 1) }}K

{{ $totalInvoiced > 0 ? number_format(($totalPaid/$totalInvoiced)*100, 1) : 0 }}% Collection rate

Outstanding

KES {{ number_format($totalOutstanding/1000, 1) }}K

Unpaid school fees

Expenses

KES {{ number_format($totalExpenses/1000, 1) }}K

Running costs to date

Collection Trends (Last 6 Months)
Arrears by Class
@forelse($outstandingPerClass as $class)
{{ $class['name'] }}
KES {{ number_format($class['amount'], 0) }}
@empty
No outstanding balances found.
@endforelse
@endsection @section('custom-scripts') @endsection