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

Dashboard

Cart
Vendors
{{ $stats['vendors_count'] }}
Products
{{ $stats['products_count'] }}
Customers
{{ $stats['customers_count'] }}
Sales (total)
₹ {{ number_format($stats['sales_all_total'], 0) }}
Sales today
{{ $stats['sales_today_count'] }} bills · ₹ {{ number_format($stats['sales_today_total'], 2) }}
Sales this month
{{ $stats['sales_month_count'] }} bills · ₹ {{ number_format($stats['sales_month_total'], 2) }}
Purchases this month
{{ $stats['purchases_month_count'] }} · ₹ {{ number_format($stats['purchases_month_total'], 2) }}
Low stock (≤5)
{{ $stats['low_stock_count'] }} products
Recent bills
@forelse($recent_invoices as $inv) @empty @endforelse
Invoice Date Customer Total
{{ $inv->invoice_number }} {{ $inv->invoice_date->format('d M Y') }} {{ $inv->customer?->name ?? 'Walk-in' }} ₹ {{ number_format($inv->total, 2) }} View
No bills yet.
Low stock products
@if($low_stock_products->isNotEmpty())
    @foreach($low_stock_products as $p)
  • {{ $p->name }} {{ $p->quantity }} left
  • @endforeach
@else

No low stock items.

@endif
@endsection