@extends('layouts.app') @section('title', 'Accounting Reports') @section('content') @php $tabs = ['Income Statement', 'Balance Sheet', 'Receipts & Payments', 'Account View', 'Trial Balance', 'Vouchers', 'Payroll']; $active = request('tab', 'Income Statement'); @endphp
Financial summaries for the period — month {{ $month }}
Recent fee receipts
| Receipt | Student | Date | Mode | Amount |
|---|---|---|---|---|
| {{ $r->receipt_no }} | {{ $r->student_name }} | {{ $r->date }} | {{ $r->mode }} | KES {{ number_format($r->amount, 2) }} |
| Ledger | Debit | Credit |
|---|---|---|
| {{ $l->ledger_name }} {{ $l->account_code }} | {{ $l->normal_balance === 'Debit' ? 'KES '.number_format($l->account_code >= '3001' ? $expenses : $outstanding, 2) : '' }} | {{ $l->normal_balance === 'Credit' ? 'KES '.number_format($l->account_code < '3000' ? $collected + $income : 0, 2) : '' }} |
| Voucher | Payee | Ledger | Date | Amount |
|---|---|---|---|---|
| {{ $v->voucher_no }} | {{ $v->payee }} | {{ $v->ledger }} | {{ $v->date }} | KES {{ number_format($v->amount, 2) }} |
Monthly statutory and staff earnings summary (computed from staff basic salary)
| Staff No. | Employer | Role | Basic | Gross | Deductions | Net Pay |
|---|---|---|---|---|---|---|
| {{ $p['staff_no'] }} | {{ $p['name'] }} | {{ $p['role'] }} | KES {{ number_format($p['basic'], 2) }} | KES {{ number_format($p['gross'], 2) }} | KES {{ number_format($p['deductions'], 2) }} | KES {{ number_format($p['net'], 2) }} |
| Totals ({{ $payroll->count() }} staff) | KES {{ number_format($payroll->sum('basic'), 2) }} | KES {{ number_format($payroll->sum('gross'), 2) }} | KES {{ number_format($payroll->sum('deductions'), 2) }} | KES {{ number_format($payroll->sum('net'), 2) }} | ||