import { useState } from 'react'; import { Star, ShieldCheck, Activity, Clock, BarChart2, Plus } from "lucide-react"; import Button from "@/components/common/button"; import StatCard from "@/components/common/dashStatCard"; import InfoBanner from "@/components/common/infoBanner"; import { fieldCrewData, vendorData } from '@/constants/constant'; export default function VendorServicePortal() { return (
{/* --- HEADER SECTION --- */}
Apple One — HQ Tower Operations Vendors

Vendor & field service

Vendor performance scorecards and live field-crew status in one view — SLA adherence, response times and job dispatch across your service partners.

{/* --- HEADER BUTTONS --- */}
{/* --- STAT CARDS --- */}
{/* Active vendors */} {/* Avg SLA adherence */} {/* Open field jobs */} {/* Avg response time */}
{/* --- TABLES GRID (SIDE-BY-SIDE) --- */}
{/* LEFT TABLE: VENDOR SCORECARD */}

Vendor scorecard

SLA • rating • jobs
{vendorData.map((row, index) => ( ))}
Vendor Scope Rating SLA Response Open
{row.name}
{row.id}
{row.scope}
{row.rating}
{row.sla} {row.response} {row.openJobs}
{/* RIGHT TABLE: FIELD CREW • LIVE */}

Field crew • live

4 on site
{fieldCrewData.map((crew, index) => { return (
{crew.initials}
{crew.name}
{crew.role}
{crew.statusType === "onsite" && ( {crew.status} )} {crew.statusType === "enroute" && ( {crew.status} )} {crew.statusType === "offsite" && ( {crew.status} )}
{crew.time}
); })}
); }