@extends('master.app') @section('title', 'Dashboard') @section('body')

Finance Dashboard

Today: {{ $todayStr }} • Multi-currency overview • Clean & executive style

Customers: {{ number_format($customers) }} Suppliers: {{ number_format($suppliers) }} Employees: {{ number_format($employees) }}
{{-- KPIs --}}

Total Sales (Today)

{{ number_format($totalSalesToday, 2) }}
Sum of all currencies • from invoices today

Total Receipts (Today)

{{ number_format($totalReceiptsToday, 2) }}
Cash/Bank receipts today • multi-currency

Net (Today)

{{ number_format($netToday, 2) }}
Receipts − Payments − Expenses (today)

Expenses (Today)

{{ number_format($expenseTodayTotal, 2) }}
Total expense journals today
{{-- Charts --}}
Sales Trend (Last 12 Months)
By Currency
High-level trend for management view (per currency series).
Receipts Trend (Last 12 Months)
By Currency
Shows collection performance across months.
{{-- Today Breakdown + Outstanding --}}
Today Summary ({{ $todayStr }})
Multi-currency
@foreach ($currencies as $c) @php $sid = $c->id; $sale = (float) ($saleTodayByCurrency[$sid] ?? 0); $rec = (float) ($receivedTodayByCurrency[$sid] ?? 0); @endphp @endforeach
{{ $c->title_en ?? $c->title_ps }}
Sales vs Receipts
Sales: {{ number_format($sale, 2) }}
Receipts: {{ number_format($rec, 2) }}
This section helps you see today’s activity per currency quickly.
Outstanding (AR / AP)
To-date
@foreach ($currencies as $c) @php $cid = $c->id; $ar = (float) ($outstandingAR[$cid] ?? 0); $ap = (float) ($outstandingAP[$cid] ?? 0); @endphp @endforeach
{{ $c->title_en ?? $c->title_ps }}
Receivable / Payable
AR: {{ number_format($ar, 2) }}
AP: {{ number_format($ap, 2) }}
Outstanding is calculated as: Sales − Receipts − Advances (AR) and Purchase − Payments − Advances (AP).
@endsection @section('pageJs') @endsection