@extends('layouts.superadmin')
@section('content')
Super Admin Dashboard
- Total Tenants: {{ $totalTenants }}
- Active Subscriptions: {{ $activeSubscriptions }}
Tenants Nearing Expiry (within 7 days)
@if($expiringTenants->isEmpty())
No tenants are nearing expiry.
@else
@foreach($expiringTenants as $sub)
- {{ $sub->tenant->name }} - Expires on {{ \Carbon\Carbon::parse($sub->end_date)->format('Y-m-d') }}
@endforeach
@endif
Most Popular Plans
@if($popularPlans->isEmpty())
No subscription data yet.
@else
@foreach($popularPlans as $plan)
- {{ $plan->name }} ({{ $plan->subscriptions_count }} subscriptions)
@endforeach
@endif
➕ New Tenant |
➕ New Plan
@endsection