@extends('layouts.app') @section('title','Dashboard') @section('breadcrumb') @endsection @section('content')
Rs. {{ number_format($todayStats['total_sales'], 2) }}
Today's Sales
{{ $todayStats['total_orders'] }} orders
Rs. {{ number_format($todayStats['gross_profit'], 2) }}
Today's Profit
Gross profit
{{ number_format($totalCustomers) }}
Total Customers
Active accounts
{{ $lowStockCount > 0 ? $lowStockCount : number_format($totalProducts) }}
{{ $lowStockCount > 0 ? 'Low Stock Alerts' : 'Total Products' }}
Monthly Sales
Rs. {{ number_format($monthStats['total_sales'], 2) }}
{{ $monthStats['total_orders'] }} orders • Avg: Rs. {{ number_format($monthStats['avg_order_value'], 2) }}
Monthly Profit
Rs. {{ number_format($monthStats['total_profit'], 2) }}
After expenses deducted
Discounts Given
Rs. {{ number_format($monthStats['total_discounts'], 2) }}
This month
Held Orders
{{ $pendingOrders }}
Sales Overview (Last 7 Days)
Full Report
Top Products
This Month
@forelse($topProducts as $i => $prod)
{{ $i + 1 }}
{{ $prod->product_name }}
{{ number_format($prod->total_qty, 0) }} sold
Rs. {{ number_format($prod->total_revenue, 0) }}
@empty

No sales data yet

@endforelse
Recent Orders
View All
@forelse($recentOrders as $order) @empty @endforelse
Order #CustomerCashierTotalStatusTime
{{ $order->order_number }} {{ $order->customer?->name ?? 'Walk-in' }} {{ $order->user?->name ?? '—' }} Rs. {{ number_format($order->total_amount, 2) }} {{ ucfirst($order->status) }} {{ $order->created_at->diffForHumans() }}
No orders yet today
Payment Methods
Today
@foreach($todayStats['payments_by_method'] ?? [] as $method => $amount)
{{ ucfirst(str_replace('_', ' ', $method)) }} Rs. {{ number_format($amount, 0) }}
@endforeach @if(empty($todayStats['payments_by_method']))

No payments today

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