@extends('layouts.app') @section('title', 'Dashboard') @section('content')
Total Sales

${{ number_format($totalSales ?? 0, 2) }}

Today's Sales

${{ number_format($todaySales ?? 0, 2) }}

Total Products

{{ $totalProducts ?? 0 }}

Low Stock Alerts

{{ $lowStockProducts ?? 0 }}

Sales Last 12 Months
Recent Transactions
@forelse($recentSales ?? [] as $sale) @empty @endforelse
Inv# Amount Status
{{ $sale->invoice_no }} ${{ number_format($sale->total, 2) }} Paid
No recent transactions
@endsection @section('scripts') @endsection