File size: 48,592 Bytes
cedaca6 cad4645 cedaca6 cad4645 cedaca6 cad4645 cedaca6 cad4645 cedaca6 cad4645 cedaca6 cad4645 cedaca6 cad4645 cedaca6 |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TaxPro CRM | Tax Planning Services Management</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">
<style>
.sidebar {
transition: all 0.3s ease;
}
.sidebar.collapsed {
width: 70px;
}
.sidebar.collapsed .nav-text {
display: none;
}
.sidebar.collapsed .logo-text {
display: none;
}
.sidebar.collapsed .nav-item {
justify-content: center;
}
.client-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
#calendar {
height: 500px;
}
.fc-event {
cursor: pointer;
}
.progress-bar {
height: 8px;
}
.progress-bar::-webkit-progress-bar {
background-color: #e5e7eb;
border-radius: 4px;
}
.progress-bar::-webkit-progress-value {
border-radius: 4px;
background-color: #3b82f6;
}
.chart-container {
position: relative;
height: 300px;
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-blue-800 text-white w-64 flex flex-col">
<div class="p-4 flex items-center space-x-3 border-b border-blue-700">
<div class="bg-white p-2 rounded-lg">
<i class="fas fa-file-invoice-dollar text-blue-800 text-xl"></i>
</div>
<span class="logo-text text-xl font-bold">TaxPro CRM</span>
</div>
<div class="flex-1 overflow-y-auto py-4">
<div class="px-4 space-y-2">
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
<i class="fas fa-tachometer-alt"></i>
<span class="nav-text">Dashboard</span>
</div>
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
<i class="fas fa-users"></i>
<span class="nav-text">Clients</span>
</div>
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
<i class="fas fa-calendar-check"></i>
<span class="nav-text">Appointments</span>
</div>
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
<i class="fas fa-file-alt"></i>
<span class="nav-text">Documents</span>
</div>
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
<i class="fas fa-chart-line"></i>
<span class="nav-text">Reports</span>
</div>
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
<i class="fas fa-envelope"></i>
<span class="nav-text">Messages</span>
</div>
<div class="nav-item flex items-center space-x-3 p-3 rounded-lg hover:bg-blue-700 cursor-pointer">
<i class="fas fa-cog"></i>
<span class="nav-text">Settings</span>
</div>
</div>
<div class="mt-auto px-4 py-6 border-t border-blue-700">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center">
<i class="fas fa-user"></i>
</div>
<div>
<div class="nav-text font-medium">Admin User</div>
<div class="nav-text text-sm text-blue-200">Tax Consultant</div>
</div>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="flex items-center justify-between px-6 py-4">
<div class="flex items-center space-x-4">
<button id="sidebarToggle" class="text-gray-600 hover:text-gray-900">
<i class="fas fa-bars text-xl"></i>
</button>
<h1 class="text-xl font-semibold text-gray-800">Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="text-gray-600 hover:text-gray-900">
<i class="fas fa-bell text-xl"></i>
<span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
</button>
</div>
<div class="relative">
<button class="text-gray-600 hover:text-gray-900">
<i class="fas fa-envelope text-xl"></i>
<span class="absolute top-0 right-0 w-2 h-2 bg-blue-500 rounded-full"></span>
</button>
</div>
<div class="relative">
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Total Clients</p>
<h3 class="text-2xl font-bold mt-1">248</h3>
<p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i> 12% from last month</p>
</div>
<div class="bg-blue-100 p-3 rounded-full">
<i class="fas fa-users text-blue-600 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Upcoming Appointments</p>
<h3 class="text-2xl font-bold mt-1">14</h3>
<p class="text-red-500 text-sm mt-2"><i class="fas fa-arrow-down mr-1"></i> 3 today</p>
</div>
<div class="bg-green-100 p-3 rounded-full">
<i class="fas fa-calendar-check text-green-600 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Documents Pending</p>
<h3 class="text-2xl font-bold mt-1">32</h3>
<p class="text-yellow-500 text-sm mt-2"><i class="fas fa-exclamation-circle mr-1"></i> 5 urgent</p>
</div>
<div class="bg-purple-100 p-3 rounded-full">
<i class="fas fa-file-alt text-purple-600 text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500">Revenue This Month</p>
<h3 class="text-2xl font-bold mt-1">$24,580</h3>
<p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i> 18% from last month</p>
</div>
<div class="bg-yellow-100 p-3 rounded-full">
<i class="fas fa-dollar-sign text-yellow-600 text-xl"></i>
</div>
</div>
</div>
</div>
<!-- Main Content Grid -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<!-- Recent Clients -->
<div class="lg:col-span-2 bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-lg font-semibold">Recent Clients</h2>
<button class="text-blue-600 hover:text-blue-800 flex items-center">
<span>View All</span>
<i class="fas fa-chevron-right ml-1 text-sm"></i>
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead>
<tr>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Client</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tax Type</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Contact</th>
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Action</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="hover:bg-gray-50">
<td class="px-4 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">
<span class="text-blue-600">JD</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">John Doe</div>
<div class="text-sm text-gray-500">john@example.com</div>
</div>
</div>
</td>
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Personal</td>
<td class="px-4 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Active</span>
</td>
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">2 days ago</td>
<td class="px-4 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3" onclick="openClientModal()"><i class="fas fa-eye"></i></button>
<button class="text-green-600 hover:text-green-900"><i class="fas fa-edit"></i></button>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-4 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">
<span class="text-purple-600">AS</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Acme Solutions</div>
<div class="text-sm text-gray-500">contact@acme.com</div>
</div>
</div>
</td>
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Corporate</td>
<td class="px-4 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pending</span>
</td>
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">1 week ago</td>
<td class="px-4 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
<button class="text-green-600 hover:text-green-900"><i class="fas fa-edit"></i></button>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-4 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 rounded-full bg-pink-100 flex items-center justify-center">
<span class="text-pink-600">MJ</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Mary Johnson</div>
<div class="text-sm text-gray-500">mary.j@example.com</div>
</div>
</div>
</td>
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">Estate</td>
<td class="px-4 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Overdue</span>
</td>
<td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">3 weeks ago</td>
<td class="px-4 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
<button class="text-green-600 hover:text-green-900"><i class="fas fa-edit"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Upcoming Tasks -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-lg font-semibold">Upcoming Tasks</h2>
<button class="text-blue-600 hover:text-blue-800 flex items-center">
<span>Add New</span>
<i class="fas fa-plus ml-1 text-sm"></i>
</button>
</div>
<div class="space-y-4">
<div class="border-l-4 border-blue-500 pl-4 py-2">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Tax Return for John Doe</h4>
<p class="text-sm text-gray-500">Due: Apr 15, 2023</p>
</div>
<span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded-full">High</span>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500">
<i class="fas fa-user mr-1"></i>
<span>Assigned to you</span>
</div>
<div class="mt-3">
<progress class="progress-bar w-full" value="75" max="100"></progress>
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>75% complete</span>
<span>3 of 4 docs</span>
</div>
</div>
</div>
<div class="border-l-4 border-green-500 pl-4 py-2">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Quarterly Review - Acme</h4>
<p class="text-sm text-gray-500">Due: Apr 20, 2023</p>
</div>
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">Medium</span>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500">
<i class="fas fa-user mr-1"></i>
<span>Assigned to team</span>
</div>
<div class="mt-3">
<progress class="progress-bar w-full" value="30" max="100"></progress>
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>30% complete</span>
<span>1 of 3 docs</span>
</div>
</div>
</div>
<div class="border-l-4 border-yellow-500 pl-4 py-2">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Tax Planning Session</h4>
<p class="text-sm text-gray-500">Due: Apr 22, 2023</p>
</div>
<span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full">Low</span>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500">
<i class="fas fa-user mr-1"></i>
<span>Assigned to you</span>
</div>
<div class="mt-3">
<progress class="progress-bar w-full" value="10" max="100"></progress>
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>10% complete</span>
<span>0 of 2 docs</span>
</div>
</div>
</div>
</div>
<button class="w-full mt-4 py-2 border border-dashed border-gray-300 rounded-lg text-gray-500 hover:text-gray-700 hover:border-gray-400" onclick="alert('Add task functionality would open a form here')">
<i class="fas fa-plus mr-1"></i> Add Task
</button>
</div>
</div>
<!-- Bottom Row -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Calendar -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-lg font-semibold">Appointment Calendar</h2>
<div class="flex space-x-2">
<button class="p-1 rounded hover:bg-gray-100">
<i class="fas fa-chevron-left"></i>
</button>
<button class="p-1 rounded hover:bg-gray-100">
<i class="fas fa-chevron-right"></i>
</button>
</div>
</div>
<div id="calendar"></div>
</div>
<!-- Tax Deadlines -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-lg font-semibold">Upcoming Tax Deadlines</h2>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-sync-alt"></i>
</button>
</div>
<div class="space-y-4">
<div class="flex items-start p-3 rounded-lg bg-red-50">
<div class="bg-red-100 p-2 rounded-lg mr-3">
<i class="fas fa-exclamation text-red-600"></i>
</div>
<div>
<h4 class="font-medium">Personal Tax Returns</h4>
<p class="text-sm text-gray-600">April 18, 2023</p>
<p class="text-xs text-red-600 mt-1">5 days remaining</p>
</div>
</div>
<div class="flex items-start p-3 rounded-lg bg-yellow-50">
<div class="bg-yellow-100 p-2 rounded-lg mr-3">
<i class="fas fa-clock text-yellow-600"></i>
</div>
<div>
<h4 class="font-medium">Q1 Estimated Payments</h4>
<p class="text-sm text-gray-600">April 25, 2023</p>
<p class="text-xs text-yellow-600 mt-1">12 days remaining</p>
</div>
</div>
<div class="flex items-start p-3 rounded-lg bg-blue-50">
<div class="bg-blue-100 p-2 rounded-lg mr-3">
<i class="fas fa-calendar-alt text-blue-600"></i>
</div>
<div>
<h4 class="font-medium">Corporate Tax Returns</h4>
<p class="text-sm text-gray-600">May 15, 2023</p>
<p class="text-xs text-blue-600 mt-1">32 days remaining</p>
</div>
</div>
<div class="flex items-start p-3 rounded-lg bg-green-50">
<div class="bg-green-100 p-2 rounded-lg mr-3">
<i class="fas fa-calendar-alt text-green-600"></i>
</div>
<div>
<h4 class="font-medium">Q2 Estimated Payments</h4>
<p class="text-sm text-gray-600">June 15, 2023</p>
<p class="text-xs text-green-600 mt-1">63 days remaining</p>
</div>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-lg font-semibold">Quick Actions</h2>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<div class="grid grid-cols-2 gap-4">
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-blue-500 hover:bg-blue-50" onclick="openClientModal()">
<div class="bg-blue-100 p-3 rounded-full mb-2">
<i class="fas fa-user-plus text-blue-600"></i>
</div>
<span class="text-sm font-medium">Add Client</span>
</button>
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-green-500 hover:bg-green-50">
<div class="bg-green-100 p-3 rounded-full mb-2">
<i class="fas fa-calendar-plus text-green-600"></i>
</div>
<span class="text-sm font-medium">Schedule</span>
</button>
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-purple-500 hover:bg-purple-50">
<div class="bg-purple-100 p-3 rounded-full mb-2">
<i class="fas fa-file-upload text-purple-600"></i>
</div>
<span class="text-sm font-medium">Upload Doc</span>
</button>
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-red-500 hover:bg-red-50">
<div class="bg-red-100 p-3 rounded-full mb-2">
<i class="fas fa-file-invoice-dollar text-red-600"></i>
</div>
<span class="text-sm font-medium">Create Invoice</span>
</button>
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-yellow-500 hover:bg-yellow-50">
<div class="bg-yellow-100 p-3 rounded-full mb-2">
<i class="fas fa-chart-pie text-yellow-600"></i>
</div>
<span class="text-sm font-medium">Reports</span>
</button>
<button class="flex flex-col items-center justify-center p-4 rounded-lg border border-gray-200 hover:border-indigo-500 hover:bg-indigo-50">
<div class="bg-indigo-100 p-3 rounded-full mb-2">
<i class="fas fa-envelope text-indigo-600"></i>
</div>
<span class="text-sm font-medium">Message</span>
</button>
</div>
</div>
</div>
</main>
</div>
</div>
<!-- Client Detail Modal -->
<div id="clientModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-xl w-full max-w-2xl max-h-[90vh] overflow-y-auto">
<div class="p-6">
<div class="flex justify-between items-start mb-6">
<div>
<h3 class="text-xl font-bold">Client Details</h3>
<p class="text-gray-500">View and edit client information</p>
</div>
<button id="closeModal" class="text-gray-400 hover:text-gray-600">
<i class="fas fa-times text-xl"></i>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
<div class="md:col-span-1">
<div class="bg-gray-100 rounded-lg p-4 flex flex-col items-center">
<div class="w-24 h-24 rounded-full bg-blue-200 flex items-center justify-center text-3xl font-bold text-blue-700 mb-3">
JD
</div>
<h4 class="font-bold text-lg">John Doe</h4>
<p class="text-gray-500 text-sm">Personal Tax Client</p>
<div class="mt-4 w-full">
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-500">Status</span>
<span class="font-medium text-green-600">Active</span>
</div>
<div class="flex justify-between text-sm mb-1">
<span class="text-gray-500">Since</span>
<span class="font-medium">Jan 2021</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Last Contact</span>
<span class="font-medium">2 days ago</span>
</div>
</div>
</div>
</div>
<div class="md:col-span-2">
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Full Name</label>
<input type="text" value="John Doe" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Email</label>
<input type="email" value="john@example.com" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Phone</label>
<input type="tel" value="(555) 123-4567" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Address</label>
<input type="text" value="123 Main St, Anytown, USA" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Tax Type</label>
<select class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>Personal</option>
<option>Corporate</option>
<option>Estate</option>
<option>Non-profit</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Status</label>
<select class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
<option class="text-green-600">Active</option>
<option class="text-yellow-600">Pending</option>
<option class="text-red-600">Inactive</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="border-t border-gray-200 pt-6">
<h4 class="font-bold mb-4">Tax Documents</h4>
<div class="space-y-3">
<div class="flex items-center justify-between p-3 border rounded-lg">
<div class="flex items-center">
<i class="fas fa-file-pdf text-red-500 text-xl mr-3"></i>
<div>
<p class="font-medium">2022 Tax Return</p>
<p class="text-sm text-gray-500">Uploaded: Mar 15, 2023</p>
</div>
</div>
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-eye"></i>
</button>
<button class="text-gray-600 hover:text-gray-800">
<i class="fas fa-download"></i>
</button>
</div>
</div>
<div class="flex items-center justify-between p-3 border rounded-lg">
<div class="flex items-center">
<i class="fas fa-file-excel text-green-500 text-xl mr-3"></i>
<div>
<p class="font-medium">Income Statements</p>
<p class="text-sm text-gray-500">Uploaded: Feb 28, 2023</p>
</div>
</div>
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-eye"></i>
</button>
<button class="text-gray-600 hover:text-gray-800">
<i class="fas fa-download"></i>
</button>
</div>
</div>
<button class="w-full py-2 border border-dashed border-gray-300 rounded-lg text-gray-500 hover:text-gray-700 hover:border-gray-400 flex items-center justify-center">
<i class="fas fa-plus mr-2"></i> Add Document
</button>
</div>
</div>
<div class="mt-6 flex justify-end space-x-3">
<button class="px-4 py-2 border rounded-lg hover:bg-gray-100">Cancel</button>
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700">Save Changes</button>
</div>
</div>
</div>
</div>
<script>
// DOM Elements
const clientModal = document.getElementById('clientModal');
const closeModal = document.getElementById('closeModal');
// Authentication state
let currentUser = null;
const authToken = localStorage.getItem('authToken');
// Modal functions
function openClientModal() {
clientModal.classList.remove('hidden');
}
function closeClientModal() {
clientModal.classList.add('hidden');
}
// Event listeners for modal
closeModal.addEventListener('click', closeClientModal);
// Check if user is logged in
if (authToken) {
currentUser = JSON.parse(localStorage.getItem('user'));
showDashboard();
} else {
showLogin();
}
// Toggle sidebar
const sidebarToggle = document.getElementById('sidebarToggle');
const sidebar = document.querySelector('.sidebar');
sidebarToggle.addEventListener('click', function() {
sidebar.classList.toggle('collapsed');
// Store sidebar state in localStorage
const isCollapsed = sidebar.classList.contains('collapsed');
localStorage.setItem('sidebarCollapsed', isCollapsed);
});
// Initialize sidebar state from localStorage
if (localStorage.getItem('sidebarCollapsed') === 'true') {
sidebar.classList.add('collapsed');
}
// Navigation functions
function showLogin() {
document.getElementById('loginPage').classList.remove('hidden');
document.getElementById('dashboardPage').classList.add('hidden');
}
function showRegister() {
document.getElementById('registerPage').classList.remove('hidden');
document.getElementById('loginPage').classList.add('hidden');
}
function showDashboard() {
document.getElementById('dashboardPage').classList.remove('hidden');
document.getElementById('loginPage').classList.add('hidden');
document.getElementById('registerPage').classList.add('hidden');
loadDashboardData();
}
// Login functionality
document.getElementById('loginForm').addEventListener('submit', function(e) {
e.preventDefault();
const email = document.getElementById('loginEmail').value;
const password = document.getElementById('loginPassword').value;
// In a real app, you would validate and send to server
currentUser = { email, name: "Admin User" };
localStorage.setItem('authToken', 'sample-token');
localStorage.setItem('user', JSON.stringify(currentUser));
showDashboard();
});
// Register functionality
document.getElementById('registerForm').addEventListener('submit', function(e) {
e.preventDefault();
const name = document.getElementById('registerName').value;
const email = document.getElementById('registerEmail').value;
const password = document.getElementById('registerPassword').value;
// In a real app, you would send to server
alert('Registration successful! Please login.');
showLogin();
});
// Logout functionality
document.getElementById('logoutBtn').addEventListener('click', function() {
localStorage.removeItem('authToken');
localStorage.removeItem('user');
currentUser = null;
showLogin();
});
// Client modal functionality
document.addEventListener('DOMContentLoaded', function() {
const calendarEl = document.getElementById('calendar');
// This is a simplified representation - in a real app you'd use FullCalendar or similar
calendarEl.innerHTML = `
<div class="mb-4">
<div class="flex justify-between items-center mb-2">
<span class="font-medium">April 2023</span>
</div>
<div class="grid grid-cols-7 gap-1 text-center text-sm font-medium text-gray-500">
<div>Sun</div><div>Mon</div><div>Tue</div><div>Wed</div><div>Thu</div><div>Fri</div><div>Sat</div>
</div>
<div class="grid grid-cols-7 gap-1 mt-1">
${Array(35).fill().map((_, i) => {
const day = i - 5 + 1;
if (day <= 0 || day > 30) {
return `<div class="h-12"></div>`;
}
let content = '';
if (day === 10) content = '<div class="text-xs bg-blue-100 text-blue-800 rounded p-1 mb-1">Meeting with John</div>';
if (day === 15) content = '<div class="text-xs bg-red-100 text-red-800 rounded p-1 mb-1">Tax Deadline</div>';
if (day === 18) content = '<div class="text-xs bg-green-100 text-green-800 rounded p-1 mb-1">Client Call</div>';
if (day === 22) content = '<div class="text-xs bg-purple-100 text-purple-800 rounded p-1 mb-1">Review Docs</div>';
const todayClass = day === 18 ? 'border-2 border-blue-500' : '';
return `
<div class="h-24 p-1 border ${todayClass}">
<div class="text-right">${day}</div>
${content}
</div>
`;
}).join('')}
</div>
</div>
`;
});
// Load dashboard data
function loadDashboardData() {
// Update user info in sidebar
if (currentUser) {
const userElements = document.querySelectorAll('.nav-text.font-medium');
userElements.forEach(el => el.textContent = currentUser.name);
}
// Initialize calendar (simplified version)
const calendarEl = document.getElementById('calendar');
if (calendarEl) {
calendarEl.innerHTML = `
<div class="mb-4">
<div class="flex justify-between items-center mb-2">
<span class="font-medium">April 2023</span>
</div>
<div class="grid grid-cols-7 gap-1 text-center text-sm font-medium text-gray-500">
<div>Sun</div><div>Mon</div><div>Tue</div><div>Wed</div><div>Thu</div><div>Fri</div><div>Sat</div>
</div>
<div class="grid grid-cols-7 gap-1 mt-1">
${Array(35).fill().map((_, i) => {
const day = i - 5 + 1;
if (day <= 0 || day > 30) {
return `<div class="h-12"></div>`;
}
let content = '';
if (day === 10) content = '<div class="text-xs bg-blue-100 text-blue-800 rounded p-1 mb-1">Meeting with John</div>';
if (day === 15) content = '<div class="text-xs bg-red-100 text-red-800 rounded p-1 mb-1">Tax Deadline</div>';
if (day === 18) content = '<div class="text-xs bg-green-100 text-green-800 rounded p-1 mb-1">Client Call</div>';
if (day === 22) content = '<div class="text-xs bg-purple-100 text-purple-800 rounded p-1 mb-1">Review Docs</div>';
const todayClass = day === 18 ? 'border-2 border-blue-500' : '';
return `
<div class="h-24 p-1 border ${todayClass}">
<div class="text-right">${day}</div>
${content}
</div>
`;
}).join('')}
</div>
</div>
`;
}
// Simulate progress bar animation
document.querySelectorAll('.progress-bar').forEach(bar => {
let value = 0;
const target = parseInt(bar.value);
const interval = setInterval(() => {
if (value >= target) {
clearInterval(interval);
return;
}
value++;
bar.value = value;
}, 20);
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=RAMANJAN/crm" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |