@extends('layouts.management') @section('content')

Financial Management

Income Statement Overview (Period)

Total Revenue
TZS {{ number_format($totalRevenue, 2) }}
Total Expenses
TZS {{ number_format($totalExpenses, 2) }}
Net Income
TZS {{ number_format($netIncome, 2) }}

AR & AP Position

Accounts Receivable (AR) TZS {{ number_format(($arBalances->total_invoiced ?? 0) - ($arBalances->total_paid ?? 0), 2) }} Outstanding
@php $arPerc = ($arBalances->total_invoiced ?? 0) > 0 ? (($arBalances->total_paid ?? 0) / $arBalances->total_invoiced) * 100 : 0; @endphp

Total Invoiced: TZS {{ number_format($arBalances->total_invoiced ?? 0, 2) }} | Paid: {{ number_format($arPerc, 1) }}%

Accounts Payable (AP) TZS {{ number_format(($apBalances->total_invoiced ?? 0) - ($apBalances->total_paid ?? 0), 2) }} Outstanding
@php $apPerc = ($apBalances->total_invoiced ?? 0) > 0 ? (($apBalances->total_paid ?? 0) / $apBalances->total_invoiced) * 100 : 0; @endphp

Total Billed: TZS {{ number_format($apBalances->total_invoiced ?? 0, 2) }} | Paid: {{ number_format($apPerc, 1) }}%

Top Revenue Accounts (Period)

    @forelse($topRevenueAccounts as $account)
  • {{ $account->name }}

    {{ $account->code }}

    TZS {{ number_format($account->balance, 2) }}

  • @empty
  • No revenue recorded in this period.
  • @endforelse
@endsection