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

Financial reports & general ledger

@if($facilities->isNotEmpty())
@endif
Revenue
₦{{ number_format($income,2) }}
Expenses
₦{{ number_format($expenses,2) }}
Surplus / (deficit)
₦{{ number_format($income-$expenses,2) }}
Trial balance
Export ledger CSV

Period activity is summarised by account. A full opening-balance/closing-balance trial balance and statutory financial statements require approved opening balances and closing procedures.

@foreach($trial as $l)@endforeach
CodeAccountTypeDebit balanceCredit balance
{{ $l->account_code }}{{ $l->account_name }}{{ $l->account_type }}{{ number_format($l->debit_balance,2) }}{{ number_format($l->credit_balance,2) }}
Total{{ number_format($totalDebit,2) }}{{ number_format($totalCredit,2) }}
@if(!$balanced)
Ledger activity is not balanced. Investigate before relying on this report.
@else
Period journal activity is balanced.
@endif
Budget monitoring
@forelse($budgets as $b)@empty@endforelse
BudgetFacilityApprovedCommittedSpentAvailable
{{ $b->budget_code }} — {{ $b->description }}{{ $b->facility_id }}₦{{ number_format($b->approved_amount,2) }}₦{{ number_format($b->committed_amount,2) }}₦{{ number_format($b->spent_amount,2) }}₦{{ number_format($b->approved_amount-$b->committed_amount-$b->spent_amount,2) }}
No approved budgets.
@endsection