@extends('layouts.app') @section('title', 'Dashboard') @section('page_title', 'Business Overview') @section('content')
TODAY'S SALES

{{ number_format($todaySales) }} UGX

Real-time tracking
OUTSTANDING DEBT

{{ number_format($outstandingDebt) }} UGX

Action required
ESTIMATED NET PROFIT

{{ number_format($profit) }} UGX

Sales minus expenses
LOW STOCK ALERTS

{{ $lowStockItems }} items

{{ $lowStockItems > 0 ? 'Reorder immediately' : 'Inventory healthy' }}
Weekly Revenue Trend
Debt Aging Buckets
Current (0 days overdue) {{ number_format($agingBuckets['current'] ?? 0) }} UGX
1 - 30 days overdue {{ number_format($agingBuckets['d1_30'] ?? 0) }} UGX
30+ days overdue {{ number_format(($agingBuckets['d31_60'] ?? 0) + ($agingBuckets['d60_plus'] ?? 0)) }} UGX
Recent Invoices
View All
@forelse($recentInvoices as $inv) @empty @endforelse
Invoice # Customer Amount Status
{{ $inv->invoice_number }} {{ $inv->client->full_name }} {{ number_format($inv->total_amount) }} UGX {{ ucfirst($inv->status) }}
No invoices generated yet.
Stock Levels
Manage Stock
@forelse($topVariants as $v) @empty @endforelse
Variant Name SKU Stock Qty Status
{{ $v->variant_name }} {{ $v->sku }} {{ $v->stock_qty }} @if($v->isLowStock()) Low Stock @else In Stock @endif
No product variants registered.
@endsection @section('scripts') @endsection