@extends('layouts.app') @section('title', 'Finance Dashboard') @section('breadcrumbs') @endsection @section('content')

Finance Dashboard

Financial overview and key metrics

Total Revenue

{{ number_format($stats['total_revenue'] ?? 0, 2) }}

Total Expenses

{{ number_format($stats['total_expenses'] ?? 0, 2) }}

Accounts Receivable

{{ number_format($stats['accounts_receivable'] ?? 0, 2) }}

Accounts Payable

{{ number_format($stats['accounts_payable'] ?? 0, 2) }}

Recent Vouchers
@forelse($recentVouchers ?? [] as $voucher) @empty @endforelse
Voucher # Type Date Amount Status
{{ $voucher->voucher_number }} {{ ucfirst($voucher->voucher_type) }} {{ $voucher->voucher_date->format('d M Y') }} {{ number_format($voucher->total_amount, 2) }} @php $statusClass = match($voucher->status) { 'posted' => 'bg-success-subtle text-success', 'draft' => 'bg-secondary-subtle text-secondary', 'reversed' => 'bg-danger-subtle text-danger', default => 'bg-light text-dark' }; @endphp {{ ucfirst($voucher->status) }}
No recent vouchers
@endsection