import { useState } from 'react'; import { ClipboardCheck, Clock, AlertTriangle, Activity, Building2, Users, MapPin, Grid, ArrowRight, Sparkles } from "lucide-react"; import StatCard from "@/components/common/dashStatCard"; export default function AdminOverviewPortal() { // Sample data for the recent audits table below const recentAudits = [ { id: 'AUD-1004', location: 'Local 1', lead: 'Local Admin', date: '2026-02-02', status: 'ACTIVE' }, { id: 'AUD-1003', location: 'SRM Campus', lead: 'Estates Office', date: '2026-01-08', status: 'ACTIVE' }, { id: 'AUD-1002', location: 'Novotel Pune', lead: 'Site FM Lead', date: '2025-12-12', status: 'ACTIVE' }, { id: 'AUD-1001', location: 'Apple One', lead: 'Dhananjay T.', date: '2025-11-04', status: 'ACTIVE' }, ]; // Sample data for module/checklist adoption progress bars const adoptionModules = [ { name: 'Dashboard', score: 100, count: '4/4' }, { name: 'Helpdesk', score: 75, count: '3/4' }, { name: 'Equipment', score: 75, count: '3/4' }, { name: 'Request', score: 75, count: '3/4' }, { name: 'Inventory', score: 50, count: '2/4' }, { name: 'Energy', score: 75, count: '3/4' }, ]; return (
{/* --- HEADER SECTION --- */}
PLATFORM KAFM

Platform overview

Live snapshot of every organization, user, and site managed across the KAFM facility platform.

{/* Top Right Status Badge */}
PRODUCTION region us-east-1
{/* --- STAT CARDS --- */}
{/* Card 1: Total Tenants */} {/* Card 2: Platform users */} {/* Card 3: Managed sites */} {/* Card 4: System modules */}
{/* --- LOWER SECTION (ADDITION FROM SCREENSHOT) --- */}
{/* Left 2-Columns: Recently Onboarded Tenants Table */}

Recently onboarded tenants

Newest organizations on the platform

{/* Table Header */}
Organization Tenant ID Created Status
{/* Table Rows */}
{recentAudits.map((item, index) => (
{item.location.substring(0, 2).toUpperCase()}
{item.location}
{item.lead}
{item.id} {item.date}
{item.status}
))}
{/* Right 1-Column: Module Adoption */}

Module adoption

{adoptionModules.map((module, idx) => (
{module.name} {module.count}
{/* Progress Bar Container */}
))}
); }