@endif
{{-- Header Section: Z-Index Fix & Alignment --}}
@php
$statCards = [
['label' => 'Total Revenue', 'value' => '$' . number_format($stats['total_revenue'] ?? 0, 2), 'trend' => '+12.5%', 'color' => 'indigo', 'icon' => 'M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z'],
['label' => 'Total Orders', 'value' => number_format($stats['total_orders'] ?? 0), 'trend' => '+8.2%', 'color' => 'purple', 'icon' => 'M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z'],
['label' => 'Active Vendors', 'value' => number_format($stats['total_vendors'] ?? 0), 'trend' => '+3 new', 'color' => 'emerald', 'icon' => 'M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z'],
['label' => 'Live Products', 'value' => number_format($stats['total_products'] ?? 0), 'trend' => 'Stable', 'color' => 'blue', 'icon' => 'M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4'],
];
@endphp
@foreach ($statCards as $card)
{{ $card['label'] }}
{{ $card['value'] }}
@endforeach
{{-- Main Sections: Stacked cleanly to prevent overlap --}}
{{-- Interactive Intelligence: Performance Graphs --}}
{{-- Global Revenue Flow --}}
Revenue Trajectory
Platform-wide daily yield (30 Days)
{{-- Global Acquisition Velocity --}}
Acquisition Velocity
Transaction frequency mapping
{{-- Asset Distribution: Donut Chart --}}
{{-- Decorative Background Glow --}}
Asset Distribution
Inventory by category
{{-- Fallback if no data --}}
@if($topProducts->isEmpty())
@endif
{{-- Elite Vendors --}}
Elite Vendors
@forelse ($recentVendors ?? [] as $vendor)
{{ $vendor->user?->initials() ?? 'VP' }}
{{ $vendor->store_name }}
{{ $vendor->user?->email ?? 'no-email@system' }}
@empty
Awaiting vendor activity execution.
@endforelse
{{-- Financial Stream (Recent Orders) --}}
Financial Stream
Real-time ledger of transaction executions across the system.
| Transaction ID |
Participant |
Volume |
Protocol Status |
Archive Access |
@forelse ($recentOrders ?? [] as $order)
| #txn_{{ substr($order->ulid ?? uniqid(), -8) }} |
{{ $order->user?->initials() ?? 'US' }}
{{ $order->user?->name ?? 'Guest User' }}
{{ $order->user?->email ?? 'guest@system.local' }}
|
${{ number_format($order->total ?? mt_rand(50, 500), 2) }} |
{{ $order->status ?? 'Verified' }}
|
|
@empty
|
Ledger is currently empty.
|
@endforelse