@extends('layouts.app') @section('title', 'Collect Fees') @section('content')

Collect fees

Find a learner by admission number, confirm the balance and issue a receipt. The student ID is the M-Pesa Account Number.
Collection report
@include('finance._nav')

Learner lookup

Enter the admission number to load the term invoice.

Receive payment

The receipt is generated automatically on save.
@csrf
Select a learner to see their balance.

Request M-Pesa payment

Send an STK push. The learner's student ID is sent as the Account Number.
@csrf

Demo mode: confirm simulated pushes from Finance → Incoming. Live mode requires Daraja credentials and a public callback URL.

Today at the desk

Most recent receipts
@forelse($recent as $payment)
{{ $payment->mode }}
{{ $payment->receipt_no }}
{{ \Carbon\Carbon::parse($payment->paid_on)->format('d M Y') }} · {{ $payment->reference ?: 'No reference' }}
{{ money($payment->amount) }}
@empty @endforelse
@endsection @push('scripts') @endpush