@include('Partials.sidebar')
@include('Partials.header')
{{-- Page Title --}}

Platform Dashboard

Overview across all tenants

  1. ›
  2. Dashboard
{{-- 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 --}}
Tenant Signups & Revenue
Tenant Status
{{-- Tables Row --}}
{{-- Recent Tenants --}}
Recently Registered
View All
@forelse($recent_tenants as $tenant) @empty @endforelse
Company Plan Status Registered
{{ $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') }}
No tenants yet.
{{-- 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
@include('Partials.footer')