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

Promissory notes

Track written fee commitments from parents and guardians. Honour a note once payment is received, or send a reminder.
@include('finance._nav') @php $pending = $notes->where('status', 'Pending'); $honoured = $notes->where('status', 'Honoured'); $overdue = $notes->where('status', 'Pending')->filter(fn ($note) => \Carbon\Carbon::parse($note->promised_date)->isPast()); @endphp

Commitment register

{{ num($notes->total()) }} notes on record.
@forelse($notes as $note) @empty @endforelse
LearnerAmountPromised dateRemarksStatusCreatedActions
{{ $note->student_name }}
{{ $note->admission_no }}
{{ money($note->amount) }} {{ \Carbon\Carbon::parse($note->promised_date)->format('d M Y') }} {{ \Illuminate\Support\Str::limit($note->remarks ?? '', 60) ?: '—' }} {{ \Carbon\Carbon::parse($note->created_at)->format('d M Y') }}
@if($note->status === 'Pending')
@csrf
@csrf
@endif
@csrf @method('DELETE')
@include('shared.pager', ['paginator' => $notes])
@csrf
@endsection