lead-manager / index.html
agatebc's picture
Add 2 files
baf71e2 verified
Raw History Blame Contribute Delete
86.5 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>LeadMaster Pro - Lead Management System</title> <script src="https://cdn.tailwindcss.com"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <script> tailwind.config = { theme: { extend: { colors: { primary: '#4F46E5', secondary: '#10B981', danger: '#EF4444', warning: '#F59E0B', info: '#3B82F6' } } } } </script> <style> .sidebar { transition: all 0.3s; } .sidebar-collapsed { width: 70px; } .sidebar-collapsed .sidebar-text { display: none; } .sidebar-collapsed .logo-text { display: none; } .sidebar-collapsed .nav-item { justify-content: center; } .main-content { transition: all 0.3s; } .sidebar-expanded .main-content { margin-left: 250px; } .sidebar-collapsed .main-content { margin-left: 70px; } .notification-badge { position: absolute; top: -5px; right: -5px; font-size: 10px; min-width: 18px; height: 18px; } .chart-container { height: 300px; } .lead-score-1 { background-color: #FEE2E2; } .lead-score-2 { background-color: #FECACA; } .lead-score-3 { background-color: #FCA5A5; } .lead-score-4 { background-color: #F87171; } .lead-score-5 { background-color: #EF4444; } .lead-score-6 { background-color: #F59E0B; } .lead-score-7 { background-color: #FBBF24; } .lead-score-8 { background-color: #FCD34D; } .lead-score-9 { background-color: #86EFAC; } .lead-score-10 { background-color: #4ADE80; } .dropdown:hover .dropdown-menu { display: block; } [x-cloak] { display: none !important; } </style> </head> <body class="bg-gray-100 font-sans"> <!-- Alpine.js for interactivity --> <script src="//unpkg.com/alpinejs" defer></script> <div class="flex h-screen" x-data="{ sidebarCollapsed: false, currentTab: 'dashboard', showLeadForm: false, showNotificationModal: false, showWhatsAppModal: false, showTelescriptModal: false }"> <!-- Sidebar --> <div class="sidebar bg-white shadow-md fixed h-full z-10" :class="sidebarCollapsed ? 'sidebar-collapsed w-16' : 'w-64'"> <div class="p-4 border-b border-gray-200 flex items-center"> <div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center text-white"> <i class="fas fa-bullseye text-xl"></i> </div> <h1 class="logo-text text-xl font-bold ml-3 text-gray-800">LeadMaster</h1> </div> <div class="p-4"> <div class="relative"> <input type="text" placeholder="Search..." class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> </div> </div> <nav class="mt-2"> <div @click="currentTab = 'dashboard'" class="nav-item flex items-center px-4 py-3 cursor-pointer hover:bg-gray-100" :class="currentTab === 'dashboard' ? 'bg-primary bg-opacity-10 text-primary border-r-4 border-primary' : 'text-gray-600'"> <i class="fas fa-tachometer-alt text-lg"></i> <span class="sidebar-text ml-3">Dashboard</span> </div> <div @click="currentTab = 'leads'" class="nav-item flex items-center px-4 py-3 cursor-pointer hover:bg-gray-100" :class="currentTab === 'leads' ? 'bg-primary bg-opacity-10 text-primary border-r-4 border-primary' : 'text-gray-600'"> <i class="fas fa-users text-lg"></i> <span class="sidebar-text ml-3">Leads</span> <span class="notification-badge bg-danger text-white rounded-full flex items-center justify-center">5</span> </div> <div @click="currentTab = 'reports'" class="nav-item flex items-center px-4 py-3 cursor-pointer hover:bg-gray-100" :class="currentTab === 'reports' ? 'bg-primary bg-opacity-10 text-primary border-r-4 border-primary' : 'text-gray-600'"> <i class="fas fa-chart-bar text-lg"></i> <span class="sidebar-text ml-3">Reports</span> </div> <div @click="currentTab = 'compliance'" class="nav-item flex items-center px-4 py-3 cursor-pointer hover:bg-gray-100" :class="currentTab === 'compliance' ? 'bg-primary bg-opacity-10 text-primary border-r-4 border-primary' : 'text-gray-600'"> <i class="fas fa-clipboard-check text-lg"></i> <span class="sidebar-text ml-3">Compliance</span> <span class="notification-badge bg-warning text-white rounded-full flex items-center justify-center">12</span> </div> <div @click="currentTab = 'telescripts'" class="nav-item flex items-center px-4 py-3 cursor-pointer hover:bg-gray-100" :class="currentTab === 'telescripts' ? 'bg-primary bg-opacity-10 text-primary border-r-4 border-primary' : 'text-gray-600'"> <i class="fas fa-phone-alt text-lg"></i> <span class="sidebar-text ml-3">Telescripts</span> </div> <div @click="currentTab = 'whatsapp'" class="nav-item flex items-center px-4 py-3 cursor-pointer hover:bg-gray-100" :class="currentTab === 'whatsapp' ? 'bg-primary bg-opacity-10 text-primary border-r-4 border-primary' : 'text-gray-600'"> <i class="fab fa-whatsapp text-lg"></i> <span class="sidebar-text ml-3">WhatsApp</span> </div> <div @click="currentTab = 'settings'" class="nav-item flex items-center px-4 py-3 cursor-pointer hover:bg-gray-100" :class="currentTab === 'settings' ? 'bg-primary bg-opacity-10 text-primary border-r-4 border-primary' : 'text-gray-600'"> <i class="fas fa-cog text-lg"></i> <span class="sidebar-text ml-3">Settings</span> </div> </nav> <div class="absolute bottom-0 left-0 right-0 p-4 border-t border-gray-200"> <div class="flex items-center"> <div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center text-white"> <i class="fas fa-user text-lg"></i> </div> <div class="sidebar-text ml-3" x-show="!sidebarCollapsed"> <p class="text-sm font-medium text-gray-800">John Doe</p> <p class="text-xs text-gray-500">Admin</p> </div> <button @click="sidebarCollapsed = !sidebarCollapsed" class="ml-auto text-gray-500 hover:text-gray-700"> <i :class="sidebarCollapsed ? 'fas fa-chevron-right' : 'fas fa-chevron-left'" class="text-lg"></i> </button> </div> </div> </div> <!-- Main Content --> <div class="main-content flex-1 overflow-auto" :class="sidebarCollapsed ? 'ml-16' : 'ml-64'"> <!-- Top Navigation --> <header class="bg-white shadow-sm"> <div class="px-6 py-4 flex items-center justify-between"> <h2 class="text-xl font-semibold text-gray-800" x-text="currentTab.charAt(0).toUpperCase() + currentTab.slice(1)"></h2> <div class="flex items-center space-x-4"> <div class="relative"> <button class="p-2 rounded-full hover:bg-gray-100 relative"> <i class="fas fa-bell text-gray-600"></i> <span class="notification-badge bg-danger text-white rounded-full flex items-center justify-center">3</span> </button> </div> <div class="relative dropdown"> <button class="flex items-center space-x-2 focus:outline-none"> <div class="w-8 h-8 rounded-full bg-primary flex items-center justify-center text-white"> <i class="fas fa-user text-sm"></i> </div> <span class="hidden md:inline-block font-medium">John Doe</span> <i class="fas fa-chevron-down text-xs text-gray-500"></i> </button> <div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-20 hidden"> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a> <div class="border-t border-gray-200"></div> <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Logout</a> </div> </div> </div> </div> </header> <!-- Content Area --> <main class="p-6"> <!-- Dashboard Tab --> <div x-show="currentTab === 'dashboard'" x-cloak> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"> <!-- KPI Cards --> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-sm font-medium text-gray-500">Lead Conversion Rate</p> <h3 class="text-2xl font-bold text-gray-800 mt-1">24.5%</h3> <p class="text-xs text-green-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 3.2% from last month</p> </div> <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center text-green-600"> <i class="fas fa-exchange-alt"></i> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-sm font-medium text-gray-500">Cost per Lead</p> <h3 class="text-2xl font-bold text-gray-800 mt-1">₹120</h3> <p class="text-xs text-red-500 mt-1"><i class="fas fa-arrow-down mr-1"></i> 8.5% from last month</p> </div> <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-blue-600"> <i class="fas fa-rupee-sign"></i> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-sm font-medium text-gray-500">Lead Response Time</p> <h3 class="text-2xl font-bold text-gray-800 mt-1">2.4 hrs</h3> <p class="text-xs text-green-500 mt-1"><i class="fas fa-arrow-up mr-1"></i> 1.1 hrs faster</p> </div> <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-600"> <i class="fas fa-clock"></i> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between"> <div> <p class="text-sm font-medium text-gray-500">Follow-up Completion</p> <h3 class="text-2xl font-bold text-gray-800 mt-1">78%</h3> <p class="text-xs text-red-500 mt-1"><i class="fas fa-arrow-down mr-1"></i> 5% from last month</p> </div> <div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600"> <i class="fas fa-check-circle"></i> </div> </div> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> <!-- Charts --> <div class="bg-white rounded-lg shadow p-6 col-span-2"> <div class="flex items-center justify-between mb-4"> <h3 class="text-lg font-semibold text-gray-800">Leads by Status (Current Month)</h3> <div class="flex space-x-2"> <button class="px-3 py-1 text-xs bg-gray-100 rounded-md">Month</button> <button class="px-3 py-1 text-xs bg-primary text-white rounded-md">Year</button> </div> </div> <div class="chart-container"> <canvas id="statusChart"></canvas> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <div class="flex items-center justify-between mb-4"> <h3 class="text-lg font-semibold text-gray-800">Compliance Issues</h3> <button class="text-primary text-sm font-medium">View All</button> </div> <div class="space-y-4"> <div class="flex items-center justify-between p-3 bg-red-50 rounded-lg"> <div class="flex items-center"> <div class="w-8 h-8 rounded-full bg-red-100 flex items-center justify-center text-red-600 mr-3"> <i class="fas fa-exclamation-circle"></i> </div> <div> <p class="text-sm font-medium">Missing Contact Info</p> <p class="text-xs text-gray-500">12 leads</p> </div> </div> <button class="text-xs text-red-600 hover:text-red-800">Fix</button> </div> <div class="flex items-center justify-between p-3 bg-yellow-50 rounded-lg"> <div class="flex items-center"> <div class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600 mr-3"> <i class="fas fa-calendar-times"></i> </div> <div> <p class="text-sm font-medium">Missing Follow-up</p> <p class="text-xs text-gray-500">8 leads</p> </div> </div> <button class="text-xs text-yellow-600 hover:text-yellow-800">Fix</button> </div> <div class="flex items-center justify-between p-3 bg-blue-50 rounded-lg"> <div class="flex items-center"> <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mr-3"> <i class="fas fa-user-slash"></i> </div> <div> <p class="text-sm font-medium">No Lead Owner</p> <p class="text-xs text-gray-500">5 leads</p> </div> </div> <button class="text-xs text-blue-600 hover:text-blue-800">Fix</button> </div> </div> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-2 gap-6"> <!-- Recent Leads --> <div class="bg-white rounded-lg shadow overflow-hidden"> <div class="px-6 py-4 border-b border-gray-200 flex items-center justify-between"> <h3 class="text-lg font-semibold text-gray-800">Recent Leads</h3> <button @click="showLeadForm = true" class="px-3 py-1 bg-primary text-white text-sm rounded-md hover:bg-primary-dark">Add Lead</button> </div> <div class="overflow-x-auto"> <table class="min-w-full divide-y divide-gray-200"> <thead class="bg-gray-50"> <tr> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Follow-up</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600"> <i class="fas fa-building"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Tech Solutions Inc.</div> <div class="text-sm text-gray-500">john@techsolutions.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Hot Lead</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> Today, 3:00 PM </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-phone-alt"></i></button> <button class="text-green-600 hover:text-green-800 mr-3"><i class="fab fa-whatsapp"></i></button> <button class="text-gray-600 hover:text-gray-800"><i class="fas fa-ellipsis-v"></i></button> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600"> <i class="fas fa-store"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Retail Ventures</div> <div class="text-sm text-gray-500">sarah@retailventures.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Warm Lead</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> Tomorrow, 10:00 AM </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-phone-alt"></i></button> <button class="text-green-600 hover:text-green-800 mr-3"><i class="fab fa-whatsapp"></i></button> <button class="text-gray-600 hover:text-gray-800"><i class="fas fa-ellipsis-v"></i></button> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 flex items-center justify-center text-red-600"> <i class="fas fa-industry"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Manufacturing Corp</div> <div class="text-sm text-gray-500">mike@manufacturing.com</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Cold Lead</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> Overdue (2 days) </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-phone-alt"></i></button> <button class="text-green-600 hover:text-green-800 mr-3"><i class="fab fa-whatsapp"></i></button> <button class="text-gray-600 hover:text-gray-800"><i class="fas fa-ellipsis-v"></i></button> </td> </tr> </tbody> </table> </div> </div> <!-- Follow-up Alerts --> <div class="bg-white rounded-lg shadow overflow-hidden"> <div class="px-6 py-4 border-b border-gray-200"> <h3 class="text-lg font-semibold text-gray-800">Follow-up Alerts</h3> </div> <div class="divide-y divide-gray-200"> <div class="p-4 hover:bg-gray-50 cursor-pointer"> <div class="flex items-start"> <div class="flex-shrink-0 pt-1"> <div class="w-8 h-8 rounded-full bg-red-100 flex items-center justify-center text-red-600"> <i class="fas fa-exclamation"></i> </div> </div> <div class="ml-3 flex-1"> <p class="text-sm font-medium text-gray-900">Overdue follow-up with Manufacturing Corp</p> <p class="text-sm text-gray-500 mt-1">Follow-up was scheduled for 2 days ago. Lead status may change to cold if not contacted soon.</p> <div class="mt-2 flex"> <button class="px-3 py-1 bg-primary text-white text-xs rounded-md hover:bg-primary-dark mr-2">Call Now</button> <button class="px-3 py-1 bg-gray-100 text-gray-800 text-xs rounded-md hover:bg-gray-200">Reschedule</button> </div> </div> </div> </div> <div class="p-4 hover:bg-gray-50 cursor-pointer"> <div class="flex items-start"> <div class="flex-shrink-0 pt-1"> <div class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600"> <i class="fas fa-clock"></i> </div> </div> <div class="ml-3 flex-1"> <p class="text-sm font-medium text-gray-900">Follow-up with Tech Solutions Inc. today</p> <p class="text-sm text-gray-500 mt-1">Scheduled call at 3:00 PM. Prepare telescript for product demo questions.</p> <div class="mt-2 flex"> <button class="px-3 py-1 bg-primary text-white text-xs rounded-md hover:bg-primary-dark mr-2">View Script</button> <button class="px-3 py-1 bg-gray-100 text-gray-800 text-xs rounded-md hover:bg-gray-200">Remind Me</button> </div> </div> </div> </div> <div class="p-4 hover:bg-gray-50 cursor-pointer"> <div class="flex items-start"> <div class="flex-shrink-0 pt-1"> <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center text-blue-600"> <i class="fas fa-calendar-check"></i> </div> </div> <div class="ml-3 flex-1"> <p class="text-sm font-medium text-gray-900">Retail Ventures follow-up tomorrow</p> <p class="text-sm text-gray-500 mt-1">Decision expected on bulk order. Prepare discount options.</p> <div class="mt-2 flex"> <button class="px-3 py-1 bg-primary text-white text-xs rounded-md hover:bg-primary-dark mr-2">Prepare</button> <button class="px-3 py-1 bg-gray-100 text-gray-800 text-xs rounded-md hover:bg-gray-200">View History</button> </div> </div> </div> </div> </div> </div> </div> </div> <!-- Leads Tab --> <div x-show="currentTab === 'leads'" x-cloak> <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> <div class="px-6 py-4 border-b border-gray-200 flex flex-col md:flex-row md:items-center md:justify-between"> <h3 class="text-lg font-semibold text-gray-800 mb-2 md:mb-0">All Leads</h3> <div class="flex space-x-2"> <div class="relative"> <select class="appearance-none bg-gray-100 border border-gray-300 rounded-md pl-3 pr-8 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> <option>Filter by Status</option> <option>Hot Lead</option> <option>Warm Lead</option> <option>Cold Lead</option> <option>Converted</option> <option>Lost</option> </select> <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> <i class="fas fa-chevron-down text-xs"></i> </div> </div> <div class="relative"> <select class="appearance-none bg-gray-100 border border-gray-300 rounded-md pl-3 pr-8 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> <option>Filter by Owner</option> <option>John Doe</option> <option>Jane Smith</option> <option>Mike Johnson</option> </select> <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> <i class="fas fa-chevron-down text-xs"></i> </div> </div> <button @click="showLeadForm = true" class="px-3 py-1 bg-primary text-white text-sm rounded-md hover:bg-primary-dark flex items-center"> <i class="fas fa-plus mr-1"></i> Add Lead </button> </div> </div> <div class="overflow-x-auto"> <table class="min-w-full divide-y divide-gray-200"> <thead class="bg-gray-50"> <tr> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Lead Name</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Contact</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Follow-up</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Lead Score</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600"> <i class="fas fa-building"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Tech Solutions Inc.</div> <div class="text-sm text-gray-500">IT Services</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">John Smith</div> <div class="text-sm text-gray-500">+91 9876543210</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Hot Lead</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> Today, 3:00 PM </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-green-600 h-2.5 rounded-full" style="width: 85%"></div> </div> <span class="text-xs text-gray-500 mt-1">85/100</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-eye"></i></button> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600"> <i class="fas fa-store"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Retail Ventures</div> <div class="text-sm text-gray-500">Retail Chain</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">Sarah Johnson</div> <div class="text-sm text-gray-500">+91 8765432109</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Warm Lead</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> Tomorrow, 10:00 AM </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-yellow-500 h-2.5 rounded-full" style="width: 65%"></div> </div> <span class="text-xs text-gray-500 mt-1">65/100</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-eye"></i></button> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 flex items-center justify-center text-red-600"> <i class="fas fa-industry"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Manufacturing Corp</div> <div class="text-sm text-gray-500">Industrial</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">Mike Brown</div> <div class="text-sm text-gray-500">+91 7654321098</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Cold Lead</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> Overdue (2 days) </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-blue-500 h-2.5 rounded-full" style="width: 30%"></div> </div> <span class="text-xs text-gray-500 mt-1">30/100</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-eye"></i></button> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center text-green-600"> <i class="fas fa-hospital"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">HealthCare Plus</div> <div class="text-sm text-gray-500">Healthcare</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">Dr. Anjali Patel</div> <div class="text-sm text-gray-500">+91 6543210987</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Converted</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> Completed (5 days ago) </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-green-600 h-2.5 rounded-full" style="width: 95%"></div> </div> <span class="text-xs text-gray-500 mt-1">95/100</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-eye"></i></button> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button> </td> </tr> </tbody> </table> </div> <div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between"> <div class="text-sm text-gray-500"> Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">24</span> results </div> <div class="flex space-x-2"> <button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">Previous</button> <button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">Next</button> </div> </div> </div> </div> <!-- Reports Tab --> <div x-show="currentTab === 'reports'" x-cloak> <div class="bg-white rounded-lg shadow p-6 mb-6"> <div class="flex flex-col md:flex-row md:items-center md:justify-between mb-6"> <h3 class="text-lg font-semibold text-gray-800">Lead Analytics</h3> <div class="flex space-x-2 mt-2 md:mt-0"> <div class="relative"> <select class="appearance-none bg-gray-100 border border-gray-300 rounded-md pl-3 pr-8 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> <option>Last 7 Days</option> <option>Last 30 Days</option> <option>Last Quarter</option> <option>Last Year</option> <option>Custom Range</option> </select> <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> <i class="fas fa-chevron-down text-xs"></i> </div> </div> <div class="relative"> <select class="appearance-none bg-gray-100 border border-gray-300 rounded-md pl-3 pr-8 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> <option>All Lead Owners</option> <option>John Doe</option> <option>Jane Smith</option> <option>Mike Johnson</option> </select> <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> <i class="fas fa-chevron-down text-xs"></i> </div> </div> <button class="px-3 py-1 bg-primary text-white text-sm rounded-md hover:bg-primary-dark flex items-center"> <i class="fas fa-download mr-1"></i> Export </button> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6"> <div class="bg-white rounded-lg border border-gray-200 p-4"> <h4 class="text-md font-semibold text-gray-800 mb-4">Leads by Status</h4> <div class="chart-container"> <canvas id="leadsByStatusChart"></canvas> </div> </div> <div class="bg-white rounded-lg border border-gray-200 p-4"> <h4 class="text-md font-semibold text-gray-800 mb-4">Leads by Source</h4> <div class="chart-container"> <canvas id="leadsBySourceChart"></canvas> </div> </div> </div> <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> <div class="bg-white rounded-lg border border-gray-200 p-4"> <h4 class="text-md font-semibold text-gray-800 mb-4">Conversion Funnel</h4> <div class="space-y-4"> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-gray-700">Initial Contact</span> <span class="text-sm font-medium text-gray-700">100%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-blue-600 h-2.5 rounded-full" style="width: 100%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-gray-700">Qualified Leads</span> <span class="text-sm font-medium text-gray-700">65%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-purple-600 h-2.5 rounded-full" style="width: 65%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-gray-700">Proposal Sent</span> <span class="text-sm font-medium text-gray-700">42%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-green-600 h-2.5 rounded-full" style="width: 42%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-gray-700">Closed Won</span> <span class="text-sm font-medium text-gray-700">24%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div class="bg-primary h-2.5 rounded-full" style="width: 24%"></div> </div> </div> </div> </div> <div class="bg-white rounded-lg border border-gray-200 p-4"> <h4 class="text-md font-semibold text-gray-800 mb-4">Lead Response Time</h4> <div class="flex items-center justify-center h-full"> <div class="text-center"> <div class="text-4xl font-bold text-primary mb-2">2.4</div> <div class="text-sm text-gray-600">Average Hours</div> <div class="text-xs text-green-500 mt-2"><i class="fas fa-arrow-up mr-1"></i> 1.1 hrs faster than last month</div> </div> </div> </div> <div class="bg-white rounded-lg border border-gray-200 p-4"> <h4 class="text-md font-semibold text-gray-800 mb-4">Top Lead Sources</h4> <div class="space-y-3"> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-gray-700">Website Form</span> <span class="text-sm font-medium text-gray-700">32%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-blue-600 h-2 rounded-full" style="width: 32%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-gray-700">Referrals</span> <span class="text-sm font-medium text-gray-700">24%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-green-600 h-2 rounded-full" style="width: 24%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-gray-700">Social Media</span> <span class="text-sm font-medium text-gray-700">18%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-purple-600 h-2 rounded-full" style="width: 18%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-gray-700">Events</span> <span class="text-sm font-medium text-gray-700">12%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-yellow-500 h-2 rounded-full" style="width: 12%"></div> </div> </div> <div> <div class="flex justify-between mb-1"> <span class="text-sm font-medium text-gray-700">Other</span> <span class="text-sm font-medium text-gray-700">14%</span> </div> <div class="w-full bg-gray-200 rounded-full h-2"> <div class="bg-gray-600 h-2 rounded-full" style="width: 14%"></div> </div> </div> </div> </div> </div> <div class="bg-white rounded-lg border border-gray-200 p-4"> <h4 class="text-md font-semibold text-gray-800 mb-4">Monthly Lead Trends</h4> <div class="chart-container" style="height: 350px;"> <canvas id="monthlyTrendsChart"></canvas> </div> </div> </div> </div> <!-- Compliance Tab --> <div x-show="currentTab === 'compliance'" x-cloak> <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> <div class="px-6 py-4 border-b border-gray-200 flex flex-col md:flex-row md:items-center md:justify-between"> <h3 class="text-lg font-semibold text-gray-800 mb-2 md:mb-0">Compliance Issues</h3> <div class="flex space-x-2"> <div class="relative"> <select class="appearance-none bg-gray-100 border border-gray-300 rounded-md pl-3 pr-8 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> <option>All Issue Types</option> <option>Missing Contact Info</option> <option>Missing Follow-up</option> <option>No Lead Owner</option> <option>Missing Source</option> <option>Missing Status</option> </select> <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> <i class="fas fa-chevron-down text-xs"></i> </div> </div> <div class="relative"> <select class="appearance-none bg-gray-100 border border-gray-300 rounded-md pl-3 pr-8 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"> <option>All Lead Owners</option> <option>John Doe</option> <option>Jane Smith</option> <option>Mike Johnson</option> </select> <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> <i class="fas fa-chevron-down text-xs"></i> </div> </div> </div> </div> <div class="overflow-x-auto"> <table class="min-w-full divide-y divide-gray-200"> <thead class="bg-gray-50"> <tr> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Lead Name</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Issue Type</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Owner</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date Identified</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 flex items-center justify-center text-red-600"> <i class="fas fa-industry"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Manufacturing Corp</div> <div class="text-sm text-gray-500">Industrial</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Missing Follow-up</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> John Doe </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 2 days ago </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="px-3 py-1 bg-primary text-white text-xs rounded-md hover:bg-primary-dark mr-2">Fix Now</button> <button class="px-3 py-1 bg-gray-100 text-gray-800 text-xs rounded-md hover:bg-gray-200">Ignore</button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600"> <i class="fas fa-school"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">EduTech Solutions</div> <div class="text-sm text-gray-500">Education</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Missing Contact Info</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> Jane Smith </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 1 day ago </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="px-3 py-1 bg-primary text-white text-xs rounded-md hover:bg-primary-dark mr-2">Fix Now</button> <button class="px-3 py-1 bg-gray-100 text-gray-800 text-xs rounded-md hover:bg-gray-200">Ignore</button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-green-100 flex items-center justify-center text-green-600"> <i class="fas fa-utensils"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Foodie Delights</div> <div class="text-sm text-gray-500">Restaurant</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">No Lead Owner</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> Unassigned </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 3 hours ago </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="px-3 py-1 bg-primary text-white text-xs rounded-md hover:bg-primary-dark mr-2">Assign Now</button> <button class="px-3 py-1 bg-gray-100 text-gray-800 text-xs rounded-md hover:bg-gray-200">Ignore</button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600"> <i class="fas fa-car"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">AutoCare Services</div> <div class="text-sm text-gray-500">Automotive</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Missing Status</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> Mike Johnson </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 5 days ago </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="px-3 py-1 bg-primary text-white text-xs rounded-md hover:bg-primary-dark mr-2">Fix Now</button> <button class="px-3 py-1 bg-gray-100 text-gray-800 text-xs rounded-md hover:bg-gray-200">Ignore</button> </td> </tr> </tbody> </table> </div> <div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between"> <div class="text-sm text-gray-500"> Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">12</span> results </div> <div class="flex space-x-2"> <button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">Previous</button> <button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">Next</button> </div> </div> </div> <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> <div class="bg-white rounded-lg shadow p-6"> <h3 class="text-lg font-semibold text-gray-800 mb-4">Compliance Issues by Type</h3> <div class="chart-container"> <canvas id="complianceIssuesChart"></canvas> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <h3 class="text-lg font-semibold text-gray-800 mb-4">Compliance Issues by Owner</h3> <div class="chart-container"> <canvas id="complianceByOwnerChart"></canvas> </div> </div> </div> </div> <!-- Telescripts Tab --> <div x-show="currentTab === 'telescripts'" x-cloak> <div class="bg-white rounded-lg shadow overflow-hidden mb-6"> <div class="px-6 py-4 border-b border-gray-200 flex flex-col md:flex-row md:items-center md:justify-between"> <h3 class="text-lg font-semibold text-gray-800 mb-2 md:mb-0">Telescripts</h3> <button @click="showTelescriptModal = true" class="px-3 py-1 bg-primary text-white text-sm rounded-md hover:bg-primary-dark flex items-center"> <i class="fas fa-plus mr-1"></i> Add Telescript </button> </div> <div class="overflow-x-auto"> <table class="min-w-full divide-y divide-gray-200"> <thead class="bg-gray-50"> <tr> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Title</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Category</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Updated</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Initial Contact Script</div> <div class="text-sm text-gray-500">For first-time calls</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">General</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 2 days ago </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-eye"></i></button> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Product Demo Follow-up</div> <div class="text-sm text-gray-500">After demo session</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Follow-up</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 1 week ago </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-eye"></i></button> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Objection Handling</div> <div class="text-sm text-gray-500">Common objections</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Sales</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 3 weeks ago </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-eye"></i></button> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button> </td> </tr> <tr class="hover:bg-gray-50"> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm font-medium text-gray-900">Cold Lead Re-engagement</div> <div class="text-sm text-gray-500">For cold leads</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">Re-engagement</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 1 month ago </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-eye"></i></button> <button class="text-blue-600 hover:text-blue-800 mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button> </td> </tr> </tbody> </table> </div> <div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between"> <div class="text-sm text-gray-500"> Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">8</span> results </div> <div class="flex space-x-2"> <button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">Previous</button> <button class="px-3 py-1 border border-gray-300 rounded-md text-sm bg-white text-gray-700 hover:bg-gray-50">Next</button> </div> </div> </div> <div class="bg-white rounded-lg shadow p-6"> <h3 class="text-lg font-semibold text-gray-800 mb-4">Telescript Categories</h3> <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md cursor-pointer"> <div class="flex items-center mb-2"> <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mr-3"> <i class="fas fa-headset"></i> </div> <h4 class="text-md font-medium text-gray-800">Initial Contact</h4> </div> <p class="text-sm text-gray-600">Scripts for first-time calls and introductions</p> <div class="mt-3 text-xs text-gray-500">5 scripts</div> </div> <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md cursor-pointer"> <div class="flex items-center mb-2"> <div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center text-green-600 mr-3"> <i class="fas fa-phone-alt"></i> </div> <h4 class="text-md font-medium text-gray-800">Follow-up</h4> </div> <p class="text-sm text-gray-600">Scripts for follow-up calls after initial contact</p> <div class="mt-3 text-xs text-gray-500">3 scripts</div> </div> <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md cursor-pointer"> <div class="flex items-center mb-2"> <div class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600 mr-3"> <i class="fas fa-hand-paper"></i> </div> <h4 class="text-md font-medium text-gray-800">Objection Handling</h4> </div> <p class="text-sm text-gray-600">Responses to common objections and concerns</p> <div class="mt-3 text-xs text-gray-500">7 scripts</div> </div> <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md cursor-pointer"> <div class="flex items-center mb-2"> <div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center text-purple-600 mr-3"> <i class="fas fa-fire"></i> </div> <h4 class="text-md font-medium text-gray-800">Hot Lead</h4> </div> <p class="text-sm text-gray-600">Scripts for highly interested potential customers</p> <div class="mt-3 text-xs text-gray-500">2 scripts</div> </div> <div class="border border-gray-200 rounded-lg p-4 hover:shadow-md cursor-pointer"> <div class="flex items-center mb-2"> <div class="w-8 h-8 rounded-full bg-red </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LeadMaster Pro - Lead Management System</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: '#4F46E5',
secondary: '#10B981',
danger: '#EF4444',
warning: '#F59E0B',
info: '#3B82F6'
}
}
}
}
</script>
<style>
.sidebar {
transition: all 0.3s;
}
.sidebar-collapsed {
width: 70px;
}
.sidebar-collapsed .sidebar-text {
display: none;
}
.sidebar-collapsed .logo-text {
display: none;
}
.sidebar-collapsed .nav-item {
justify-content: center;
}
.main-content {
transition: all 0.3s;
}
.sidebar-expanded .main-content {
margin-left: 250px;
}
.sidebar-collapsed .main-content {
margin-left: 70px;
}
.notification-badge {
position: absolute;
top: -5px;
right: -5px;
font-size: 10px;
min-width: 18px;
height: 18px;
}
.chart-container {
height: 300px;
}
.lead-score-1 { background-color: #FEE2E2; }
.lead-score-2 { background-color: #FECACA; }
.lead-score-3 { background-color: #FCA5A5; }
.lead-score-4 { background-color: #F87171; }
.lead-score-5 { background-color: #EF4444; }
.lead-score-6 { background-color: #F59E0B; }
.lead-score-7 { background-color: #FBBF24; }
.lead-score-8 { background-color: #FCD34D; }
.lead-score-9 { background-color: #86EFAC; }
.lead-score-10 { background-color: #4ADE80; }
.dropdown:hover .dropdown-menu {
display: block;
}
[x-cloak] { display: none !important; }
</style>
</head>
<body class="bg-gray-100 font-sans">
<!-- Alpine.js for interactivity -->
<script src="//unpkg.com/alpinejs" defer></script>
<div class="flex h-screen" x-data="{ sidebarCollapsed: false, currentTab: 'dashboard', showLeadForm: false, showNotificationModal: false, showWhatsAppModal: false, showTelescriptModal: false }">
<!-- Sidebar -->
<div class="sidebar bg-white shadow-md fixed h-full z-10"
:class="sidebarCollapsed ? 'sidebar-collapsed w-16' : 'w-64'">
<div class="p-4 border-b border-gray-200 flex items-center">
<div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center text-white">
<i class="fas fa-bullseye text-xl"></i>
</div>
<h1 class="logo-text text-xl font-bold ml-3 text-gray-800">LeadMaster</h1>
</div>
<div class="p-4">
<div class="relative">
<input type="text" placeholder="Search..." class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
</div>
<nav class="mt-2">
<div @click="currentTab = 'dashboard'" class="nav-item flex items-center px-4 py-3 cursor-pointer hover:bg-gray-100" :class="currentTab === 'dashboard' ? 'bg-primary bg-opacity-10 text-primary border-r-4 border-primary' : 'text-gray-600'">
<i class="fas fa-tachometer-alt text-lg"></i>