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

Total Sales (Paid)

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

Orders

{{ $orderCount }}

Customers

{{ $customerCount }}

Products

{{ $productCount }}

Recent Orders

@foreach($recentOrders as $order) @endforeach
OrderCustomerTotalStatus
{{ $order->order_number }} {{ $order->user->name }} ₹{{ number_format($order->total, 2) }} {{ str_replace('_',' ',$order->order_status) }}

Top-Selling Products

@foreach($topProducts as $row) @endforeach
ProductQty Sold
{{ $row->product_name }}{{ $row->qty }}
@endsection