@extends('layouts.app') @section('title', 'ERP Dashboard') @section('page_title', 'ERP Executive Dashboard') @section('content')
Total Sales Revenue

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

This Month: ₹{{ number_format($monthSales, 2) }} Today: ₹{{ number_format($todaySales, 2) }}
Stock Valuation (Cost)

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

Total Items: {{ $totalProducts }} Retail Value: ₹{{ number_format($stockRetailValuation, 2) }}
Receivables (Customer Dues)

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

Outstanding amount due on pending invoices
Payables (Supplier Dues)

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

Total Purchases: ₹{{ number_format($totalPurchases, 2) }}
GST Position & Tax Summary
View GSTR-1
Tax Head Output Tax (Sales) Input Tax (Purchases)
CGST ₹{{ number_format($outputCgst, 2) }} ₹{{ number_format($inputCgst, 2) }}
SGST ₹{{ number_format($outputSgst, 2) }} ₹{{ number_format($inputSgst, 2) }}
IGST (Inter-State) ₹{{ number_format($outputIgst, 2) }} ₹{{ number_format($inputIgst, 2) }}
Total Tax ₹{{ number_format($totalOutputTax, 2) }} ₹{{ number_format($totalInputTax, 2) }}
Estimated Net GST Liability
₹{{ number_format($netGstLiability, 2) }}
Payable
Sales vs Purchases (Last 6 Months)
Financial Trend
{{ $lowStockCount }}
Low Stock Reorder Alerts
Create Purchase Bill
@if($lowStockProducts->count() > 0)
@foreach($lowStockProducts as $prod) @endforeach
Product / SKU Current Stock Reorder Level Action
{{ $prod->name }}
SKU: {{ $prod->sku }} | HSN: {{ $prod->hsn_code }}
{{ number_format($prod->current_stock, 0) }} {{ $prod->unit ? $prod->unit->short_code : '' }} {{ number_format($prod->reorder_level, 0) }} {{ $prod->unit ? $prod->unit->short_code : '' }} Reorder
@else
All inventory items are well above reorder levels!
@endif
Recent Sales Invoices
View All
@forelse($recentInvoices as $inv) @empty @endforelse
Invoice # Customer / Place of Supply Amount Status
{{ $inv->invoice_number }}
{{ $inv->invoice_date->format('d M Y') }}
{{ $inv->party_name }}
{{ $inv->place_of_supply_state }} ({{ $inv->is_inter_state ? 'IGST' : 'CGST+SGST' }})
₹{{ number_format($inv->grand_total, 2) }} {{ ucfirst(str_replace('_', ' ', $inv->payment_status)) }}
No sales invoices yet.
Recent Stock Audit Trail Movements
Complete Audit Log
@forelse($recentMovements as $move) @empty @endforelse
Timestamp Product Movement Type Quantity Stock Before Stock After Reference / Notes
{{ $move->created_at->format('d M Y, h:i A') }} {{ $move->product ? $move->product->name : 'N/A' }} {{ $move->formatted_type }} {{ in_array($move->movement_type, ['purchase', 'adjustment_add', 'sale_return']) ? '+' : '-' }}{{ number_format($move->quantity, 0) }} {{ number_format($move->stock_before, 0) }} {{ number_format($move->stock_after, 0) }} {{ $move->notes ?? ($move->reference_type ? "Ref: {$move->reference_type} #{$move->reference_id}" : '-') }}
No stock movements recorded yet.
@endsection @push('scripts') @endpush