@extends('layouts.app') @section('title', 'Dashboard - Smart ERP') @section('page-title', 'Dashboard') @section('content')
Period: to Reset
Today

₹{{ number_format($todaySales, 2) }}

{{ $todayInvoices }} invoices

Month

₹{{ number_format($monthSales, 2) }}

{{ $monthInvoices }} invoices

+{{ $newCustomersThisMonth }}

{{ number_format($totalCustomers) }}

Total Customers

@if($lowStockProducts > 0) {{ $lowStockProducts }} Low @else OK @endif

{{ number_format($totalProducts) }}

Total Products

Suppliers

{{ number_format($totalSuppliers) }}

GST Payable

₹{{ number_format(($gstSummary->total_cgst ?? 0) + ($gstSummary->total_sgst ?? 0) + ($gstSummary->total_igst ?? 0), 2) }}

Taxable

₹{{ number_format($gstSummary->total_taxable ?? 0, 2) }}

Daily Sales (30 Days)

Monthly Sales (12 Months)

Recent Invoices

View All
@forelse($recentInvoices as $invoice) @empty @endforelse
Invoice Customer Amount Status Date
#{{ $invoice->invoice_number }} {{ $invoice->customer->name ?? 'N/A' }} ₹{{ number_format($invoice->total_amount, 2) }} {{ ucfirst($invoice->status) }} {{ $invoice->created_at->format('d M Y') }}
No invoices yet

Low Stock Alert

@forelse($lowStockItems as $product)

{{ $product->name }}

{{ $product->sku }}

{{ $product->current_stock }}

Min: {{ $product->min_stock_level }}

@empty

All stock levels good

@endforelse

Top Products (30 Days)

@forelse($topProducts as $index => $product)
{{ $index + 1 }}

{{ $product->name }}

{{ $product->total_qty }} sold

₹{{ number_format($product->total_sales, 0) }}

@empty

No sales data

@endforelse
@endsection @push('scripts') @endpush