-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.html
More file actions
1654 lines (1574 loc) · 115 KB
/
Copy pathadmin.html
File metadata and controls
1654 lines (1574 loc) · 115 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard - Red Cross Philippines</title>
<meta name="description" content="Red Cross Philippines Admin Dashboard - Manage users, events, volunteers, and donations">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
'red-cross-blue': '#002888',
'red-cross-red': '#E3000E',
'red-cross-light-blue': '#e6f0ff',
'red-cross-secondary-blue': '#1a4ba8'
},
fontFamily: {
'inter': ['Inter', 'sans-serif']
}
}
}
}
</script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body class="min-h-screen bg-gray-50 font-inter">
<!-- Top Navigation Bar -->
<nav class="bg-white shadow-lg fixed top-0 left-0 right-0 z-50">
<div class="flex justify-between items-center h-16 px-4 sm:px-6 lg:px-8">
<!-- Logo and Title -->
<div class="flex items-center space-x-3">
<img src="https://redcross.org.ph/wp-content/themes/yootheme/cache/Logo-2x2-1-03f043e8.png" alt="Red Cross Philippines Logo" class="w-10 h-10">
<div>
<h1 class="text-xl font-bold text-red-cross-blue">Admin Dashboard</h1>
<p class="text-sm text-gray-500">Red Cross Philippines</p>
</div>
</div>
<!-- Admin Profile Menu -->
<div class="flex items-center space-x-4">
<!-- Notifications -->
<button class="relative p-2 text-gray-600 hover:text-red-cross-blue transition-colors" onclick="showNotifications()">
<i class="fas fa-bell text-xl"></i>
<span class="absolute -top-1 -right-1 bg-red-cross-red text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
</button>
<!-- Profile Dropdown -->
<div class="relative">
<button id="profileMenuBtn" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100 transition-colors" onclick="toggleProfileMenu()">
<div class="w-8 h-8 bg-red-cross-blue rounded-full flex items-center justify-center">
<i class="fas fa-user text-white text-sm"></i>
</div>
<div class="text-left">
<p class="text-sm font-medium text-gray-800">Admin User</p>
<p class="text-xs text-gray-500">Administrator</p>
</div>
<i class="fas fa-chevron-down text-gray-400"></i>
</button>
<!-- Profile Dropdown Menu -->
<div id="profileMenu" class="absolute right-0 mt-2 w-64 bg-white rounded-lg shadow-lg border border-gray-200 hidden">
<div class="py-1">
<!-- Account Section -->
<div class="px-3 py-2">
<h4 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">Account</h4>
<a href="#" class="flex items-center px-3 py-3 text-sm text-gray-700 hover:bg-red-cross-light-blue hover:text-red-cross-blue transition-colors duration-200 rounded-md">
<i class="fas fa-user mr-3 text-gray-500 w-4"></i>
Profile Settings
</a>
<a href="#" class="flex items-center px-3 py-3 text-sm text-gray-700 hover:bg-red-cross-light-blue hover:text-red-cross-blue transition-colors duration-200 rounded-md">
<i class="fas fa-cog mr-3 text-gray-500 w-4"></i>
System Settings
</a>
</div>
<!-- Navigation Section -->
<div class="border-t border-gray-100 px-3 py-2">
<h4 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">Navigation</h4>
<a href="index.html" class="flex items-center px-3 py-3 text-sm text-gray-700 hover:bg-red-cross-light-blue hover:text-red-cross-blue transition-colors duration-200 rounded-md">
<i class="fas fa-home mr-3 text-gray-500 w-4"></i>
<span class="flex-1">Back to Site</span>
<i class="fas fa-external-link-alt text-gray-400 text-xs ml-2"></i>
</a>
</div>
<!-- Session Section -->
<div class="border-t border-gray-100 px-3 py-2">
<h4 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">Session</h4>
<a href="#" onclick="logout()" class="flex items-center px-3 py-3 text-sm text-red-cross-red hover:bg-red-50 hover:text-red-700 transition-colors duration-200 rounded-md">
<i class="fas fa-sign-out-alt mr-3 w-4"></i>
Logout
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</nav>
<!-- Main Layout -->
<div class="flex pt-16">
<!-- Sidebar Navigation -->
<aside class="w-64 bg-white shadow-lg min-h-screen fixed left-0 top-16 z-40">
<nav class="p-4">
<ul class="space-y-2">
<li>
<button class="flex items-center space-x-3 px-4 py-3 text-gray-800 bg-red-cross-light-blue rounded-lg transition-all duration-200 cursor-pointer font-medium shadow-sm hover:shadow-md hover:bg-red-cross-blue hover:text-white w-full text-left nav-link active" data-section="dashboard" onclick="showSection('dashboard')">
<i class="fas fa-tachometer-alt w-5 text-center"></i>
<span>Dashboard</span>
</button>
</li>
<li>
<button class="flex items-center space-x-3 px-4 py-3 text-gray-800 bg-red-cross-light-blue rounded-lg transition-all duration-200 cursor-pointer font-medium shadow-sm hover:shadow-md hover:bg-red-cross-blue hover:text-white w-full text-left nav-link" data-section="users" onclick="showSection('users')">
<i class="fas fa-users w-5 text-center"></i>
<span>User Management</span>
</button>
</li>
<li>
<button class="flex items-center space-x-3 px-4 py-3 text-gray-800 bg-red-cross-light-blue rounded-lg transition-all duration-200 cursor-pointer font-medium shadow-sm hover:shadow-md hover:bg-red-cross-blue hover:text-white w-full text-left nav-link" data-section="events" onclick="showSection('events')">
<i class="fas fa-calendar-alt w-5 text-center"></i>
<span>Event Management</span>
</button>
</li>
<li>
<button class="flex items-center space-x-3 px-4 py-3 text-gray-800 bg-red-cross-light-blue rounded-lg transition-all duration-200 cursor-pointer font-medium shadow-sm hover:shadow-md hover:bg-red-cross-blue hover:text-white w-full text-left nav-link" data-section="volunteers" onclick="showSection('volunteers')">
<i class="fas fa-hands-helping w-5 text-center"></i>
<span>Volunteers & Staff</span>
</button>
</li>
<li>
<button class="flex items-center space-x-3 px-4 py-3 text-gray-800 bg-red-cross-light-blue rounded-lg transition-all duration-200 cursor-pointer font-medium shadow-sm hover:shadow-md hover:bg-red-cross-blue hover:text-white w-full text-left nav-link" data-section="donations" onclick="showSection('donations')">
<i class="fas fa-donate w-5 text-center"></i>
<span>Donation Tracking</span>
</button>
</li>
<li>
<button class="flex items-center space-x-3 px-4 py-3 text-gray-800 bg-red-cross-light-blue rounded-lg transition-all duration-200 cursor-pointer font-medium shadow-sm hover:shadow-md hover:bg-red-cross-blue hover:text-white w-full text-left nav-link" data-section="settings" onclick="showSection('settings')">
<i class="fas fa-cog w-5 text-center"></i>
<span>Settings</span>
</button>
</li>
</ul>
</nav>
</aside>
<!-- Main Content Area -->
<main class="flex-1 ml-64 p-6">
<!-- Dashboard Overview Section -->
<section id="dashboard-section" class="admin-section">
<div class="mb-6">
<h2 class="text-2xl font-bold text-gray-800 mb-2">Dashboard Overview</h2>
<p class="text-gray-600">Welcome to the Red Cross Philippines Admin Dashboard</p>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-white rounded-lg shadow-lg p-6 border-l-4 border-blue-500 hover:shadow-xl transition-shadow cursor-pointer" onclick="showSection('users')">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-600">Total Users</p>
<p class="text-2xl font-bold text-gray-800">2,847</p>
</div>
<div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center">
<i class="fas fa-users text-blue-600 text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-green-600 text-sm font-medium">+12%</span>
<span class="text-gray-500 text-sm ml-2">from last month</span>
</div>
</div>
<div class="bg-white rounded-lg shadow-lg p-6 border-l-4 border-green-500 hover:shadow-xl transition-shadow cursor-pointer" onclick="showSection('volunteers')">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-600">Active Volunteers</p>
<p class="text-2xl font-bold text-gray-800">1,234</p>
</div>
<div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center">
<i class="fas fa-hands-helping text-green-600 text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-green-600 text-sm font-medium">+8%</span>
<span class="text-gray-500 text-sm ml-2">from last month</span>
</div>
</div>
<div class="bg-white rounded-lg shadow-lg p-6 border-l-4 border-yellow-500 hover:shadow-xl transition-shadow cursor-pointer" onclick="showSection('events')">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-600">Upcoming Events</p>
<p class="text-2xl font-bold text-gray-800">23</p>
</div>
<div class="w-12 h-12 bg-yellow-100 rounded-full flex items-center justify-center">
<i class="fas fa-calendar-alt text-yellow-600 text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-blue-600 text-sm font-medium">5 this week</span>
</div>
</div>
<div class="bg-white rounded-lg shadow-lg p-6 border-l-4 border-red-500 hover:shadow-xl transition-shadow cursor-pointer" onclick="showSection('donations')">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-600">Total Donations</p>
<p class="text-2xl font-bold text-gray-800">₱2.4M</p>
</div>
<div class="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center">
<i class="fas fa-donate text-red-600 text-xl"></i>
</div>
</div>
<div class="mt-4">
<span class="text-green-600 text-sm font-medium">+15%</span>
<span class="text-gray-500 text-sm ml-2">from last month</span>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<div class="bg-white rounded-lg shadow-lg p-6">
<h3 class="text-lg font-semibold text-gray-800 mb-4">Recent Activity</h3>
<div class="space-y-4">
<div class="flex items-center space-x-3 cursor-pointer hover:bg-gray-50 p-2 rounded-lg transition-colors" onclick="showSection('users')">
<div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center">
<i class="fas fa-user-plus text-green-600 text-sm"></i>
</div>
<div>
<p class="text-sm font-medium text-gray-800">New user registered</p>
<p class="text-xs text-gray-500">John Doe - 2 minutes ago</p>
</div>
</div>
<div class="flex items-center space-x-3 cursor-pointer hover:bg-gray-50 p-2 rounded-lg transition-colors" onclick="showSection('events')">
<div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center">
<i class="fas fa-calendar-plus text-blue-600 text-sm"></i>
</div>
<div>
<p class="text-sm font-medium text-gray-800">New event created</p>
<p class="text-xs text-gray-500">Blood Drive - 15 minutes ago</p>
</div>
</div>
<div class="flex items-center space-x-3 cursor-pointer hover:bg-gray-50 p-2 rounded-lg transition-colors" onclick="showSection('donations')">
<div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center">
<i class="fas fa-donate text-yellow-600 text-sm"></i>
</div>
<div>
<p class="text-sm font-medium text-gray-800">New donation received</p>
<p class="text-xs text-gray-500">₱5,000 - 1 hour ago</p>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-lg p-6">
<h3 class="text-lg font-semibold text-gray-800 mb-4">Quick Actions</h3>
<div class="grid grid-cols-2 gap-4">
<button id="quickAddEvent" class="p-4 bg-red-cross-light-blue rounded-lg hover:bg-red-cross-blue hover:text-white transition-colors text-center cursor-pointer" onclick="showEventForm()">
<i class="fas fa-plus text-2xl mb-2"></i>
<p class="text-sm font-medium">Add Event</p>
</button>
<button id="quickAddUser" class="p-4 bg-red-cross-light-blue rounded-lg hover:bg-red-cross-blue hover:text-white transition-colors text-center cursor-pointer" onclick="showDashboardUserForm()">
<i class="fas fa-user-plus text-2xl mb-2"></i>
<p class="text-sm font-medium">Add User</p>
</button>
<button id="quickExportData" class="p-4 bg-red-cross-light-blue rounded-lg hover:bg-red-cross-blue hover:text-white transition-colors text-center cursor-pointer" onclick="showNotification('Export functionality coming soon!', 'info')">
<i class="fas fa-file-export text-2xl mb-2"></i>
<p class="text-sm font-medium">Export Data</p>
</button>
<button id="quickViewReports" class="p-4 bg-red-cross-light-blue rounded-lg hover:bg-red-cross-blue hover:text-white transition-colors text-center cursor-pointer" onclick="showNotification('Reports functionality coming soon!', 'info')">
<i class="fas fa-chart-bar text-2xl mb-2"></i>
<p class="text-sm font-medium">View Reports</p>
</button>
</div>
</div>
</div>
<!-- Dashboard User Creation Form Container -->
<div id="dashboardUserFormContainer" class="bg-white rounded-lg shadow-lg p-6 mt-8 hidden">
<div class="mb-6">
<h3 class="text-lg font-semibold text-gray-800 mb-2">Add New User</h3>
<p class="text-sm text-gray-600">Fill out the form below to add a new user to the system</p>
</div>
<form id="dashboardUserForm" class="space-y-6">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">First Name</label>
<input type="text" id="dashboardUserFirstName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter first name" required>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Last Name</label>
<input type="text" id="dashboardUserLastName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter last name" required>
</div>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Email</label>
<input type="email" id="dashboardUserEmail" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter email address" required>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Role</label>
<select id="dashboardUserRole" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent">
<option value="">Select role</option>
<option value="member">Member</option>
<option value="volunteer">Volunteer</option>
<option value="staff">Staff</option>
<option value="admin">Admin</option>
</select>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Status</label>
<select id="dashboardUserStatus" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent">
<option value="">Select status</option>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
<option value="pending">Pending</option>
</select>
</div>
</div>
<div class="flex justify-end space-x-4 pt-4">
<button type="button" id="cancelDashboardUser" class="px-6 py-3 bg-gray-200 text-gray-700 rounded-lg font-semibold hover:bg-gray-300 transition-colors">
Cancel
</button>
<button type="submit" class="px-6 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors">
Save User
</button>
</div>
</form>
</div>
<!-- Event Creation Form Container -->
<div id="eventFormContainer" class="bg-white rounded-lg shadow-lg p-6 mt-8 hidden">
<div class="mb-6">
<h3 class="text-lg font-semibold text-gray-800 mb-2">Create New Event</h3>
<p class="text-sm text-gray-600">Fill out the form below to create a new Red Cross event</p>
</div>
<form id="dashboardEventForm" class="space-y-6">
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Event Name</label>
<input type="text" id="dashboardEventName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter event name" required>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Location</label>
<input type="text" id="dashboardEventLocation" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter event location" required>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Description</label>
<textarea id="dashboardEventDescription" rows="4" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter event description" required></textarea>
</div>
<div class="flex justify-end space-x-4 pt-4">
<button type="button" id="cancelDashboardEvent" class="px-6 py-3 bg-gray-200 text-gray-700 rounded-lg font-semibold hover:bg-gray-300 transition-colors">
Cancel
</button>
<button type="submit" class="px-6 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors">
Save Event
</button>
</div>
</form>
</div>
<!-- User Creation Form Container -->
<div id="userFormContainer" class="bg-white rounded-lg shadow-lg p-6 mt-8 hidden">
<div class="mb-6">
<h3 class="text-lg font-semibold text-gray-800 mb-2">Add New User</h3>
<p class="text-sm text-gray-600">Fill out the form below to add a new user to the system</p>
</div>
<form id="dashboardUserForm" class="space-y-6">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">First Name</label>
<input type="text" id="dashboardUserFirstName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter first name" required>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Last Name</label>
<input type="text" id="dashboardUserLastName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter last name" required>
</div>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Email</label>
<input type="email" id="dashboardUserEmail" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter email address" required>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Role</label>
<select id="dashboardUserRole" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent">
<option value="">Select role</option>
<option value="member">Member</option>
<option value="volunteer">Volunteer</option>
<option value="staff">Staff</option>
<option value="admin">Admin</option>
</select>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Status</label>
<select id="dashboardUserStatus" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent">
<option value="">Select status</option>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
<option value="pending">Pending</option>
</select>
</div>
</div>
<div class="flex justify-end space-x-4 pt-4">
<button type="button" id="cancelDashboardUser" class="px-6 py-3 bg-gray-200 text-gray-700 rounded-lg font-semibold hover:bg-gray-300 transition-colors">
Cancel
</button>
<button type="submit" class="px-6 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors">
Save User
</button>
</div>
</form>
</div>
</section>
<!-- User Management Section -->
<section id="users-section" class="admin-section hidden">
<!-- Registered Users Container -->
<div class="bg-white rounded-lg shadow-lg p-6 mt-8">
<div class="flex justify-between items-center mb-6">
<div>
<h2 class="text-2xl font-bold text-gray-800">Registered Users</h2>
<p class="text-gray-600">Manage all registered users, roles, and permissions</p>
</div>
<button id="addUserBtn" class="px-4 py-2 bg-red-cross-blue text-white rounded-lg hover:bg-red-cross-secondary-blue transition-colors" onclick="showUserManagementForm()">
<i class="fas fa-plus mr-2"></i>Add New User
</button>
</div>
<!-- Search and Filter Controls -->
<div class="mb-6">
<div class="flex flex-col md:flex-row md:items-center space-y-4 md:space-y-0 md:space-x-4">
<div class="relative">
<input type="text" id="userSearch" placeholder="Search users..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-cross-blue focus:border-transparent" onkeyup="filterUsers()">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<select id="userRoleFilter" class="px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-cross-blue focus:border-transparent" onchange="filterUsers()">
<option value="">All Roles</option>
<option value="admin">Admin</option>
<option value="staff">Staff</option>
<option value="volunteer">Volunteer</option>
<option value="member">Member</option>
</select>
<select id="userStatusFilter" class="px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-cross-blue focus:border-transparent" onchange="filterUsers()">
<option value="">All Status</option>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
<option value="pending">Pending</option>
</select>
</div>
</div>
<!-- Users Table -->
<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">
<input type="checkbox" class="rounded border-gray-300 text-red-cross-blue focus:ring-red-cross-blue">
</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">User</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Role</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">Last Active</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody id="usersTableBody" class="bg-white divide-y divide-gray-200">
<!-- Sample Users -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="rounded border-gray-300 text-red-cross-blue focus:ring-red-cross-blue">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-10 h-10 bg-red-cross-blue rounded-full flex items-center justify-center">
<span class="text-white font-medium text-sm">MS</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Maria Santos</div>
<div class="text-sm text-gray-500">ID: #1001</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">maria.santos@email.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-blue-100 text-blue-800 rounded-full">Volunteer</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 hours ago</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button onclick="editUser(1)" class="text-red-cross-blue hover:text-red-cross-secondary-blue mr-3">Edit</button>
<button onclick="toggleUserStatus(1)" class="text-yellow-600 hover:text-yellow-700 mr-3">Toggle</button>
<button onclick="deleteUser(1)" class="text-red-600 hover:text-red-700">Delete</button>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="rounded border-gray-300 text-red-cross-blue focus:ring-red-cross-blue">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-10 h-10 bg-green-500 rounded-full flex items-center justify-center">
<span class="text-white font-medium text-sm">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">ID: #1002</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">john.doe@email.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-purple-100 text-purple-800 rounded-full">Staff</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 day ago</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button onclick="editUser(2)" class="text-red-cross-blue hover:text-red-cross-secondary-blue mr-3">Edit</button>
<button onclick="toggleUserStatus(2)" class="text-yellow-600 hover:text-yellow-700 mr-3">Toggle</button>
<button onclick="deleteUser(2)" class="text-red-600 hover:text-red-700">Delete</button>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="rounded border-gray-300 text-red-cross-blue focus:ring-red-cross-blue">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-10 h-10 bg-yellow-500 rounded-full flex items-center justify-center">
<span class="text-white font-medium text-sm">AS</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Anna Smith</div>
<div class="text-sm text-gray-500">ID: #1003</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">anna.smith@email.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Volunteer</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-yellow-100 text-yellow-800 rounded-full">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3 days ago</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button onclick="editUser(3)" class="text-red-cross-blue hover:text-red-cross-secondary-blue mr-3">Edit</button>
<button onclick="toggleUserStatus(3)" class="text-yellow-600 hover:text-yellow-700 mr-3">Toggle</button>
<button onclick="deleteUser(3)" class="text-red-600 hover:text-red-700">Delete</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- User Statistics -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mt-6">
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center">
<div class="p-3 bg-blue-100 rounded-lg">
<i class="fas fa-users text-blue-600 text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Total Users</p>
<p class="text-2xl font-bold text-gray-900">2,847</p>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center">
<div class="p-3 bg-green-100 rounded-lg">
<i class="fas fa-user-check text-green-600 text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Active Users</p>
<p class="text-2xl font-bold text-gray-900">2,234</p>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center">
<div class="p-3 bg-yellow-100 rounded-lg">
<i class="fas fa-user-clock text-yellow-600 text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Pending</p>
<p class="text-2xl font-bold text-gray-900">156</p>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center">
<div class="p-3 bg-red-100 rounded-lg">
<i class="fas fa-user-times text-red-600 text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Inactive</p>
<p class="text-2xl font-bold text-gray-900">457</p>
</div>
</div>
</div>
</div>
<!-- User Management Form Container -->
<div id="userManagementFormContainer" class="bg-white rounded-lg shadow-lg p-6 mt-8 hidden">
<div class="mb-6">
<h3 class="text-lg font-semibold text-gray-800 mb-2">Add New User</h3>
<p class="text-sm text-gray-600">Fill out the form below to add a new user to the system</p>
</div>
<form id="userManagementForm" class="space-y-6">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">First Name</label>
<input type="text" id="userManagementFirstName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter first name" required>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Last Name</label>
<input type="text" id="userManagementLastName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter last name" required>
</div>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Email</label>
<input type="email" id="userManagementEmail" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter email address" required>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Role</label>
<select id="userManagementRole" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent">
<option value="">Select role</option>
<option value="member">Member</option>
<option value="volunteer">Volunteer</option>
<option value="staff">Staff</option>
<option value="admin">Admin</option>
</select>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Status</label>
<select id="userManagementStatus" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent">
<option value="">Select status</option>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
<option value="pending">Pending</option>
</select>
</div>
</div>
<div class="flex justify-end space-x-4 pt-4">
<button type="button" id="cancelUserManagement" class="px-6 py-3 bg-gray-200 text-gray-700 rounded-lg font-semibold hover:bg-gray-300 transition-colors">
Cancel
</button>
<button type="submit" class="px-6 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors">
Save User
</button>
</div>
</form>
</div>
</section>
<!-- Event Management Section -->
<section id="events-section" class="admin-section hidden">
<!-- Event Calendar & List Container -->
<div class="bg-white rounded-lg shadow-lg p-6 mt-8">
<div class="flex justify-between items-center mb-6">
<div>
<h2 class="text-2xl font-bold text-gray-800">Event Calendar & List</h2>
<p class="text-gray-600">Create, edit, and manage all Red Cross events</p>
</div>
<button id="addEventBtn" class="px-4 py-2 bg-red-cross-blue text-white rounded-lg hover:bg-red-cross-secondary-blue transition-colors" onclick="showEventManagementForm()">
<i class="fas fa-plus mr-2"></i>Create Event
</button>
</div>
<!-- Search and Filter Controls -->
<div class="mb-6">
<div class="flex flex-col md:flex-row md:items-center space-y-4 md:space-y-0 md:space-x-4">
<div class="relative">
<input type="text" id="eventSearch" placeholder="Search events..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-cross-blue focus:border-transparent" onkeyup="filterEvents()">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<select id="eventStatusFilter" class="px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-cross-blue focus:border-transparent" onchange="filterEvents()">
<option value="">All Status</option>
<option value="upcoming">Upcoming</option>
<option value="ongoing">Ongoing</option>
<option value="completed">Completed</option>
<option value="cancelled">Cancelled</option>
</select>
</div>
</div>
<!-- Events Grid -->
<div id="eventsGrid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Blood Drive Event -->
<div class="bg-white rounded-lg shadow-lg p-6 border-l-4 border-red-500">
<div class="flex justify-between items-start mb-4">
<h3 class="text-lg font-semibold text-gray-900">Blood Drive 2024</h3>
<span class="px-2 py-1 text-xs font-medium bg-red-100 text-red-800 rounded-full">Upcoming</span>
</div>
<p class="text-gray-600 text-sm mb-4">Community blood donation drive at SM Mall of Asia</p>
<div class="space-y-2 mb-4">
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-map-marker-alt mr-2"></i>
<span>SM Mall of Asia, Pasay City</span>
</div>
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-users mr-2"></i>
<span>150 volunteers registered</span>
</div>
</div>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<button onclick="editEvent(1)" class="text-red-cross-blue hover:text-red-cross-secondary-blue text-sm">Edit</button>
<button onclick="deleteEvent(1)" class="text-red-600 hover:text-red-700 text-sm">Delete</button>
</div>
<button onclick="viewEventDetails(1)" class="bg-red-cross-blue text-white px-3 py-1 rounded text-sm hover:bg-red-cross-secondary-blue transition-colors">
View Details
</button>
</div>
</div>
<!-- Disaster Relief Training -->
<div class="bg-white rounded-lg shadow-lg p-6 border-l-4 border-blue-500">
<div class="flex justify-between items-start mb-4">
<h3 class="text-lg font-semibold text-gray-900">Disaster Relief Training</h3>
<span class="px-2 py-1 text-xs font-medium bg-blue-100 text-blue-800 rounded-full">Ongoing</span>
</div>
<p class="text-gray-600 text-sm mb-4">Emergency response training for volunteers</p>
<div class="space-y-2 mb-4">
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-map-marker-alt mr-2"></i>
<span>Red Cross Headquarters, Manila</span>
</div>
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-users mr-2"></i>
<span>75 participants</span>
</div>
</div>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<button onclick="editEvent(2)" class="text-red-cross-blue hover:text-red-cross-secondary-blue text-sm">Edit</button>
<button onclick="deleteEvent(2)" class="text-red-600 hover:text-red-700 text-sm">Delete</button>
</div>
<button onclick="viewEventDetails(2)" class="bg-red-cross-blue text-white px-3 py-1 rounded text-sm hover:bg-red-cross-secondary-blue transition-colors">
View Details
</button>
</div>
</div>
<!-- First Aid Workshop -->
<div class="bg-white rounded-lg shadow-lg p-6 border-l-4 border-green-500">
<div class="flex justify-between items-start mb-4">
<h3 class="text-lg font-semibold text-gray-900">First Aid Workshop</h3>
<span class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Completed</span>
</div>
<p class="text-gray-600 text-sm mb-4">Basic first aid training for community members</p>
<div class="space-y-2 mb-4">
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-map-marker-alt mr-2"></i>
<span>Quezon City Hall</span>
</div>
<div class="flex items-center text-sm text-gray-500">
<i class="fas fa-users mr-2"></i>
<span>120 participants</span>
</div>
</div>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<button onclick="editEvent(3)" class="text-red-cross-blue hover:text-red-cross-secondary-blue text-sm">Edit</button>
<button onclick="deleteEvent(3)" class="text-red-600 hover:text-red-700 text-sm">Delete</button>
</div>
<button onclick="viewEventDetails(3)" class="bg-red-cross-blue text-white px-3 py-1 rounded text-sm hover:bg-red-cross-secondary-blue transition-colors">
View Details
</button>
</div>
</div>
</div>
<!-- Event Statistics -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mt-6">
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center">
<div class="p-3 bg-blue-100 rounded-lg">
<i class="fas fa-calendar-alt text-blue-600 text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Total Events</p>
<p class="text-2xl font-bold text-gray-900">23</p>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center">
<div class="p-3 bg-red-100 rounded-lg">
<i class="fas fa-calendar-plus text-red-600 text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Upcoming</p>
<p class="text-2xl font-bold text-gray-900">5</p>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center">
<div class="p-3 bg-blue-100 rounded-lg">
<i class="fas fa-clock text-blue-600 text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Ongoing</p>
<p class="text-2xl font-bold text-gray-900">2</p>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
<div class="flex items-center">
<div class="p-3 bg-green-100 rounded-lg">
<i class="fas fa-check-circle text-green-600 text-xl"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Completed</p>
<p class="text-2xl font-bold text-gray-900">16</p>
</div>
</div>
</div>
</div>
<!-- Event Management Form Container -->
<div id="eventManagementFormContainer" class="bg-white rounded-lg shadow-lg p-6 mt-8 hidden">
<div class="mb-6">
<h3 class="text-lg font-semibold text-gray-800 mb-2">Create New Event</h3>
<p class="text-sm text-gray-600">Fill out the form below to create a new Red Cross event</p>
</div>
<form id="eventManagementForm" class="space-y-6">
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Event Name</label>
<input type="text" id="eventManagementName" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter event name" required>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Location</label>
<input type="text" id="eventManagementLocation" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter event location" required>
</div>
<div>
<label class="block text-sm font-semibold text-gray-700 mb-2">Description</label>
<textarea id="eventManagementDescription" rows="4" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Enter event description" required></textarea>
</div>
<div class="flex justify-end space-x-4 pt-4">
<button type="button" id="cancelEventManagement" class="px-6 py-3 bg-gray-200 text-gray-700 rounded-lg font-semibold hover:bg-gray-300 transition-colors">
Cancel
</button>
<button type="submit" class="px-6 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors">
Save Event
</button>
</div>
</form>
</div>
</section>
<!-- Volunteer Management Section -->
<section id="volunteers-section" class="admin-section hidden">
<!-- Volunteer & Staff Directory Container -->
<div class="bg-white rounded-lg shadow-lg p-6 mt-8">
<div class="flex justify-between items-center mb-6">
<div>
<h2 class="text-2xl font-bold text-gray-800">Volunteer & Staff Directory</h2>
<p class="text-gray-600">Manage volunteers, staff, and their assignments</p>
</div>
<button id="addVolunteerBtn" class="px-4 py-2 bg-red-cross-blue text-white rounded-lg hover:bg-red-cross-secondary-blue transition-colors" onclick="showVolunteerStaffForm()">
<i class="fas fa-plus mr-2"></i>Add New Volunteer/Staff
</button>
</div>
<!-- Search and Filter Controls -->
<div class="mb-6">
<div class="flex flex-col md:flex-row md:items-center space-y-4 md:space-y-0 md:space-x-4">
<div class="relative">
<input type="text" id="volunteerSearch" placeholder="Search volunteers..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-cross-blue focus:border-transparent" onkeyup="filterVolunteers()">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<select id="volunteerStatusFilter" class="px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-cross-blue focus:border-transparent" onchange="filterVolunteers()">
<option value="">All Status</option>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
<option value="pending">Pending</option>
</select>
</div>
</div>
<!-- Volunteers Table -->
<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">Volunteer</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Role</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">Assigned Tasks</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody id="volunteersTableBody" class="bg-white divide-y divide-gray-200">
<!-- Sample Volunteers -->
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-10 h-10 bg-red-cross-blue rounded-full flex items-center justify-center">
<span class="text-white font-medium text-sm">MS</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Maria Santos</div>
<div class="text-sm text-gray-500">maria.santos@email.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-blue-100 text-blue-800 rounded-full">Volunteer</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Blood Drive Coordinator</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button onclick="editVolunteer(1)" class="text-red-cross-blue hover:text-red-cross-secondary-blue mr-3">Edit</button>
<button onclick="toggleVolunteerStatus(1)" class="text-yellow-600 hover:text-yellow-700 mr-3">Toggle</button>
<button onclick="deleteVolunteer(1)" class="text-red-600 hover:text-red-700">Delete</button>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-10 h-10 bg-green-500 rounded-full flex items-center justify-center">
<span class="text-white font-medium text-sm">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.doe@email.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-purple-100 text-purple-800 rounded-full">Staff</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Event Manager</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button onclick="editVolunteer(2)" class="text-red-cross-blue hover:text-red-cross-secondary-blue mr-3">Edit</button>
<button onclick="toggleVolunteerStatus(2)" class="text-yellow-600 hover:text-yellow-700 mr-3">Toggle</button>
<button onclick="deleteVolunteer(2)" class="text-red-600 hover:text-red-700">Delete</button>
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="w-10 h-10 bg-yellow-500 rounded-full flex items-center justify-center">
<span class="text-white font-medium text-sm">AS</span>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Anna Smith</div>
<div class="text-sm text-gray-500">anna.smith@email.com</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Volunteer</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-medium bg-yellow-100 text-yellow-800 rounded-full">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">First Aid Assistant</td>