"use client"; import { useState } from "react"; import { Card, CardHeader, CardTitle, CardContent, CardDescription } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { PieChart, Plus, Settings2, AlertTriangle, CheckCircle2, ArrowRight, Target, BarChart, Edit2 } from "lucide-react"; const initialBudgets = [ { department: 'Engineering (IT)', limit: 250000, spent: 185000, status: 'Healthy', color: 'bg-indigo-600' }, { department: 'Marketing', limit: 120000, spent: 115000, status: 'Warning', color: 'bg-rose-500' }, { department: 'Human Resources', limit: 80000, spent: 42000, status: 'Healthy', color: 'bg-emerald-500' }, { department: 'Customer Success', limit: 60000, spent: 58000, status: 'Critical', color: 'bg-amber-500' }, ]; export default function BudgetingPage() { const [budgets, setBudgets] = useState(initialBudgets); return (

Department Budgeting

Set and monitor expenditure limits across the organization.

Total Budget Allocation

FY 2024 • Q1 ACTIVE

Overall Utilization

78%

Total Limit

$510,000.00

Spent to Date

$400,000.00

{/* Decorative blobs */}

Budget Insights

Automated analysis of current spend

Critical Alert

Marketing Budget at 96%

Marketing spend is significantly higher than projected. Approvals for non-essential spend restricted.

Optimization

HR Savings Opportunity

Current HR spend is 45% below budget. Consider reallocating $15k to Engineering Q2.

Departmental Breakdown

{budgets.map((b, i) => { const percent = (b.spent / b.limit) * 100; return (

{b.department}

Current Period

Utilization 90 ? 'text-rose-600' : 'text-neutral-900 dark:text-neutral-100'}>{percent.toFixed(0)}%
Spent ${(b.spent / 1000).toFixed(0)}k
Limit ${(b.limit / 1000).toFixed(0)}k
); })}
); }