@php $cards = [ ['Customers', number_format($totalCustomers), $activeCustomers.' with a live subscription', 'info'], ['Active subscriptions', number_format($activeSubscriptions), $pastDue.' past due', $pastDue > 0 ? 'warning' : 'success'], ['Revenue this month', format_money($monthlyRevenueCents), 'Paid payments only', 'success'], ['VPN servers', $onlineServers.' / '.$totalServers, 'online / total', $onlineServers === $totalServers && $totalServers > 0 ? 'success' : 'warning'], ['Active peers', number_format($activePeers), 'across all servers', 'info'], ['Expiring in 7 days', number_format($expiringSoon), 'subscriptions', $expiringSoon > 0 ? 'warning' : 'neutral'], ]; @endphp
@foreach ($cards as [$label, $value, $meta, $tone])

{{ $label }}

{{ $value }}

{{ $meta }}

@endforeach
@if ($unhealthyServers->isEmpty()) @if ($totalServers === 0) @else @endif @else
    @foreach ($unhealthyServers as $server)
  • {{ $server->name }}

    {{ $server->location?->display_name ?? 'No location' }} ยท last heartbeat {{ $server->last_heartbeat_at?->diffForHumans() ?? 'never' }}

    {{ $server->status->label() }}
  • @endforeach
@endif