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

Accounting

Trial balance derived from fee collections, other income, government funding, expenses, supplier payments and posted journal vouchers. Deferred fee income is recognised monthly.
@include('finance._nav')

Trial balance

{{ $balances->count() }} ledger accounts · balances rounded to the nearest shilling.
{{ abs($totals['debit'] - $totals['credit']) < 1 ? 'Balanced' : 'Out of balance' }}
@forelse($balances as $ledger) @empty @endforelse
CodeAccountCategoryDebitCredit
{{ $ledger->code ?: '—' }} {{ $ledger->name }} {{ $ledger->category }} {{ $ledger->normal_balance === 'Debit' && $ledger->balance != 0 ? money($ledger->balance) : '—' }} {{ $ledger->normal_balance === 'Credit' && $ledger->balance != 0 ? money($ledger->balance) : '—' }}
Totals {{ money($totals['debit']) }} {{ money($totals['credit']) }}

Cash flow summary

Lifetime movement
Fee receipts{{ money($payments) }}
Other income{{ money($income) }}
Government funding{{ money($gov) }}
Expenses({{ money($expenses) }})
Net cash{{ money($payments + $income + $gov - $expenses) }}

Journal vouchers

Posted double-entry adjustments included above
Posted vouchers{{ num($journalStats['entries']) }}
Total debits{{ money($journalStats['debit']) }}
Total credits{{ money($journalStats['credit']) }}
Balance {{ abs($journalStats['debit'] - $journalStats['credit']) < 0.01 ? 'Balanced' : 'Out of balance' }}

Fee accounting

Deferred revenue model

Payments received against an invoice are first held as fees received in advance. Revenue is realised monthly over the term.

Receipted fees{{ money($payments) }}
Deferred (unrealised){{ money($deferred) }}
Realised income{{ money(max(0, $payments - $deferred)) }}
Fee debtors{{ money($outstanding) }}

Invoice → payment → monthly realisation. Use the fee ledger accounts to reconcile the deferred balance at term close.

@endsection