@extends('layouts.admin') @section('title', setting('school_name', 'ShulePoint') . ' | Finance Dashboard') @section('page-title', 'Finance Dashboard') @section('content') {{-- Compact stat strip --}}
KES {{ number_format($invoiced, 0) }} Invoiced
KES {{ number_format($collected, 0) }} Collected
KES {{ number_format($outstanding, 0) }} Outstanding
KES {{ number_format($expenses, 0) }} Expenses
{{-- Quick actions card --}}

Quick actions

{{-- Collection progress --}} @php $collectPct = $invoiced > 0 ? min(100, round($collected / $invoiced * 100)) : 0; @endphp
Collection rate KES {{ number_format($collected, 0) }} of KES {{ number_format($invoiced, 0) }} · {{ $collectPct }}%
{{-- Recent payments --}}

Recent Payments

@include('layouts.partials.school-th') @forelse($recentPayments as $p) @include('layouts.partials.school-td', ['schoolId' => $p->school_id ?? null]) @empty @endforelse
Receipt Learner Amount Method RefOpen
#{{ $p->id }} @if(!empty($p->first_name)){{ $p->first_name }} {{ $p->last_name }}@else—@endif KES {{ number_format($p->amount, 0) }} {{ $p->method }} {{ $p->reference ?? '–' }}

No payments yet

Recorded payments will appear here.

{{-- Recent expenses --}}

Recent Expenses

@include('layouts.partials.school-th') @forelse($recentExpenses as $e) @include('layouts.partials.school-td', ['schoolId' => $e->school_id ?? null]) @empty @endforelse
Title Amount Date
{{ $e->title }} KES {{ number_format($e->amount, 0) }} {{ $e->spent_on }}

No expenses yet

Recorded expenses will appear here.

@endsection