import React from 'react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Progress } from '@/components/ui/progress'; import { TrendingUp, TrendingDown, Wallet, Target, CreditCard, PiggyBank, AlertTriangle, CheckCircle, ArrowUpRight, ArrowDownRight, PieChart } from 'lucide-react'; const Dashboard: React.FC = () => { const portfolioData = { totalValue: 9850000, // ₹98.5 lakhs change: 3.2, isPositive: true }; const budgetData = { spent: 45000, // ₹45,000 budget: 65000, // ₹65,000 categories: [ { name: 'Food & Groceries', spent: 12500, budget: 18000 }, { name: 'Transportation', spent: 8500, budget: 12000 }, { name: 'Entertainment', spent: 6000, budget: 8000 }, { name: 'Shopping & Bills', spent: 18000, budget: 27000 } ] }; const savingsGoals = [ { name: 'Emergency Fund', current: 450000, target: 800000, color: 'from-green-400 to-green-600' }, // ₹4.5L to ₹8L { name: 'Goa Trip', current: 85000, target: 150000, color: 'from-blue-400 to-blue-600' }, // ₹85K to ₹1.5L { name: 'New Car (Tata Nexon)', current: 620000, target: 1200000, color: 'from-purple-400 to-purple-600' } // ₹6.2L to ₹12L ]; const creditScore = 768; // Good CIBIL score range in India const creditUtilization = 28; return (
{new Date().toLocaleDateString('en-IN', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' })}
Net Worth
₹{(portfolioData.totalValue / 100000).toFixed(1)}L
Today's Financial Score
Excellent
Keep it up!
Quick Actions
Portfolio Value
₹{(portfolioData.totalValue / 100000).toFixed(1)}L
Monthly Budget
₹{budgetData.spent.toLocaleString()}
of ₹{budgetData.budget.toLocaleString()}
Credit Score
{creditScore}
Excellent
Savings Rate
28%
Above target
Cancel unused Hotstar subscription to save ₹1,499/year
Consider rebalancing portfolio for better diversification
Pay down credit card to improve utilization ratio