Spaces:
Running
Running
File size: 86,472 Bytes
baf71e2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 | <!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> |