@extends('layouts.admin') @section('title', 'Dashboard') @section('page_title', 'Dashboard') @section('content')
@foreach([ ['Products', $stats['products'], 'ki-handcart'], ['Orders', $stats['orders'], 'ki-parcel'], ['Customers', $stats['customers'], 'ki-users'], ['Pending', $stats['pending_orders'], 'ki-time'], ['Approvals', $stats['pending_accounts'] ?? 0, 'ki-user-tick'], ['Revenue', '₹'.number_format($stats['revenue'], 0), 'ki-dollar'], ] as [$label, $value, $icon])
{{ $label }}
{{ $value }}
@endforeach

Recent Orders

View all
@forelse($recentOrders as $order) @empty @endforelse
Order Customer Status Total
{{ $order->order_number }} {{ $order->customer_name }} {{ ucfirst($order->status) }} ₹{{ number_format($order->total, 0) }}
No orders yet

Low / Out of Stock

@forelse($lowStock as $product)
{{ $product->name }} {{ $product->stock_qty }}
@empty
All products look healthy.
@endforelse
@endsection