@extends('admin.layouts.home') @section('title', 'Marketplace Dashboard') @section('styles') @endsection @section('content')

Marketplace Dashboard

{{ $totalProducts }}
Total Products
{{ $totalStores }}
Total Stores
{{ $totalOrders }}
Total Orders
${{ number_format($totalRevenue, 2) }}
Total Revenue
Monthly Sales & Orders
Top Product Categories
Recent Orders
@if($recentOrders->isEmpty())
No recent orders found.
@else
@foreach($recentOrders as $order) @endforeach
Order # Customer Amount Status Date
#{{ $order->order_number }} {{ $order->user->name }} ${{ number_format($order->total_amount, 2) }} @php $statusClass = [ 'pending' => 'bg-warning', 'processing' => 'bg-info', 'completed' => 'bg-success', 'cancelled' => 'bg-danger', ][$order->status] ?? 'bg-secondary'; @endphp {{ ucfirst($order->status) }} {{ $order->created_at->format('M d, Y') }}
@endif
Top Selling Products
@if($topSellingProducts->isEmpty())
No products found.
@else
@foreach($topSellingProducts as $product) @endforeach
Product Store Price Orders
@if($product->thumbnail) {{ $product->name }} @else
@endif {{ Str::limit($product->name, 30) }}
{{ $product->store->name ?? 'N/A' }} ${{ number_format($product->price, 2) }} {{ $product->orders_count }}
@endif
@endsection @section('scripts') @endsection