@extends('layouts.admin') @php use Illuminate\Support\Facades\Storage; @endphp @section('content')

{{ __('dashboard.total_products') }}

{{ number_format($stats['total_products']) }}

{{ $stats['active_products'] }} {{ __('common.active') }}

{{ __('dashboard.total_categories') }}

{{ number_format($stats['total_categories']) }}

{{ __('dashboard.total_orders') }}

{{ number_format($stats['total_orders']) }}

{{ $stats['pending_orders'] }} {{ __('common.pending') }}

{{ __('dashboard.total_revenue') }}

${{ number_format($stats['total_revenue'], 2) }}

{{ $stats['completed_orders'] }} {{ __('common.completed') }}

@forelse($recentOrders as $order) @empty @endforelse

Order #

Customer

Total

Status

Date

{{ $order->order_number }}

{{ $order->user->name }}

{{ $order->user->email }}

${{ number_format($order->total, 2) }}

@php $statusClasses = [ 'pending' => 'bg-yellow-50 text-yellow-700', 'processing' => 'bg-blue-50 text-blue-700', 'completed' => 'bg-green-50 text-green-700', 'canceled' => 'bg-red-50 text-red-700', ]; @endphp {{ ucfirst($order->status) }}

{{ $order->created_at->format('M d, Y') }}

No orders found
{{ $stats['active_discounts'] }}

{{ __('dashboard.active_discounts') }}

View all deals →
@forelse($topProducts as $product)
@if($product->image) {{ $product->name }} @else
@endif

{{ $product->name }}

{{ $product->orderItems()->count() }} orders

${{ number_format($product->price, 2) }}

@empty

No products found

@endforelse
@endsection