{{ __('Accounting Dashboard') }}

@include('accounting.partials.nav') {{-- Top Summary Cards --}}
{{-- Cash & Wallets --}}
Cash & Wallets
{{ number_format($cashWalletsTotal ?? 0, 2) }}
{{-- Banks --}}
Banks
{{ number_format($banksTotal ?? 0, 2) }}
{{-- Pending POS --}}
Pending POS
{{ number_format($posPendingTotal ?? 0, 2) }}
{{-- Customer Receivables --}}
Customer Receivables
{{ number_format($receivableTotal ?? 0, 2) }}
{{-- Main Content Grid --}}
{{-- Left Column: Sales Summary + Supplier Stats --}}
{{-- Sales Summary Card --}}
Sales Summary
Cash / POS / Credit performance
Live
@foreach($salesSummary ?? [] as $key => $period)
{{ $period['label'] }}
{{ $period['start'] }} - {{ $period['end'] }}
Cash
{{ number_format($period['totals']['total_cash'] ?? 0, 2) }}
POS
{{ number_format($period['totals']['total_pos'] ?? 0, 2) }}
Credit
{{ number_format($period['totals']['total_credit'] ?? 0, 2) }}
Total
{{ number_format($period['totals']['total_sales'] ?? 0, 2) }}
@endforeach
{{-- Supplier Payment Stats --}}
Supplier Payments
Outflow tracking
Today
{{ number_format($supplierPaymentStats['today'] ?? 0, 2) }}
This Month
{{ number_format($supplierPaymentStats['this_month'] ?? 0, 2) }}
Pending Cheques
{{ number_format($supplierPaymentStats['pending_cheques'] ?? 0, 2) }}
{{-- Right Column: Borrow/Lend + Cheques + Quick Links --}}
{{-- Borrow / Lend Card --}}
Borrow / Lend
People balances snapshot
Live
People owe you
{{ number_format($peopleOweYou ?? 0, 2) }}
You owe people
{{ number_format($youOwePeople ?? 0, 2) }}
{{-- Cheques Card --}}
Cheques to Clear
Next 7 days
{{ $pendingChequeCount ?? 0 }} pending
@if(($overdueCheques ?? collect())->isNotEmpty())
Overdue
@foreach($overdueCheques as $cheque)
{{ $cheque->cheque_no ?? 'N/A' }} {{ number_format($cheque->amount ?? 0, 2) }}
@endforeach
@endif @if(($upcomingCheques ?? collect())->isNotEmpty())
@foreach($upcomingCheques as $cheque)
{{ $cheque->cheque_no ?? 'N/A' }}
{{ $cheque->clear_date?->format('M d, Y') ?? '' }}
{{ number_format($cheque->amount ?? 0, 2) }}
{{ $cheque->direction ?? '' }}
@endforeach
@else
No cheques scheduled.
@endif
{{-- Payables Card --}}
Receivables & Payables
Due from Customers {{ number_format($totalDueFromCustomers ?? 0, 2) }}
Due to Suppliers {{ number_format($totalDueToSuppliers ?? 0, 2) }}
{{-- Quick Links --}}
{{-- Account Balances by Type --}}
Account Balances
Grouped by type
Manage
@foreach($accountsByType ?? [] as $type => $accounts)
{{ $type }} {{ number_format($accounts->sum('computed_balance'), 2) }}
@foreach($accounts as $account)
{{ $account->name }} {{ number_format($account->computed_balance, 2) }}
@endforeach @if($accounts->isEmpty())
No accounts
@endif
@endforeach