{{-- Page Title --}}
Platform Dashboard
Overview across all tenants
{{-- Period Tabs --}}
@foreach(['weekly' => 'Weekly', 'monthly' => 'Monthly', 'yearly' => 'Yearly'] as $key => $label)
{{ $label }}
@endforeach
{{-- Stat Cards Row 1 --}}
Total Tenants
{{ $total_tenants }}
Pending Approval
{{ $pending_tenants }}
Active Tenants
{{ $active_tenants }}
Suspended
{{ $suspended_tenants }}
{{-- Stat Cards Row 2 — Revenue --}}
Total Revenue
₹{{ number_format($total_revenue, 2) }}
All-time subscription revenue
This Month
₹{{ number_format($revenue_this_month, 2) }}
{{ $tenants_this_month }} new tenant(s) signed up
This Year
₹{{ number_format($revenue_this_year, 2) }}
{{ $tenants_this_week }} new this week
{{-- Charts Row --}}
{{-- Tables Row --}}
{{-- Recent Tenants --}}
| Company |
Plan |
Status |
Registered |
@forelse($recent_tenants as $tenant)
{{ $tenant->name }}
{{ $tenant->slug }}.{{ config('app.domain') }}
|
{{ $tenant->plan?->name ?? '—' }} |
@php
$badge = match($tenant->status) {
'pending' => ['#fff3cd','#856404'],
'approved' => ['#d1ecf1','#0c5460'],
'active' => ['#d4edda','#155724'],
'rejected' => ['#f8d7da','#721c24'],
'suspended' => ['#e2e3e5','#383d41'],
default => ['#e9ecef','#6c757d'],
};
@endphp
{{ ucfirst($tenant->status) }}
|
{{ $tenant->created_at->format('d M Y') }} |
@empty
| No tenants yet. |
@endforelse
{{-- Expiring Soon --}}
Expiring Within 7 Days
@forelse($expiring_soon as $sub)
{{ $sub->tenant?->name ?? '—' }}
{{ $sub->plan?->name }} · {{ ucfirst($sub->billing_cycle) }}
{{ $sub->expires_at->diffForHumans() }}
@empty
No subscriptions expiring soon.
@endforelse