Spaces:
Running
Running
File size: 51,090 Bytes
13822ba a7b9d8d 13822ba a7b9d8d 13822ba a7b9d8d 13822ba a7b9d8d 13822ba a7b9d8d 13822ba a7b9d8d 13822ba a7b9d8d 13822ba a7b9d8d 13822ba a7b9d8d 13822ba | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Enterprise ERP 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">
<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;
}
.main-content {
transition: all 0.3s ease;
}
.sidebar.collapsed + .main-content {
margin-left: 70px;
}
.module-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.chart-container {
height: 300px;
}
.notification-badge {
position: absolute;
top: -5px;
right: -5px;
}
.dropdown-menu {
display: none;
position: absolute;
right: 0;
min-width: 200px;
}
.dropdown:hover .dropdown-menu {
display: block;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.submenu {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.submenu.open {
max-height: 500px;
}
</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">
<!-- Logo -->
<div class="p-4 flex items-center border-b border-blue-700">
<div class="w-10 h-10 rounded-full bg-white flex items-center justify-center text-blue-800 font-bold text-xl">
ERP
</div>
<span class="logo-text ml-3 text-xl font-semibold">Enterprise ERP</span>
</div>
<!-- User Profile -->
<div class="p-4 flex items-center border-b border-blue-700">
<div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center">
<i class="fas fa-user"></i>
</div>
<div class="ml-3">
<div class="font-medium">Admin User</div>
<div class="text-xs text-blue-200">Administrator</div>
</div>
</div>
<!-- Navigation -->
<div class="flex-1 overflow-y-auto">
<ul class="py-2">
<!-- Dashboard -->
<li class="px-2">
<a href="#" class="nav-item flex items-center p-2 rounded hover:bg-blue-700">
<i class="fas fa-tachometer-alt w-6 text-center"></i>
<span class="nav-text ml-3">Dashboard</span>
</a>
</li>
<!-- HRM -->
<li class="px-2">
<div class="nav-item flex items-center p-2 rounded hover:bg-blue-700 cursor-pointer" onclick="toggleSubmenu('hrm')">
<i class="fas fa-users w-6 text-center"></i>
<span class="nav-text ml-3">Human Resources</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</div>
<ul id="hrm" class="submenu bg-blue-900 ml-2 rounded">
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-user-friends w-4 mr-2"></i> Employees</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-calendar-check w-4 mr-2"></i> Attendance</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-money-bill-wave w-4 mr-2"></i> Payroll</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-plane w-4 mr-2"></i> Leave</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-bullseye w-4 mr-2"></i> Performance</a></li>
</ul>
</li>
<!-- Finance -->
<li class="px-2">
<div class="nav-item flex items-center p-2 rounded hover:bg-blue-700 cursor-pointer" onclick="toggleSubmenu('finance')">
<i class="fas fa-money-bill-wave w-6 text-center"></i>
<span class="nav-text ml-3">Finance</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</div>
<ul id="finance" class="submenu bg-blue-900 ml-2 rounded">
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-book w-4 mr-2"></i> Chart of Accounts</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-file-invoice-dollar w-4 mr-2"></i> Journal Entries</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-receipt w-4 mr-2"></i> Invoices</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-balance-scale w-4 mr-2"></i> Balance Sheet</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-chart-line w-4 mr-2"></i> Reports</a></li>
</ul>
</li>
<!-- Inventory -->
<li class="px-2">
<div class="nav-item flex items-center p-2 rounded hover:bg-blue-700 cursor-pointer" onclick="toggleSubmenu('inventory')">
<i class="fas fa-boxes w-6 text-center"></i>
<span class="nav-text ml-3">Inventory</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</div>
<ul id="inventory" class="submenu bg-blue-900 ml-2 rounded">
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-box-open w-4 mr-2"></i> Products</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-warehouse w-4 mr-2"></i> Warehouses</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-exchange-alt w-4 mr-2"></i> Transfers</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-barcode w-4 mr-2"></i> Barcodes</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-chart-pie w-4 mr-2"></i> Reports</a></li>
</ul>
</li>
<!-- Sales -->
<li class="px-2">
<div class="nav-item flex items-center p-2 rounded hover:bg-blue-700 cursor-pointer" onclick="toggleSubmenu('sales')">
<i class="fas fa-shopping-cart w-6 text-center"></i>
<span class="nav-text ml-3">Sales</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</div>
<ul id="sales" class="submenu bg-blue-900 ml-2 rounded">
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-file-invoice w-4 mr-2"></i> Quotations</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-clipboard-list w-4 mr-2"></i> Orders</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-truck w-4 mr-2"></i> Shipments</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-undo w-4 mr-2"></i> Returns</a></li>
</ul>
</li>
<!-- Purchasing -->
<li class="px-2">
<div class="nav-item flex items-center p-2 rounded hover:bg-blue-700 cursor-pointer" onclick="toggleSubmenu('purchase')">
<i class="fas fa-shopping-basket w-6 text-center"></i>
<span class="nav-text ml-3">Purchasing</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</div>
<ul id="purchase" class="submenu bg-blue-900 ml-2 rounded">
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-file-alt w-4 mr-2"></i> RFQs</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-file-signature w-4 mr-2"></i> POs</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-truck-loading w-4 mr-2"></i> Receipts</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-hand-holding-usd w-4 mr-2"></i> Payments</a></li>
</ul>
</li>
<!-- CRM -->
<li class="px-2">
<div class="nav-item flex items-center p-2 rounded hover:bg-blue-700 cursor-pointer" onclick="toggleSubmenu('crm')">
<i class="fas fa-handshake w-6 text-center"></i>
<span class="nav-text ml-3">CRM</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</div>
<ul id="crm" class="submenu bg-blue-900 ml-2 rounded">
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-users w-4 mr-2"></i> Customers</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-bullseye w-4 mr-2"></i> Leads</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-funnel-dollar w-4 mr-2"></i> Opportunities</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-headset w-4 mr-2"></i> Support</a></li>
</ul>
</li>
<!-- Projects -->
<li class="px-2">
<div class="nav-item flex items-center p-2 rounded hover:bg-blue-700 cursor-pointer" onclick="toggleSubmenu('projects')">
<i class="fas fa-project-diagram w-6 text-center"></i>
<span class="nav-text ml-3">Projects</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</div>
<ul id="projects" class="submenu bg-blue-900 ml-2 rounded">
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-tasks w-4 mr-2"></i> Tasks</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-chart-gantt w-4 mr-2"></i> Gantt</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-clock w-4 mr-2"></i> Time Tracking</a></li>
</ul>
</li>
<!-- Manufacturing -->
<li class="px-2">
<div class="nav-item flex items-center p-2 rounded hover:bg-blue-700 cursor-pointer" onclick="toggleSubmenu('manufacturing')">
<i class="fas fa-industry w-6 text-center"></i>
<span class="nav-text ml-3">Manufacturing</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</div>
<ul id="manufacturing" class="submenu bg-blue-900 ml-2 rounded">
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-list-alt w-4 mr-2"></i> BOM</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-clipboard-check w-4 mr-2"></i> Work Orders</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-cogs w-4 mr-2"></i> Production</a></li>
</ul>
</li>
<!-- POS -->
<li class="px-2">
<a href="#" class="nav-item flex items-center p-2 rounded hover:bg-blue-700">
<i class="fas fa-cash-register w-6 text-center"></i>
<span class="nav-text ml-3">Point of Sale</span>
</a>
</li>
<!-- Reports -->
<li class="px-2">
<a href="#" class="nav-item flex items-center p-2 rounded hover:bg-blue-700">
<i class="fas fa-chart-bar w-6 text-center"></i>
<span class="nav-text ml-3">Reports</span>
</a>
</li>
<!-- Settings -->
<li class="px-2">
<div class="nav-item flex items-center p-2 rounded hover:bg-blue-700 cursor-pointer" onclick="toggleSubmenu('settings')">
<i class="fas fa-cog w-6 text-center"></i>
<span class="nav-text ml-3">Settings</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</div>
<ul id="settings" class="submenu bg-blue-900 ml-2 rounded">
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-users-cog w-4 mr-2"></i> Users</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-building w-4 mr-2"></i> Company</a></li>
<li><a href="#" class="flex items-center p-2 rounded hover:bg-blue-800 pl-8"><i class="fas fa-globe w-4 mr-2"></i> Localization</a></li>
</ul>
</li>
</ul>
</div>
<!-- Collapse Button -->
<div class="p-4 border-t border-blue-700">
<button onclick="toggleSidebar()" class="w-full flex items-center justify-center p-2 rounded hover:bg-blue-700">
<i class="fas fa-chevron-left"></i>
<span class="nav-text ml-3">Collapse</span>
</button>
</div>
</div>
<!-- Main Content -->
<div class="main-content flex-1 flex flex-col overflow-hidden ml-64">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="flex items-center justify-between px-6 py-3">
<!-- Search -->
<div class="flex items-center">
<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 w-64">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
</div>
<!-- Right Side -->
<div class="flex items-center space-x-4">
<!-- Language -->
<div class="dropdown relative">
<button class="flex items-center space-x-1">
<i class="fas fa-globe"></i>
<span>EN</span>
</button>
<div class="dropdown-menu mt-2 bg-white shadow-lg rounded-md py-1 z-50">
<a href="#" class="block px-4 py-2 hover:bg-gray-100">English</a>
<a href="#" class="block px-4 py-2 hover:bg-gray-100">Spanish</a>
<a href="#" class="block px-4 py-2 hover:bg-gray-100">French</a>
</div>
</div>
<!-- Notifications -->
<div class="dropdown relative">
<button class="relative">
<i class="fas fa-bell text-xl"></i>
<span class="notification-badge bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
</button>
<div class="dropdown-menu mt-2 bg-white shadow-lg rounded-md py-1 w-72 right-0 z-50">
<div class="px-4 py-2 border-b font-medium">Notifications (3)</div>
<a href="#" class="block px-4 py-3 hover:bg-gray-100 border-b">
<div class="flex items-start">
<div class="flex-shrink-0 pt-1">
<div class="h-8 w-8 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-file-invoice"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium">New invoice received</p>
<p class="text-xs text-gray-500">2 minutes ago</p>
</div>
</div>
</a>
<a href="#" class="block px-4 py-3 hover:bg-gray-100 border-b">
<div class="flex items-start">
<div class="flex-shrink-0 pt-1">
<div class="h-8 w-8 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-shipping-fast"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium">Order #1234 shipped</p>
<p class="text-xs text-gray-500">1 hour ago</p>
</div>
</div>
</a>
<a href="#" class="block px-4 py-3 hover:bg-gray-100">
<div class="flex items-start">
<div class="flex-shrink-0 pt-1">
<div class="h-8 w-8 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600">
<i class="fas fa-exclamation-triangle"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium">Low stock alert</p>
<p class="text-xs text-gray-500">5 hours ago</p>
</div>
</div>
</a>
<div class="px-4 py-2 text-center border-t">
<a href="#" class="text-sm text-blue-600 font-medium">View all notifications</a>
</div>
</div>
</div>
<!-- Messages -->
<div class="dropdown relative">
<button class="relative">
<i class="fas fa-envelope text-xl"></i>
<span class="notification-badge bg-blue-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">2</span>
</button>
<div class="dropdown-menu mt-2 bg-white shadow-lg rounded-md py-1 w-72 right-0 z-50">
<div class="px-4 py-2 border-b font-medium">Messages (2)</div>
<a href="#" class="block px-4 py-3 hover:bg-gray-100 border-b">
<div class="flex items-start">
<div class="flex-shrink-0">
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
</div>
<div class="ml-3">
<p class="text-sm font-medium">Sarah Johnson</p>
<p class="text-xs text-gray-500 truncate">Regarding your recent order, when can we expect delivery?</p>
</div>
</div>
</a>
<a href="#" class="block px-4 py-3 hover:bg-gray-100">
<div class="flex items-start">
<div class="flex-shrink-0">
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
</div>
<div class="ml-3">
<p class="text-sm font-medium">Michael Brown</p>
<p class="text-xs text-gray-500 truncate">The project proposal looks great, let's schedule a meeting</p>
</div>
</div>
</a>
<div class="px-4 py-2 text-center border-t">
<a href="#" class="text-sm text-blue-600 font-medium">View all messages</a>
</div>
</div>
</div>
<!-- User Dropdown -->
<div class="dropdown relative">
<button class="flex items-center space-x-2">
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/75.jpg" alt="">
<span class="hidden md:inline">Admin User</span>
<i class="fas fa-chevron-down text-xs"></i>
</button>
<div class="dropdown-menu mt-2 bg-white shadow-lg rounded-md py-1 right-0 z-50">
<a href="#" class="block px-4 py-2 hover:bg-gray-100">Profile</a>
<a href="#" class="block px-4 py-2 hover:bg-gray-100">Settings</a>
<a href="#" class="block px-4 py-2 hover:bg-gray-100">Activity Log</a>
<div class="border-t"></div>
<a href="#" class="block px-4 py-2 hover:bg-gray-100 text-red-600">Logout</a>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content Area -->
<main class="flex-1 overflow-y-auto p-6">
<!-- Page Header -->
<div class="flex justify-between items-center mb-6">
<div>
<h1 class="text-2xl font-bold text-gray-800">Dashboard</h1>
<p class="text-gray-600">Welcome back, Admin User</p>
</div>
<div>
<button class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 flex items-center">
<i class="fas fa-plus mr-2"></i>
<span>Quick Action</span>
</button>
</div>
</div>
<!-- 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-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
<i class="fas fa-dollar-sign text-xl"></i>
</div>
<div>
<p class="text-gray-500">Total Revenue</p>
<h3 class="text-2xl font-bold">₹20,64,935</h3>
<p class="text-green-500 text-sm flex items-center">
<i class="fas fa-arrow-up mr-1"></i>
<span>12.5% from last month</span>
</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
<i class="fas fa-shopping-cart text-xl"></i>
</div>
<div>
<p class="text-gray-500">Total Orders</p>
<h3 class="text-2xl font-bold">1,245</h3>
<p class="text-green-500 text-sm flex items-center">
<i class="fas fa-arrow-up mr-1"></i>
<span>8.2% from last month</span>
</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4">
<i class="fas fa-users text-xl"></i>
</div>
<div>
<p class="text-gray-500">New Customers</p>
<h3 class="text-2xl font-bold">86</h3>
<p class="text-red-500 text-sm flex items-center">
<i class="fas fa-arrow-down mr-1"></i>
<span>3.1% from last month</span>
</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center">
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-4">
<i class="fas fa-chart-line text-xl"></i>
</div>
<div>
<p class="text-gray-500">Conversion Rate</p>
<h3 class="text-2xl font-bold">3.6%</h3>
<p class="text-green-500 text-sm flex items-center">
<i class="fas fa-arrow-up mr-1"></i>
<span>1.2% from last month</span>
</p>
</div>
</div>
</div>
</div>
<!-- Charts Row -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<!-- Revenue Chart -->
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="font-semibold text-lg">Revenue Overview</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-blue-100 text-blue-600 rounded">Month</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded">Quarter</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded">Year</button>
</div>
</div>
<div class="chart-container">
<canvas id="revenueChart"></canvas>
</div>
</div>
<!-- Sales Chart -->
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="font-semibold text-lg">Sales by Category</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-blue-100 text-blue-600 rounded">This Month</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded">Last Month</button>
</div>
</div>
<div class="chart-container">
<canvas id="salesChart"></canvas>
</div>
</div>
</div>
<!-- Recent Orders & Activity -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<!-- Recent Orders -->
<div class="bg-white rounded-lg shadow">
<div class="p-4 border-b">
<h3 class="font-semibold text-lg">Recent Orders</h3>
</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">Order #</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</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">Amount</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">#ORD-1001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Acme Corporation</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">Completed</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">₹1,03,708</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">#ORD-1002</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Globex Inc</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">Processing</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">₹70,398</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">#ORD-1003</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Soylent Corp</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">Shipped</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">₹1,94,922</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">#ORD-1004</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Initech LLC</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">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">₹85,444</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">#ORD-1005</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Umbrella Corp</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">Cancelled</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">₹46,648</td>
</tr>
</tbody>
</table>
</div>
<div class="p-4 border-t text-center">
<a href="#" class="text-blue-600 font-medium">View all orders</a>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white rounded-lg shadow">
<div class="p-4 border-b">
<h3 class="font-semibold text-lg">Recent Activity</h3>
</div>
<div class="p-4">
<div class="space-y-4">
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="h-8 w-8 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-user-plus"></i>
</div>
</div>
<div>
<p class="text-sm">
<span class="font-semibold">Michael Brown</span> added a new customer <span class="font-semibold">Acme Corporation</span>
</p>
<p class="text-xs text-gray-500">2 hours ago</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="h-8 w-8 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-file-invoice-dollar"></i>
</div>
</div>
<div>
<p class="text-sm">
<span class="font-semibold">Sarah Johnson</span> created invoice <span class="font-semibold">#INV-10025</span> for ₹1,03,708
</p>
<p class="text-xs text-gray-500">4 hours ago</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="h-8 w-8 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
<i class="fas fa-shopping-cart"></i>
</div>
</div>
<div>
<p class="text-sm">
New order <span class="font-semibold">#ORD-1006</span> received from <span class="font-semibold">Globex Inc</span> for ₹70,398
</p>
<p class="text-xs text-gray-500">6 hours ago</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="h-8 w-8 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600">
<i class="fas fa-truck"></i>
</div>
</div>
<div>
<p class="text-sm">
Order <span class="font-semibold">#ORD-1003</span> has been shipped to <span class="font-semibold">Soylent Corp</span>
</p>
<p class="text-xs text-gray-500">1 day ago</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="h-8 w-8 rounded-full bg-red-100 flex items-center justify-center text-red-600">
<i class="fas fa-exclamation-triangle"></i>
</div>
</div>
<div>
<p class="text-sm">
Low stock alert for <span class="font-semibold">Product #PRD-1008</span> (Widget X)
</p>
<p class="text-xs text-gray-500">2 days ago</p>
</div>
</div>
</div>
</div>
<div class="p-4 border-t text-center">
<a href="#" class="text-blue-600 font-medium">View all activity</a>
</div>
</div>
</div>
<!-- Quick Access Modules -->
<div class="mb-6">
<h3 class="font-semibold text-lg mb-4">Quick Access Modules</h3>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4">
<a href="#" class="module-card bg-white rounded-lg shadow p-4 text-center transition duration-300">
<div class="h-12 w-12 mx-auto mb-2 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-users text-xl"></i>
</div>
<p class="font-medium">HRM</p>
</a>
<a href="#" class="module-card bg-white rounded-lg shadow p-4 text-center transition duration-300">
<div class="h-12 w-12 mx-auto mb-2 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-money-bill-wave text-xl"></i>
</div>
<p class="font-medium">Finance</p>
</a>
<a href="#" class="module-card bg-white rounded-lg shadow p-4 text-center transition duration-300">
<div class="h-12 w-12 mx-auto mb-2 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
<i class="fas fa-boxes text-xl"></i>
</div>
<p class="font-medium">Inventory</p>
</a>
<a href="#" class="module-card bg-white rounded-lg shadow p-4 text-center transition duration-300">
<div class="h-12 w-12 mx-auto mb-2 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600">
<i class="fas fa-shopping-cart text-xl"></i>
</div>
<p class="font-medium">Sales</p>
</a>
<a href="#" class="module-card bg-white rounded-lg shadow p-4 text-center transition duration-300">
<div class="h-12 w-12 mx-auto mb-2 rounded-full bg-red-100 flex items-center justify-center text-red-600">
<i class="fas fa-shopping-basket text-xl"></i>
</div>
<p class="font-medium">Purchasing</p>
</a>
<a href="#" class="module-card bg-white rounded-lg shadow p-4 text-center transition duration-300">
<div class="h-12 w-12 mx-auto mb-2 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600">
<i class="fas fa-handshake text-xl"></i>
</div>
<p class="font-medium">CRM</p>
</a>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-white border-t py-4 px-6">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="text-sm text-gray-600 mb-2 md:mb-0">
© 2023 Enterprise ERP. All rights reserved.
</div>
<div class="flex space-x-4">
<a href="#" class="text-sm text-gray-600 hover:text-blue-600">Privacy Policy</a>
<a href="#" class="text-sm text-gray-600 hover:text-blue-600">Terms of Service</a>
<a href="#" class="text-sm text-gray-600 hover:text-blue-600">Help Center</a>
</div>
</div>
</footer>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
// Toggle sidebar
function toggleSidebar() {
const sidebar = document.querySelector('.sidebar');
const mainContent = document.querySelector('.main-content');
sidebar.classList.toggle('collapsed');
}
// Toggle submenu
function toggleSubmenu(id) {
const submenu = document.getElementById(id);
submenu.classList.toggle('open');
}
// Initialize charts
document.addEventListener('DOMContentLoaded', function() {
// Revenue Chart
const revenueCtx = document.getElementById('revenueChart').getContext('2d');
const revenueChart = new Chart(revenueCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
datasets: [{
label: 'Revenue',
data: [12000, 15000, 18000, 14000, 19000, 22000, 24000],
backgroundColor: 'rgba(59, 130, 246, 0.1)',
borderColor: 'rgba(59, 130, 246, 1)',
borderWidth: 2,
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
scales: {
y: {
beginAtZero: true,
grid: {
drawBorder: false
},
ticks: {
callback: function(value) {
return '₹' + value.toLocaleString();
}
}
},
x: {
grid: {
display: false
}
}
}
}
});
// Sales Chart
const salesCtx = document.getElementById('salesChart').getContext('2d');
const salesChart = new Chart(salesCtx, {
type: 'doughnut',
data: {
labels: ['Electronics', 'Furniture', 'Clothing', 'Accessories', 'Other'],
datasets: [{
data: [35, 25, 20, 15, 5],
backgroundColor: [
'rgba(59, 130, 246, 0.8)',
'rgba(16, 185, 129, 0.8)',
'rgba(245, 158, 11, 0.8)',
'rgba(139, 92, 246, 0.8)',
'rgba(239, 68, 68, 0.8)'
],
borderWidth: 0
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'right'
}
},
cutout: '70%'
}
});
});
</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=archit9998/arrow" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |