'use client'; import { useState } from 'react'; import Link from 'next/link'; import styles from './crm.module.css'; import { useToast } from '@/context/ToastContext'; export default function CRMDashboard() { const { showToast } = useToast(); const stats = [ { label: 'Total Leads', value: '247', change: '+12%', positive: true, icon: '👥' }, { label: 'Open Opportunities', value: '34', change: '+5%', positive: true, icon: '🎯' }, { label: 'Quotes Pending', value: '12', change: '-3%', positive: false, icon: '📄' }, { label: 'Revenue (MTD)', value: '₹8.4L', change: '+18%', positive: true, icon: '💰' } ]; const recentActivities = [ { type: 'lead', title: 'New lead from website', time: '5 mins ago', icon: '🆕' }, { type: 'opportunity', title: 'Deal moved to Proposal stage', time: '1 hour ago', icon: '📈' }, { type: 'quote', title: 'Quote sent to Acme Corp', time: '2 hours ago', icon: '📧' }, { type: 'won', title: 'Deal won - TechFlow Solutions', time: '3 hours ago', icon: '🎉' } ]; return (

CRM Dashboard

Manage leads, opportunities, and customer relationships

{/* Stats Grid */}
{stats.map((stat, index) => (
{stat.icon} {stat.label}
{stat.value}
{stat.positive ? '↑' : '↓'} {stat.change} from last month
))}
{/* Quick Actions & Recent Activity */}
{/* Quick Actions */}

âš¡ Quick Actions

e.currentTarget.style.transform = 'translateY(-4px)'} onMouseLeave={(e) => e.currentTarget.style.transform = 'translateY(0)'} >
👥
Manage Leads
View and manage all leads
e.currentTarget.style.transform = 'translateY(-4px)'} onMouseLeave={(e) => e.currentTarget.style.transform = 'translateY(0)'} >
🎯
Pipeline
Track opportunities
e.currentTarget.style.transform = 'translateY(-4px)'} onMouseLeave={(e) => e.currentTarget.style.transform = 'translateY(0)'} >
📄
Quotes
Create and send quotes
e.currentTarget.style.transform = 'translateY(-4px)'} onMouseLeave={(e) => e.currentTarget.style.transform = 'translateY(0)'} >
📊
Analytics
View reports and insights
{/* Recent Activity */}

🔔 Recent Activity

{recentActivities.map((activity, index) => (
{activity.icon}
{activity.title}
{activity.time}
))}
); }