@extends('superadmin.layouts.app') @section('title', 'Platform Dashboard') @section('page-title', 'Platform Dashboard') @section('content') {{-- Stats grid --}}
@foreach ([ ['label' => 'Total Shops', 'value' => number_format($stats['total_shops']), 'sub' => 'registered', 'color' => 'indigo'], ['label' => 'Active Shops', 'value' => number_format($stats['active_shops']), 'sub' => 'live & billing', 'color' => 'green'], ['label' => 'Pending', 'value' => number_format($stats['pending_shops']), 'sub' => 'awaiting install', 'color' => 'amber'], ['label' => 'Orders Today', 'value' => number_format($stats['orders_today']), 'sub' => '₹' . number_format($stats['revenue_today'], 0) . ' revenue', 'color' => 'violet'], ] as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}

{{ $stat['sub'] }}

@endforeach
{{-- Pending shops --}}

Pending Approvals

View all
@forelse($pendingShops as $shop)

{{ $shop->name ?: $shop->domain }}

{{ $shop->domain }} · {{ $shop->created_at->diffForHumans() }}

@csrf
View
@empty

No pending approvals

@endforelse
{{-- Recent shops --}}

Recently Registered

View all
@forelse($recentShops as $shop)

{{ $shop->name ?: $shop->domain }}

{{ $shop->domain }}

$shop->status === 'active', 'bg-amber-900/40 text-amber-400' => $shop->status === 'pending', 'bg-red-900/40 text-red-400' => $shop->status === 'suspended', ])>{{ ucfirst($shop->status) }} View →
@empty

No shops yet

@endforelse
@endsection