@extends('backend.app') @section('title', 'Admin Dashboard') @section('content')
Welcome {{ auth()->user()->name }}!

Here's your platform overview

Platform Statistics

{{ $totalUsers }}

Total Users

{{ $totalProducts }}

Products

{{ $activeAuctions }}

Active Auctions

{{ $totalBids }}

Total Bids

Recent Products

View All
@foreach($recentProducts as $product) @endforeach
Product Seller Type Price Bids Status
@php // Handle both array and string formats $images = is_array($product->images) ? $product->images : json_decode($product->images, true); $firstImage = !empty($images) ? asset($images[0]) : asset('backend/app-assets/images/elements/homepod.png'); @endphp Product
{{ $product->title }}
{{ $product->category->title }}
{{ $product->user->name }} {{ ucfirst($product->type) }} @if($product->type == 'auction') ${{ number_format($product->starting_price, 2) }} @else ${{ number_format($product->price, 2) }} @endif {{ $product->bids_count }} {{ ucfirst($product->status) }}

Quick Stats

Regular Products
{{ $regularProducts }}
Auction Products
{{ $auctionProducts }}
Categories
{{ $categoryCount }}
Subcategories
{{ $subCategoryCount }}
Bookmarks
{{ $totalBookmarks }}

Recent Bids

    @foreach($recentBids as $bid)
  • {{ $bid->user->name }}
    {{ $bid->created_at->diffForHumans() }}

    Bid ${{ number_format($bid->amount, 2) }} on {{ $bid->product->title }}

    {{ $bid->is_winner ? 'Winning' : 'Active' }}
  • @endforeach

User Distribution

{{ $adminCount }}

Admins

{{ $regularUserCount }}

Regular Users

@endsection