# Platform Administration (Super-Admin)

## Overview

The platform super-admin accesses EIMS via the central domain (`eims.test`) and
has unrestricted access to all tenants and platform settings.

---

## Platform Dashboard

Displays:
- Total active tenants
- Total customers across all tenants
- Total revenue (all tenants, current month)
- Tenants expiring in the next 30 days
- Recent activity log

---

## Tenant Management

| Action | Description |
|---|---|
| Create tenant | Add a new ISP with name, slug, subscription plan |
| View tenant | Drill into a tenant's data |
| Edit tenant | Update name, contact, subscription |
| Suspend tenant | Block tenant access (maintenance page shown) |
| Delete tenant | Permanently removes tenant and all their data |

> Deletion is irreversible. The global `customers` records are **not** deleted
> (they may be linked to other tenants).

---

## Cross-Tenant Customer Search

1. Go to **Customers → Global Search**
2. Search by CNIC, contact number, or name
3. See all tenant profiles linked to that customer

---

## Platform User Management

Platform users (super-admins) are managed separately from tenant users.
A platform user has `tenant_id = null`.

---

## Subscription Management

Track subscription plans and expiry dates per tenant. When a subscription
expires, the tenant status can be automatically set to `suspended` via a
scheduled artisan command.

---

## Activity Log (All Tenants)

Super-admin can search and filter the activity log across all tenants from
**Logs → Global Activity**.
