@extends('layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content') {{-- Stats Row --}}
Sales This Month
₹{{ number_format($salesThisMonth, 2) }}
{{ $salesGrowth >= 0 ? '▲' : '▼' }} {{ abs($salesGrowth) }}% vs last month
Outstanding
₹{{ number_format($outstanding, 2) }}
{{ $overdue->count() }} overdue invoice(s)
Gross Profit
₹{{ number_format($grossProfit, 2) }}
This month
Customers
{{ $totalCustomers }}
@if($lowStockItems > 0)⚠ {{ $lowStockItems }} low stock
@else{{ $totalProducts }} products
@endif| Invoice # | Customer | Amount | Status | Date |
|---|---|---|---|---|
| {{ $inv->invoice_number }} | {{ $inv->customer_name }} | ₹{{ number_format($inv->total_amount, 2) }} | {{ ucfirst($inv->status) }} | {{ $inv->invoice_date->format('d M Y') }} |
| No invoices yet. Create one | ||||
⚠ Overdue Invoices
{{ $inv->customer_name }}
Due {{ $inv->due_date->diffForHumans() }}