Control Center

Students

{{ number_format($totalStudents) }}

+{{ $newUsersThisMonth }} this month

Active Plans

{{ number_format($activeSubscriptions) }}

{{ $expiringSoonSubscriptions }} expiring soon

Total Revenue

${{ number_format($totalRevenue, 0) }}

${{ number_format($monthlyRevenue, 0) }} this month

Tests Taken

{{ number_format($completedTests) }}

{{ number_format($averageScore, 0) }}% avg score

System Intelligence

@if($activeSubscriptions > 0 && $successfulPayments > 0) All systems running smoothly - {{ $activeSubscriptions }} active subscriptions generating revenue @else System ready - Waiting for subscriptions @endif

Online

Recent Payments

@if($recentPayments->count() > 0)
@foreach($recentPayments->take(5) as $payment)
{{ strtoupper(substr($payment->user->name ?? 'U', 0, 1)) }}

{{ $payment->user->name ?? 'Unknown' }}

{{ $payment->plan->display_name ?? 'N/A' }}

${{ number_format($payment->amount, 2) }}

{{ ucfirst($payment->status) }}
@endforeach
@else

No payments yet

@endif

Recent Subscriptions

@if($recentSubscriptions->count() > 0)
@foreach($recentSubscriptions->take(5) as $subscription)
{{ strtoupper(substr($subscription->user->name ?? 'U', 0, 1)) }}

{{ $subscription->user->name ?? 'Unknown' }}

{{ $subscription->plan_name }}

Expires

{{ $subscription->end_date->format('M d') }}

@endforeach
@else

No subscriptions yet

@endif

Revenue by Plan

@if($revenueByPlan->count() > 0)
@foreach($revenueByPlan as $item)
{{ $item->plan->display_name ?? 'Unknown' }}
${{ number_format($item->total_revenue, 2) }}
@endforeach
@else

No revenue data

@endif

Payment Methods

@if($paymentMethods->count() > 0)
@foreach($paymentMethods as $method)
{{ ucfirst($method->payment_method ?? 'Unknown') }}
{{ $method->count }} payments
@endforeach
@else

No payment data

@endif

Subscription Status

Active
{{ $activeSubscriptions }}
Pending
{{ $pendingSubscriptions }}
Expired
{{ $expiredSubscriptions }}