{{ __('Admin · Platform workspaces') }}
{{ __('All') }} {{ __('workspaces') }}
{{ __('Every customer workspace on the platform. Drill into MRR, message volume, plan caps, payment status, and admin overrides.') }}
{{ session('success') }}
@endif
{{ __('Total workspaces') }}
{{ number_format($stats['total']) }}
+{{ $stats['thisMonth'] }} {{ __('this month') }}
{{ __('Active') }}
{{ number_format($stats['active']) }}
{{ $stats['retention'] }}% retention
{{ __('Trial / free') }}
{{ number_format($stats['trial']) }}
{{ __('no paid plan') }}
{{ __('Suspended') }}
{{ number_format($stats['suspended']) }}
{{ __('action required') }}
{{ __('Platform MRR') }}
{{ $stats['mrr'] }}
{{ __('active subs') }}
| {{ __('Workspace') }} | {{ __('Owner') }} | {{ __('Plan') }} | {{ __('MRR') }} | 7d msgs | {{ __('Status') }} | {{ __('Last active') }} | ||
|---|---|---|---|---|---|---|---|---|
| {{ $initial }} |
{{ $ws->name }}
{{ $ws->slug ?: '—' }} @if ($ws->industry)
· {{ $ws->industry }}
@endif
|
{{ $ws->owner?->name ?? '—' }}
@if ($ws->owner?->email)
{{ $ws->owner->email }}
@endif
{{-- Owner mobile WITH country code, unmasked — so the sales team can
call + WhatsApp the owner (e.g. before a trial expires). --}}
@php
$occ = preg_replace('/\D+/', '', (string) ($ws->owner?->country_code ?? ''));
$omob = preg_replace('/\D+/', '', (string) ($ws->owner?->mobile ?? ''));
$oe164 = $omob !== '' ? ($occ !== '' ? $occ . ltrim($omob, '0') : $omob) : '';
$odisp = $omob !== '' ? ('+' . ($occ !== '' ? $occ . ' ' : '') . $ws->owner->mobile) : '';
@endphp
@if ($oe164 !== '')
{{ $odisp }}
@endif
|
{{ $d['plan_name'] }}
{{-- When the plan/trial is going to expire — days left so the sales
team can call/WhatsApp before it lapses. Trial vs paid labelled;
coral ≤3 days / expired, amber ≤7, muted otherwise. --}}
@if (!is_null($d['expiry_days']))
@php
$ed = (int) $d['expiry_days'];
$etone = $ed <= 3 ? 'text-accent-coral' : ($ed <= 7 ? 'text-accent-amber' : 'text-ink-500');
$elabel = $ed < 0
? __('Expired')
: ($ed === 0
? __('Expires today')
: (($d['is_trial'] ? __('Trial ends') : __('Renews')) . ' · ' . $ed . 'd'));
@endphp
{{ $elabel }}
@endif
|
{{-- Admin's configured currency, not a typed "$". This cell hardcoded
the symbol, so the KPI above rendered ₹5.0k while every row read
$0 on the same page. FormatSettings::currency() is what the KPI
and the detail page already use. --}}
{!! \App\Support\FormatSettings::currency($d['mrr']) !!} | {{ number_format($d['msgs7d']) }} | {{ $d['health']['label'] }} | {{ $ws->last_active_at?->diffForHumans() ?? '—' }} |
{{ __('Open dashboard') }}
{{-- Direct route to the plan/limits form. "Open dashboard" already
lands on the same page, but the edit panel is collapsed there,
so there was no visible way to change a workspace's plan from
this list. ?edit=1 opens the panel on arrival. --}}
|
| {{ __('No workspaces match your filters.') }} | ||||||||
Showing {{ $workspaces->firstItem() ?? 0 }}–{{ $workspaces->lastItem() ?? 0 }} of
{{ number_format($workspaces->total()) }} {{ __('workspaces') }}
{{ $workspaces->onEachSide(1)->links() }}