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

{{ $stats['products'] ?? 0 }}

Total Categories

{{ $stats['categories'] ?? 0 }}

Total Users

{{ $stats['users'] ?? 0 }}

Banner Applications

{{ $stats['banner_applications'] ?? 0 }}

— TO —
User Growth Trends
Latest Products
    @foreach($latestProducts as $product)
  • {{ $product->name }}
    {{ $product->category->name ?? 'Uncategorized' }}
    RM {{ number_format($product->price, 0, ',', '.') }}
  • @endforeach
@endsection @push('scripts') @endpush