@extends('layouts.app') @section('title', 'Command Center') @section('page-title', 'Command Center') @section('content') {{-- Hero stats --}}

Admin Command Center

Live platform overview — {{ now()->format('D, d M Y H:i') }}

Total Revenue

${{ number_format($total_revenue, 2) }}

Total Orders

{{ number_format($total_orders) }}

Active Users

{{ number_format($active_users) }}

Pending Orders

{{ $pending_orders }}

{{-- Main grid --}}
{{-- API Providers --}}

API Providers

+ Add
@forelse($providers as $p)
{{ strtoupper(substr($p->name,0,1)) }}

{{ $p->name }}

{{ $p->url }}

@csrf
@empty
cloud_off No providers yet. Add one
@endforelse
{{-- WHERE TO PUT YOUR API KEYS --}}

key API Key Setup

Add your Peakerr / SMMWorld API keys here. Go to Add Provider and enter:
• URL: https://peakerr.com/api/v2
• API Key: from your provider dashboard
Then click Sync to import all services.

{{-- Recent orders --}}
@foreach($recent_orders as $order) @php $s = strtolower($order->status ?? 'pending'); $sc = match(true){ in_array($s,['completed']) => 'bg-tertiary/10 text-tertiary border-tertiary/30', in_array($s,['in progress','processing']) => 'bg-primary/10 text-primary border-primary/30 animate-pulse', in_array($s,['cancelled']) => 'bg-error/10 text-error border-error/30', default => 'bg-surface-container-highest text-outline border-outline/30', }; @endphp @endforeach
ID User Service Total Status
#{{ $order->id }} {{ $order->user->name ?? 'N/A' }} {{ $order->service->name ?? 'N/A' }} ${{ number_format($order->total,4) }} {{ ucfirst($order->status) }}
{{-- Users + quick actions --}}
{{-- Recent users --}}

Recent Users

View all →
@foreach($recent_users as $user)
{{ strtoupper(substr($user->name,0,1)) }}

{{ $user->name }}

{{ $user->email }}

${{ number_format($user->funds,2) }}

{{ $user->created_at->diffForHumans() }}

@endforeach
{{-- Admin quick actions --}}

Quick Actions

@foreach([ ['Sync Services','sync',route('admin.sync.all'),'text-primary','POST'], ['Manage Services','list_alt',route('admin.services.index'),'text-tertiary','GET'], ['Manage Users','people',route('admin.users.index'),'text-secondary','GET'], ['Transactions','receipt_long',route('admin.transactions.index'),'text-[#fcd34d]','GET'], ['Open Tickets','confirmation_number',route('admin.tickets.index'),'text-error','GET'], ['Settings','settings',route('admin.settings'),'text-outline','GET'], ] as [$label,$icon,$url,$color,$method]) @if($method === 'POST')
@csrf
@else {{ $icon }} {{ $label }} @endif @endforeach
@endsection