import { useState } from 'react'; import { ShieldCheck, MapPin, Check, Clock, BarChart2, Map } from "lucide-react"; import Button from "@/components/common/button"; import StatCard from "@/components/common/dashStatCard"; import NavigationTabs from '@/components/common/tabs'; // Card Components import { Card } from "@/components/common/cardWrapper"; import { CardHeader } from "@/components/common/cardHeader"; import InfoBanner from '@/components/common/infoBanner'; import { gpsTrackingtabs } from '@/constants/constant'; // Staff Table Data const STAFF_DATA = [ { name: "Ravi Kumar", role: "M&E Technician", zone: "Chiller plant", inTime: "08:02", hrs: "6.4", status: "ON-SITE", statusType: "success" }, { name: "Sana Iqbal", role: "HVAC Engineer", zone: "AHU room L7", inTime: "08:15", hrs: "6.1", status: "ON-SITE", statusType: "success" }, { name: "Mohan D.", role: "Electrician", zone: "En route", inTime: "—", hrs: "0", status: "EN-ROUTE", statusType: "warning" }, { name: "Lakshmi N.", role: "Housekeeping Lead", zone: "Lobby + L2", inTime: "07:48", hrs: "6.7", status: "ON-SITE", statusType: "success" }, { name: "Arjun P.", role: "Plumber", zone: "Off-site", inTime: "—", hrs: "0", status: "OFF-SITE", statusType: "neutral" }, { name: "Fatima R.", role: "BMS Operator", zone: "Control room", inTime: "06:55", hrs: "7.6", status: "ON-SITE", statusType: "success" }, ]; export default function GpsTrackingPortal() { const [activeTab, setActiveTab] = useState('Live tracking'); return (
{/* --- HEADER SECTION --- */}
Apple One — HQ Tower INTELLIGENCE GPS TRACKING

GPS staff tracking & geo-fencing

Live geo-tagged locations, geo-fence attendance validation, route history and site entry / exit logs — battery-optimised with cell-tower fallback and mobile-app capture.

{/* --- HEADER BUTTONS --- */}
{/* --- STAT CARDS --- */}
{/* --- NAVIGATION TABS --- */} {/* --- MAP & STAFF STATUS SECTION BELOW TABS --- */}
{/* Left: Live Staff Map */}
{/* Map Canvas Visual */}
{/* Grid Background Lines */}
{/* Geo-Fence Boundary Box */}
GEO-FENCE · SITE BOUNDARY {/* On-Site Staff Dots */}
{/* En-Route Staff Dot (Outside Fence) */}
{/* Right: Staff Status Table */}
{STAFF_DATA.map((staff, idx) => ( ))}
NAME ROLE ZONE IN HRS STATUS
{staff.name} {staff.role} {staff.zone} {staff.inTime} {staff.hrs} {staff.status}
); }