@extends('layouts.app') @section('title', 'Collect Income') @section('content') @php $groups = [ 'Donations' => ['Donations & Grants'], 'Events' => ['Event Revenue', 'Fundraising'], 'Facility Hire' => ['Facility Hire Income'], 'Canteen' => ['Canteen Sales', 'Vending Income'], 'Other' => ['Miscellaneous Income', 'Interest Income'], ]; @endphp

Collect Income

Record non-fee income such as donations, events and facility hire

Total Income

KES {{ number_format($summary['total'], 2) }}

Records

{{ $summary['count'] }}

Top Group

{{ $summary['groups']->sortByDesc('total')->first()->group ?? '—' }}

+ Record Income
@csrf
@foreach ($records as $r) @endforeach
Ref Received From Ledger Date Mode Amount Receipt
{{ $r->invoice_ref }} {{ $r->received_from }} {{ $r->group }} · {{ $r->ledger }} {{ $r->date }} {{ $r->mode_of_payment }} KES {{ number_format($r->amount, 2) }} PDF
@endsection @push('scripts') @endpush