@extends('layouts.main') @section('title', 'Dashboard') @section('content')

Dashboard

Welcome back! Here's your business overview.

Total Revenue

${{ number_format($totalRevenue, 2) }}

Total Expenses

${{ number_format($totalExpenses, 2) }}

Net Profit

${{ number_format($netProfit, 2) }}

Cash Balance

${{ number_format($cashBalance, 2) }}

Quick Actions

Recent Invoices

@if($recentInvoices->count() > 0)
@foreach($recentInvoices as $invoice)

{{ $invoice->invoice_number }}

{{ $invoice->customer->name ?? 'N/A' }}

${{ number_format($invoice->total, 2) }}

{{ ucfirst($invoice->status) }}
@endforeach
@else

No invoices yet

@endif

Low Stock Alert

@if($lowStockProducts->count() > 0)
@foreach($lowStockProducts as $product)
{{ $product->name }} {{ $product->stock }} left
@endforeach
@else

All products are well stocked

@endif

Inventory Value

Total value of your current stock

${{ number_format($inventoryValue, 2) }}

@endsection