import React from "react"; import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { FileText, Download, DollarSign, TrendingUp, Calendar, CheckCircle2 } from "lucide-react"; import { Button } from "@/components/ui/button"; export default function VendorInvoices() { const invoices = [ { id: "INV-V001", client: "Tech Corp", amount: 12400, status: "Paid", date: "2025-01-10", services: "Event Staffing - 12 staff x 8 hours" }, { id: "INV-V002", client: "Premier Events", amount: 8950, status: "Pending", date: "2025-01-15", services: "Catering Staff - 8 staff x 6 hours" }, { id: "INV-V003", client: "Corporate Solutions", amount: 15200, status: "Sent", date: "2025-01-18", services: "Full Service - 20 staff x 10 hours" }, ]; const stats = { totalRevenue: invoices.reduce((sum, inv) => sum + inv.amount, 0), paid: invoices.filter(i => i.status === "Paid").reduce((sum, i) => sum + i.amount, 0), pending: invoices.filter(i => i.status === "Pending" || i.status === "Sent").reduce((sum, i) => sum + i.amount, 0), count: invoices.length, }; const getStatusColor = (status) => { const colors = { 'Paid': 'bg-green-100 text-green-700', 'Pending': 'bg-yellow-100 text-yellow-700', 'Sent': 'bg-blue-100 text-blue-700', 'Overdue': 'bg-red-100 text-red-700', }; return colors[status] || 'bg-slate-100 text-slate-700'; }; return (
Track your billing and payments
Total Revenue
${stats.totalRevenue.toLocaleString()}
Paid
${stats.paid.toLocaleString()}
Pending
${stats.pending.toLocaleString()}
Total Invoices
{stats.count}
{invoice.client}
{invoice.services}
${invoice.amount.toLocaleString()}