@extends('layouts.app') @section('title', 'Promissory Notes') @section('content')

Promissory Notes

Track parent promises to pay fees by a given date

Pending

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

Overdue

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

Honoured

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

+ New Promissory Note
@csrf
@foreach ($notes as $n) @endforeach
Student Parent Amount Promised Status Actions
{{ $n->student_name }} {{ $n->admission_no }} {{ $n->parent_name }} {{ $n->parent_phone }} KES {{ number_format($n->amount, 2) }} {{ $n->promised_date }} @php $c = match ($n->status) { 'Honoured' => 'text-primary', 'Overdue' => 'text-destructive', 'Cancelled' => 'text-muted-foreground', default => 'text-amber-600' }; @endphp {{ $n->status }}
@if ($n->status === 'Pending' || $n->status === 'Expiring')
@csrf
@endif
@csrf @method('DELETE')
@endsection @push('scripts') @endpush