Spaces:
Running
Running
File size: 84,379 Bytes
799ac53 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Organization 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 src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-storage.js"></script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.form-step {
display: none;
}
.form-step.active {
display: block;
}
.progress-bar {
transition: width 0.3s ease;
}
.dropdown:hover .dropdown-menu {
display: block;
}
.notification-badge {
position: absolute;
top: -5px;
right: -5px;
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<!-- Login Page (Initial View) -->
<div id="login-page" class="min-h-screen flex items-center justify-center bg-gradient-to-r from-blue-500 to-indigo-600">
<div class="bg-white p-8 rounded-lg shadow-xl w-full max-w-md">
<div class="text-center mb-8">
<img src="https://via.placeholder.com/150" alt="Organization Logo" class="mx-auto h-20 w-auto">
<h1 class="mt-4 text-3xl font-bold text-gray-800">Organization Portal</h1>
<p class="mt-2 text-gray-600">Sign in to access your account</p>
</div>
<form id="login-form" class="space-y-6">
<div>
<label for="email" class="block text-sm font-medium text-gray-700">Email</label>
<input type="email" id="email" name="email" required class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700">Password</label>
<input type="password" id="password" name="password" required class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<input id="remember-me" name="remember-me" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label>
</div>
<div class="text-sm">
<a href="#" class="font-medium text-blue-600 hover:text-blue-500">Forgot password?</a>
</div>
</div>
<div>
<button type="submit" class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Sign in
</button>
</div>
</form>
<div class="mt-6 text-center">
<p class="text-sm text-gray-600">
Don't have an account? <a href="#" class="font-medium text-blue-600 hover:text-blue-500">Contact admin</a>
</p>
</div>
</div>
</div>
<!-- Main Application (Hidden Initially) -->
<div id="app-container" class="hidden">
<!-- Sidebar Navigation -->
<div class="sidebar fixed inset-y-0 left-0 bg-white shadow-lg w-64 transform -translate-x-full md:translate-x-0 z-50">
<div class="flex items-center justify-center h-16 px-4 bg-blue-600 text-white">
<h1 class="text-xl font-bold">Organization</h1>
</div>
<div class="flex flex-col h-full p-4">
<div class="flex items-center px-4 py-3 text-gray-700 rounded-lg bg-gray-100">
<img src="https://via.placeholder.com/40" alt="User" class="h-8 w-8 rounded-full">
<div class="ml-3">
<p class="text-sm font-medium" id="username-display">Admin User</p>
<p class="text-xs text-gray-500">Administrator</p>
</div>
</div>
<nav class="mt-6 flex-1">
<div class="space-y-1">
<a href="#" id="dashboard-link" class="flex items-center px-4 py-2 text-sm font-medium text-gray-900 rounded-lg bg-blue-50 group">
<i class="fas fa-tachometer-alt mr-3 text-blue-600"></i>
Dashboard
</a>
<a href="#" id="projects-link" class="flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg hover:bg-gray-100 group">
<i class="fas fa-project-diagram mr-3 text-blue-600"></i>
Projects
</a>
<a href="#" id="beneficiaries-link" class="flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg hover:bg-gray-100 group">
<i class="fas fa-users mr-3 text-blue-600"></i>
Beneficiaries
</a>
<a href="#" id="hr-link" class="flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg hover:bg-gray-100 group">
<i class="fas fa-user-tie mr-3 text-blue-600"></i>
Human Resources
</a>
<a href="#" id="purchases-link" class="flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg hover:bg-gray-100 group">
<i class="fas fa-shopping-cart mr-3 text-blue-600"></i>
Purchases
</a>
<a href="#" id="finance-link" class="flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg hover:bg-gray-100 group">
<i class="fas fa-money-bill-wave mr-3 text-blue-600"></i>
Finance
</a>
<a href="#" id="reports-link" class="flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg hover:bg-gray-100 group">
<i class="fas fa-chart-bar mr-3 text-blue-600"></i>
Reports
</a>
<a href="#" id="users-link" class="flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg hover:bg-gray-100 group">
<i class="fas fa-user-cog mr-3 text-blue-600"></i>
User Management
</a>
</div>
</nav>
<div class="mt-auto">
<a href="#" id="logout-btn" class="flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg hover:bg-gray-100 group">
<i class="fas fa-sign-out-alt mr-3 text-red-600"></i>
Logout
</a>
</div>
</div>
</div>
<!-- Mobile Header -->
<div class="md:hidden fixed top-0 left-0 right-0 bg-white shadow-sm z-40">
<div class="flex items-center justify-between h-16 px-4">
<button id="mobile-menu-button" class="text-gray-500 focus:outline-none">
<i class="fas fa-bars text-xl"></i>
</button>
<h1 class="text-xl font-bold text-gray-800">Organization</h1>
<div class="relative">
<button id="notification-btn" class="text-gray-500 focus:outline-none 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>
</div>
</div>
<!-- Main Content Area -->
<div class="md:ml-64 pt-16 md:pt-0">
<!-- Header -->
<header class="bg-white shadow-sm hidden md:block">
<div class="max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8 flex justify-between items-center">
<h1 id="page-title" class="text-xl font-bold text-gray-900">Dashboard</h1>
<div class="flex items-center space-x-4">
<div class="relative">
<button id="notification-btn-desktop" class="text-gray-500 hover:text-gray-700 focus:outline-none 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>
<div class="relative dropdown">
<button class="flex items-center space-x-2 focus:outline-none">
<img src="https://via.placeholder.com/40" alt="User" class="h-8 w-8 rounded-full">
<span class="text-sm font-medium">Admin User</span>
<i class="fas fa-chevron-down text-xs"></i>
</button>
<div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 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>
<a href="#" id="logout-btn-desktop" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Logout</a>
</div>
</div>
</div>
</div>
</header>
<!-- Notification Panel -->
<div id="notification-panel" class="fixed inset-0 z-50 overflow-hidden hidden">
<div class="absolute inset-0 overflow-hidden">
<div class="absolute inset-0 bg-gray-500 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
<div class="fixed inset-y-0 right-0 pl-10 max-w-full flex">
<div class="w-screen max-w-md">
<div class="h-full flex flex-col bg-white shadow-xl">
<div class="flex-1 py-6 overflow-y-auto px-4 sm:px-6">
<div class="flex items-start justify-between">
<h2 class="text-lg font-medium text-gray-900">Notifications</h2>
<div class="ml-3 h-7 flex items-center">
<button id="close-notifications" class="bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none">
<span class="sr-only">Close panel</span>
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div class="mt-8">
<div class="flow-root">
<ul class="-my-4 divide-y divide-gray-200">
<li class="py-4 flex">
<div class="flex-shrink-0">
<span class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-project-diagram"></i>
</span>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">New project assigned</p>
<p class="text-sm text-gray-500">You've been assigned to the "Education Initiative" project</p>
<p class="text-xs text-gray-400 mt-1">2 hours ago</p>
</div>
</li>
<li class="py-4 flex">
<div class="flex-shrink-0">
<span class="h-10 w-10 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-check-circle"></i>
</span>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Task completed</p>
<p class="text-sm text-gray-500">Your task "Beneficiary data collection" has been marked as complete</p>
<p class="text-xs text-gray-400 mt-1">1 day ago</p>
</div>
</li>
<li class="py-4 flex">
<div class="flex-shrink-0">
<span class="h-10 w-10 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600">
<i class="fas fa-exclamation-triangle"></i>
</span>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Upcoming deadline</p>
<p class="text-sm text-gray-500">The "Quarterly Report" deadline is approaching in 3 days</p>
<p class="text-xs text-gray-400 mt-1">2 days ago</p>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="border-t border-gray-200 py-6 px-4 sm:px-6">
<button type="button" class="w-full bg-blue-600 border border-transparent rounded-md py-3 px-4 text-base font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Mark all as read
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Page Content -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
<!-- Dashboard Content -->
<div id="dashboard-content">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-blue-500 rounded-md p-3">
<i class="fas fa-project-diagram text-white text-xl"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Active Projects</dt>
<dd>
<div class="text-lg font-medium text-gray-900">12</div>
</dd>
</dl>
</div>
</div>
<div class="mt-4">
<a href="#" class="text-sm font-medium text-blue-600 hover:text-blue-500">View all projects</a>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-green-500 rounded-md p-3">
<i class="fas fa-users text-white text-xl"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Beneficiaries</dt>
<dd>
<div class="text-lg font-medium text-gray-900">1,245</div>
</dd>
</dl>
</div>
</div>
<div class="mt-4">
<a href="#" class="text-sm font-medium text-blue-600 hover:text-blue-500">View all beneficiaries</a>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-yellow-500 rounded-md p-3">
<i class="fas fa-user-tie text-white text-xl"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Staff Members</dt>
<dd>
<div class="text-lg font-medium text-gray-900">45</div>
</dd>
</dl>
</div>
</div>
<div class="mt-4">
<a href="#" class="text-sm font-medium text-blue-600 hover:text-blue-500">View all staff</a>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-purple-500 rounded-md p-3">
<i class="fas fa-money-bill-wave text-white text-xl"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dl>
<dt class="text-sm font-medium text-gray-500 truncate">Budget Utilization</dt>
<dd>
<div class="text-lg font-medium text-gray-900">78%</div>
</dd>
</dl>
</div>
</div>
<div class="mt-4">
<a href="#" class="text-sm font-medium text-blue-600 hover:text-blue-500">View financial report</a>
</div>
</div>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<h3 class="text-lg leading-6 font-medium text-gray-900">Project Progress</h3>
<div class="mt-4">
<canvas id="projectProgressChart" height="250"></canvas>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<h3 class="text-lg leading-6 font-medium text-gray-900">Recent Activities</h3>
<div class="mt-4">
<ul class="divide-y divide-gray-200">
<li class="py-4">
<div class="flex space-x-3">
<div class="flex-shrink-0">
<img class="h-8 w-8 rounded-full" src="https://via.placeholder.com/40" alt="User">
</div>
<div class="flex-1 min-w-0">
<p class="text-sm text-gray-800">New beneficiary registered by <span class="font-medium">Sarah Johnson</span></p>
<p class="text-sm text-gray-500">2 hours ago</p>
</div>
</div>
</li>
<li class="py-4">
<div class="flex space-x-3">
<div class="flex-shrink-0">
<img class="h-8 w-8 rounded-full" src="https://via.placeholder.com/40" alt="User">
</div>
<div class="flex-1 min-w-0">
<p class="text-sm text-gray-800">Project "Education Initiative" status updated to <span class="font-medium text-green-600">In Progress</span></p>
<p class="text-sm text-gray-500">5 hours ago</p>
</div>
</div>
</li>
<li class="py-4">
<div class="flex space-x-3">
<div class="flex-shrink-0">
<img class="h-8 w-8 rounded-full" src="https://via.placeholder.com/40" alt="User">
</div>
<div class="flex-1 min-w-0">
<p class="text-sm text-gray-800">New purchase order created for <span class="font-medium">Medical Supplies</span></p>
<p class="text-sm text-gray-500">1 day ago</p>
</div>
</div>
</li>
<li class="py-4">
<div class="flex space-x-3">
<div class="flex-shrink-0">
<img class="h-8 w-8 rounded-full" src="https://via.placeholder.com/40" alt="User">
</div>
<div class="flex-1 min-w-0">
<p class="text-sm text-gray-800">Monthly financial report generated by <span class="font-medium">Finance Team</span></p>
<p class="text-sm text-gray-500">2 days ago</p>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="bg-white overflow-hidden shadow rounded-lg">
<div class="px-4 py-5 sm:p-6">
<h3 class="text-lg leading-6 font-medium text-gray-900">Upcoming Deadlines</h3>
<div class="mt-4">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Project</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Deadline</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Team</th>
<th scope="col" 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 text-sm font-medium text-gray-900">Education Initiative</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 15, 2023</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">In Progress</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Education Team</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-blue-600 hover:text-blue-900">View</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Medical Outreach</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 20, 2023</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">On Track</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Medical Team</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-blue-600 hover:text-blue-900">View</a>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Quarterly Report</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 30, 2023</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">Behind</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Management</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-blue-600 hover:text-blue-900">View</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- Projects Management Content -->
<div id="projects-content" class="hidden">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-900">Projects Management</h2>
<button id="add-project-btn" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i class="fas fa-plus mr-2"></i> Add New Project
</button>
</div>
<!-- Project Filters -->
<div class="bg-white shadow rounded-lg p-4 mb-6">
<div class="grid grid-cols-1 md:grid-cols-4 gap-4">
<div>
<label for="status-filter" class="block text-sm font-medium text-gray-700 mb-1">Status</label>
<select id="status-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="all">All Statuses</option>
<option value="active">Active</option>
<option value="completed">Completed</option>
<option value="suspended">Suspended</option>
</select>
</div>
<div>
<label for="team-filter" class="block text-sm font-medium text-gray-700 mb-1">Team</label>
<select id="team-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="all">All Teams</option>
<option value="education">Education Team</option>
<option value="medical">Medical Team</option>
<option value="management">Management</option>
</select>
</div>
<div>
<label for="start-date-filter" class="block text-sm font-medium text-gray-700 mb-1">Start Date</label>
<input type="date" id="start-date-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
</div>
<div>
<label for="end-date-filter" class="block text-sm font-medium text-gray-700 mb-1">End Date</label>
<input type="date" id="end-date-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
</div>
</div>
<div class="mt-4 flex justify-end">
<button id="apply-filters" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Apply Filters
</button>
<button id="reset-filters" class="ml-2 inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md shadow-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Reset
</button>
</div>
</div>
<!-- Projects Table -->
<div class="bg-white shadow rounded-lg overflow-hidden">
<div class="px-4 py-5 sm:px-6 bg-gray-50 border-b border-gray-200 flex justify-between items-center">
<h3 class="text-lg leading-6 font-medium text-gray-900">All Projects</h3>
<div>
<button id="export-projects" class="inline-flex items-center px-3 py-1 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i class="fas fa-file-export mr-1"></i> Export
</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 scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Project Name</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Team</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Start Date</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">End Date</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Progress</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Budget</th>
<th scope="col" class="px-6 py-3 text-right 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">
<span class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-book"></i>
</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Education Initiative</div>
<div class="text-sm text-gray-500">Improving access to 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">In Progress</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Education Team</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-01-15</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-05-15</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-600 h-2.5 rounded-full" style="width: 65%"></div>
</div>
<span class="text-xs text-gray-500 mt-1">65% complete</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$125,000</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
<button class="text-red-600 hover:text-red-900">Delete</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">
<span class="h-10 w-10 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-medkit"></i>
</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Medical Outreach</div>
<div class="text-sm text-gray-500">Providing healthcare services</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">On Track</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Medical Team</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-02-10</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-05-20</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: 80%"></div>
</div>
<span class="text-xs text-gray-500 mt-1">80% complete</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$200,000</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
<button class="text-red-600 hover:text-red-900">Delete</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">
<span class="h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
<i class="fas fa-home"></i>
</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Housing Support</div>
<div class="text-sm text-gray-500">Shelter for displaced families</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">Behind</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Social Services</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-01-05</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-04-30</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: 40%"></div>
</div>
<span class="text-xs text-gray-500 mt-1">40% complete</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$175,000</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
<button class="text-red-600 hover:text-red-900">Delete</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">
<span class="h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600">
<i class="fas fa-utensils"></i>
</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Food Distribution</div>
<div class="text-sm text-gray-500">Weekly food packages</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">On Track</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Logistics Team</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-03-01</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-30</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: 75%"></div>
</div>
<span class="text-xs text-gray-500 mt-1">75% complete</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$90,000</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
<button class="text-red-600 hover:text-red-900">Delete</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="bg-gray-50 px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
<div class="flex-1 flex justify-between sm:hidden">
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Previous</a>
<a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Next</a>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">12</span> results
</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Previous</span>
<i class="fas fa-chevron-left"></i>
</a>
<a href="#" aria-current="page" class="z-10 bg-blue-50 border-blue-500 text-blue-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</a>
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Next</span>
<i class="fas fa-chevron-right"></i>
</a>
</nav>
</div>
</div>
</div>
</div>
<!-- Project Charts -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mt-6">
<div class="bg-white shadow rounded-lg p-6">
<h3 class="text-lg font-medium text-gray-900 mb-4">Budget vs Actual Spending</h3>
<canvas id="budgetChart" height="250"></canvas>
</div>
<div class="bg-white shadow rounded-lg p-6">
<h3 class="text-lg font-medium text-gray-900 mb-4">Project Completion Status</h3>
<canvas id="completionChart" height="250"></canvas>
</div>
</div>
</div>
<!-- Add Project Modal -->
<div id="add-project-modal" class="fixed z-50 inset-0 overflow-y-auto hidden">
<div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
</div>
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span>
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl sm:w-full">
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<div class="sm:flex sm:items-start">
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full">
<h3 class="text-lg leading-6 font-medium text-gray-900 mb-4">Add New Project</h3>
<form class="space-y-4">
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label for="project-name" class="block text-sm font-medium text-gray-700">Project Name *</label>
<input type="text" id="project-name" class="mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md">
</div>
<div>
<label for="project-team" class="block text-sm font-medium text-gray-700">Responsible Team *</label>
<select id="project-team" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="">Select Team</option>
<option value="education">Education Team</option>
<option value="medical">Medical Team</option>
<option value="social">Social Services</option>
<option value="logistics">Logistics Team</option>
<option value="management">Management</option>
</select>
</div>
</div>
<div>
<label for="project-description" class="block text-sm font-medium text-gray-700">Description</label>
<textarea id="project-description" rows="3" class="mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md"></textarea>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label for="start-date" class="block text-sm font-medium text-gray-700">Start Date *</label>
<input type="date" id="start-date" class="mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md">
</div>
<div>
<label for="end-date" class="block text-sm font-medium text-gray-700">End Date *</label>
<input type="date" id="end-date" class="mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md">
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label for="project-budget" class="block text-sm font-medium text-gray-700">Budget *</label>
<div class="mt-1 relative rounded-md shadow-sm">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<span class="text-gray-500 sm:text-sm">$</span>
</div>
<input type="text" id="project-budget" class="focus:ring-blue-500 focus:border-blue-500 block w-full pl-7 pr-12 sm:text-sm border-gray-300 rounded-md" placeholder="0.00">
</div>
</div>
<div>
<label for="project-status" class="block text-sm font-medium text-gray-700">Status *</label>
<select id="project-status" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="planning">Planning</option>
<option value="active" selected>Active</option>
<option value="on-hold">On Hold</option>
<option value="completed">Completed</option>
</select>
</div>
</div>
<div>
<label for="project-members" class="block text-sm font-medium text-gray-700">Team Members</label>
<select id="project-members" multiple class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="john">John Smith</option>
<option value="sarah">Sarah Johnson</option>
<option value="mike">Mike Williams</option>
<option value="lisa">Lisa Brown</option>
<option value="david">David Miller</option>
</select>
</div>
</form>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
<button type="button" id="save-project" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm">
Save Project
</button>
<button type="button" id="cancel-project" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
Cancel
</button>
</div>
</div>
</div>
</div>
<!-- Beneficiaries Content -->
<div id="beneficiaries-content" class="hidden">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-900">Beneficiary Data Management</h2>
<button id="add-beneficiary-btn" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i class="fas fa-plus mr-2"></i> Add New Beneficiary
</button>
</div>
<!-- Beneficiary Filters -->
<div class="bg-white shadow rounded-lg p-4 mb-6">
<div class="grid grid-cols-1 md:grid-cols-4 gap-4">
<div>
<label for="beneficiary-status-filter" class="block text-sm font-medium text-gray-700 mb-1">Status</label>
<select id="beneficiary-status-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="all">All Statuses</option>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
</select>
</div>
<div>
<label for="beneficiary-project-filter" class="block text-sm font-medium text-gray-700 mb-1">Project</label>
<select id="beneficiary-project-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="all">All Projects</option>
<option value="education">Education Initiative</option>
<option value="medical">Medical Outreach</option>
<option value="housing">Housing Support</option>
<option value="food">Food Distribution</option>
</select>
</div>
<div>
<label for="beneficiary-gender-filter" class="block text-sm font-medium text-gray-700 mb-1">Gender</label>
<select id="beneficiary-gender-filter" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
<option value="all">All Genders</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
</div>
<div>
<label for="beneficiary-search" class="block text-sm font-medium text-gray-700 mb-1">Search</label>
<input type="text" id="beneficiary-search" placeholder="Name or ID" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
</div>
</div>
<div class="mt-4 flex justify-end">
<button id="apply-beneficiary-filters" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Apply Filters
</button>
<button id="reset-beneficiary-filters" class="ml-2 inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md shadow-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Reset
</button>
</div>
</div>
<!-- Beneficiaries Table -->
<div class="bg-white shadow rounded-lg overflow-hidden">
<div class="px-4 py-5 sm:px-6 bg-gray-50 border-b border-gray-200 flex justify-between items-center">
<h3 class="text-lg leading-6 font-medium text-gray-900">All Beneficiaries</h3>
<div>
<button id="export-beneficiaries" class="inline-flex items-center px-3 py-1 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<i class="fas fa-file-export mr-1"></i> Export
</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 scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Gender</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Age</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Projects</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Vulnerability</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th scope="col" class="px-6 py-3 text-right 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 text-sm font-medium text-gray-900">BEN-00123</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://via.placeholder.com/40" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Ahmed Mohammed</div>
<div class="text-sm text-gray-500">ahmed@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Male</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">32</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">Education</span>
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Food</span>
</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">High</span>
</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">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">View</button>
<button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
<button class="text-red-600 hover:text-red-900">Delete</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">BEN-00124</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://via.placeholder.com/40" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Fatima Ali</div>
<div class="text-sm text-gray-500">fatima@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Female</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">28</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">Medical</span>
</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">Medium</span>
</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">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">View</button>
<button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
<button class="text-red-600 hover:text-red-900">Delete</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">BEN-00125</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://via.placeholder.com/40" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Yusuf Ibrahim</div>
<div class="text-sm text-gray-500">yusuf@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Male</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">45</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">Housing</span>
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Food</span>
</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">High</span>
</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">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">View</button>
<button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
<button class="text-red-600 hover:text-red-900">Delete</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">BEN-00126</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10">
<img class="h-10 w-10 rounded-full" src="https://via.placeholder.com/40" alt="">
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Amina Hassan</div>
<div class="text-sm text-gray-500">amina@example.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Female</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">35</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">Education</span>
</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">Medium</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">Inactive</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">View</button>
<button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
<button class="text-red-600 hover:text-red-900">Delete</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
<div class="flex-1 flex justify-between sm:hidden">
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Previous</a>
<a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Next</a>
</div>
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
<div>
<p class="text-sm text-gray-700">
Showing <span class="font-medium">1</span> to <span class="font-medium">4</span> of <span class="font-medium">24</span> results
</p>
</div>
<div>
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Previous</span>
<i class="fas fa-chevron-left"></i>
</a>
<a href="#" aria-current="page" class="z-10 bg-blue-50 border-blue-500 text-blue-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</a>
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</a>
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
<span class="sr-only">Next</span>
<i class="fas fa-chevron-right"></i>
</a>
</nav>
</div>
</div>
</div>
</div>
</div>
<!-- Add Beneficiary Modal -->
<div id="add-beneficiary-modal" class="fixed z-50 inset-0 overflow-y-auto hidden">
<div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
</div>
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span>
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-4xl sm:w-full">
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<div class="sm:flex sm:items-start">
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full">
<h3 class="text-lg leading-6
</html> |