import { Head, Link, usePage } from '@inertiajs/react'; import { ArrowUpRight, Building2, FolderKanban, Inbox, Layers, Users, } from 'lucide-react'; import type { LucideIcon } from 'lucide-react'; import { Badge } from '@/components/ui/badge'; import { portfolio, yearRange } from '@/data/projects'; import { formatDate, sectorLabels, statusBadgeClasses, statusLabels, } from '@/lib/admin-labels'; import { about, clients, contact, dashboard, home, services } from '@/routes'; import { index as consultationsIndex } from '@/routes/admin/consultations'; import { index as projectsIndex } from '@/routes/admin/projects'; import type { Consultation, Project, ProjectSector } from '@/types'; type DashboardProps = { projects: Project[]; newConsultations: number; latestConsultations: Pick< Consultation, 'id' | 'name' | 'company' | 'service' | 'status' | 'created_at' >[]; }; const sitePages = [ { title: 'Beranda', href: home() }, { title: 'Tentang Kami', href: about() }, { title: 'Jasa', href: services() }, { title: 'Klien & Portofolio', href: clients() }, { title: 'Kontak', href: contact() }, ]; function StatCard({ icon: Icon, label, value, note, }: { icon: LucideIcon; label: string; value: string | number; note: string; }) { return (