@extends('layouts.admin') @section('title', 'Financial Report') @section('page-title', 'Financial Report') @section('page-subtitle', 'Detailed financial summary and trends') @section('content')
Total Income
GH₵{{ number_format($income['total'], 2) }}
{{ $income['count'] }} transactions
Total Expenses
GH₵{{ number_format($expenses['total'], 2) }}
{{ $expenses['count'] }} transactions
Net Balance
GH₵{{ number_format(abs($net), 2) }}
{{ $income['count'] + $expenses['count'] }} total transactions
{{ $type?->name ?? 'Unknown Type' }}
{{ $data['count'] }} donations
GH₵{{ number_format($data['total'], 2) }}
No income recorded in this period
@endif{{ $category?->name ?? 'Unknown Category' }}
{{ $data['count'] }} expenses
GH₵{{ number_format($data['total'], 2) }}
No expenses recorded in this period
@endif| Category | Amount | % of Total |
|---|---|---|
| Total Income | GH₵{{ number_format($income['total'], 2) }} | 100% |
| {{ $type?->name ?? 'Donations' }} | GH₵{{ number_format($data['total'], 2) }} | {{ $income['total'] > 0 ? round($data['total'] / $income['total'] * 100) : 0 }}% |
| Total Expenses | GH₵{{ number_format($expenses['total'], 2) }} | 100% |
| {{ $category?->name ?? 'Other Expenses' }} | GH₵{{ number_format($data['total'], 2) }} | {{ $expenses['total'] > 0 ? round($data['total'] / $expenses['total'] * 100) : 0 }}% |
| Net Balance | GH₵{{ number_format($net, 2) }} | - |
Select a date range above to generate a financial report