-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser_appointments.php
More file actions
1044 lines (961 loc) · 62.8 KB
/
user_appointments.php
File metadata and controls
1044 lines (961 loc) · 62.8 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
<?php
session_start();
require_once 'db/config.php';
// Check if user is logged in and is a user (not expert)
if (!isset($_SESSION['user_id']) || !isset($_SESSION['role']) || $_SESSION['role'] !== 'user') {
header('Location: login_signup.php');
exit();
}
// Fetch user's appointments with schedule and expert details
$user_id = $_SESSION['user_id'];
$sql = "
SELECT
a.aid,
a.reason_of_visit,
a.problem_description,
a.status,
s.schedule_date,
s.start_time,
s.end_time,
s.session_type,
s.notes as schedule_notes,
e.fullname as expert_name,
e.designation,
e.email as expert_email,
e.phone as expert_phone,
e.image as expert_image,
u.fullname as user_name,
u.email as user_email,
u.phone as user_phone,
u.image as user_image
FROM appointment a
JOIN schedule s ON a.shid = s.shid
JOIN expert e ON a.eid = e.eid
JOIN user u ON a.uid = u.uid
WHERE a.uid = ?
ORDER BY s.schedule_date DESC, s.start_time DESC
";
$appointments = [];
$stmt = $conn->prepare($sql);
if ($stmt) {
$stmt->bind_param("i", $user_id);
$stmt->execute();
$result = $stmt->get_result();
while ($row = $result->fetch_assoc()) {
$appointments[] = $row;
}
$stmt->close();
}
// Helper function to get status badge color
function getStatusBadge($status) {
switch($status) {
case 'pending':
return 'bg-yellow-100 text-yellow-800';
case 'accepted':
return 'bg-green-100 text-green-800';
case 'declined':
return 'bg-red-100 text-red-800';
default:
return 'bg-gray-100 text-gray-800';
}
}
// Helper function to format date
function formatDate($date) {
return date('l, F j, Y', strtotime($date));
}
// Helper function to format time
function formatTime($time) {
return date('g:i A', strtotime($time));
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Appointments - Soullift</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<!-- jsPDF and html2canvas for PDF generation -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.5.31/jspdf.plugin.autotable.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
'inter': ['Inter', 'sans-serif'],
'poppins': ['Poppins', 'sans-serif'],
},
colors: {
primary: {
50: '#f0fdfa',
100: '#ccfbf1',
200: '#99f6e4',
300: '#5eead4',
400: '#2dd4bf',
500: '#14b8a6',
600: '#0d9488',
700: '#0f766e',
800: '#115e59',
900: '#134e4a',
},
secondary: {
50: '#faf5ff',
100: '#f3e8ff',
200: '#e9d5ff',
300: '#d8b4fe',
400: '#c084fc',
500: '#a855f7',
600: '#9333ea',
700: '#7e22ce',
800: '#6b21a8',
900: '#581c87',
},
accent: {
50: '#fff7ed',
100: '#ffedd5',
200: '#fed7aa',
300: '#fdba74',
400: '#fb923c',
500: '#f97316',
600: '#ea580c',
700: '#c2410c',
800: '#9a3412',
900: '#7c2d12',
}
},
animation: {
'fade-in': 'fadeIn 0.5s ease-out',
'fade-in-delay-1': 'fadeIn 0.5s ease-out 0.1s both',
'fade-in-delay-2': 'fadeIn 0.5s ease-out 0.2s both',
}
}
}
}
</script>
<style>
body {
font-family: 'Inter', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Poppins', sans-serif;
}
.glass-effect {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.glass-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border: 1px solid rgba(20, 184, 166, 0.1);
}
.gradient-text {
background: linear-gradient(135deg, #14b8a6 0%, #a855f7 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.btn-primary {
background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
transition: all 0.3s ease;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}
.btn-secondary {
background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
transition: all 0.3s ease;
}
.btn-secondary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
</head>
<body class="bg-gradient-to-br from-primary-50 via-white to-secondary-50 min-h-screen">
<script>
function openAppointmentModal(appointment) {
// Store appointment data globally for PDF generation
currentAppointmentData = appointment;
// Populate modal with appointment data
document.getElementById('modal-appointment-id').textContent = `#${appointment.aid}`;
document.getElementById('modal-date').textContent = formatDate(appointment.schedule_date);
document.getElementById('modal-time').textContent = `${formatTime(appointment.start_time)} - ${formatTime(appointment.end_time)}`;
document.getElementById('modal-session-type').textContent = appointment.session_type;
document.getElementById('modal-status').textContent = appointment.status.toUpperCase();
document.getElementById('modal-status').className = `px-3 py-1 rounded-full text-sm font-semibold ${getStatusBadgeClass(appointment.status)}`;
// Expert details
document.getElementById('modal-expert-name').textContent = appointment.expert_name;
document.getElementById('modal-expert-designation').textContent = appointment.designation;
document.getElementById('modal-expert-email').textContent = appointment.expert_email || 'Not provided';
document.getElementById('modal-expert-phone').textContent = appointment.expert_phone || 'Not provided';
// User details
document.getElementById('modal-user-name').textContent = appointment.user_name;
document.getElementById('modal-user-email').textContent = appointment.user_email;
document.getElementById('modal-user-phone').textContent = appointment.user_phone || 'Not provided';
// Appointment details
document.getElementById('modal-reason').textContent = appointment.reason_of_visit || 'Not specified';
document.getElementById('modal-description').textContent = appointment.problem_description || 'No additional information provided';
document.getElementById('modal-schedule-notes').textContent = appointment.schedule_notes || 'No special notes';
// Expert image
const expertImageContainer = document.getElementById('modal-expert-image');
if (appointment.expert_image) {
expertImageContainer.innerHTML = `<img src="${appointment.expert_image}" alt="${appointment.expert_name}" class="w-16 h-16 rounded-full object-cover">`;
} else {
expertImageContainer.innerHTML = `<div class="w-16 h-16 bg-gradient-to-br from-purple-200 to-purple-300 rounded-full flex items-center justify-center text-xl font-bold text-purple-700">${appointment.expert_name.charAt(0)}</div>`;
}
// Show modal
document.getElementById('appointment-modal').classList.remove('hidden');
}
function closeAppointmentModal() {
document.getElementById('appointment-modal').classList.add('hidden');
}
// Global variable to store current appointment data for PDF generation
let currentAppointmentData = null;
function downloadAppointmentPDF() {
if (!currentAppointmentData) {
alert('No appointment data available for download.');
return;
}
// Show loading state
const downloadBtn = document.getElementById('download-pdf-btn');
const downloadBtnBottom = document.getElementById('download-pdf-btn-bottom');
const downloadIcon = document.getElementById('download-icon');
const downloadIconBottom = document.getElementById('download-icon-bottom');
const downloadText = document.getElementById('download-text');
const downloadTextBottom = document.getElementById('download-text-bottom');
// Update UI to loading state
downloadBtn.disabled = true;
downloadBtnBottom.disabled = true;
downloadIcon.className = 'fas fa-spinner fa-spin';
downloadIconBottom.className = 'fas fa-spinner fa-spin';
downloadText.textContent = 'Generating...';
downloadTextBottom.textContent = 'Generating PDF...';
// Reset function to restore original state
const resetButtons = () => {
downloadBtn.disabled = false;
downloadBtnBottom.disabled = false;
downloadIcon.className = 'fas fa-download';
downloadIconBottom.className = 'fas fa-file-pdf text-lg';
downloadText.textContent = 'Download PDF';
downloadTextBottom.textContent = 'Download Appointment Details (PDF)';
};
// Create a temporary container for the PDF content
const pdfContainer = document.createElement('div');
pdfContainer.id = 'pdf-container';
pdfContainer.style.position = 'absolute';
pdfContainer.style.left = '-9999px';
pdfContainer.style.top = '0';
pdfContainer.style.width = '794px'; // A4 width in pixels at 96 DPI
pdfContainer.style.backgroundColor = 'white';
pdfContainer.style.fontFamily = 'Arial, sans-serif';
pdfContainer.style.color = '#333';
pdfContainer.style.padding = '40px';
pdfContainer.style.boxSizing = 'border-box';
// Format date and time
const appointmentDate = formatDate(currentAppointmentData.schedule_date);
const appointmentTime = `${formatTime(currentAppointmentData.start_time)} - ${formatTime(currentAppointmentData.end_time)}`;
// Get status color
const statusColors = {
'pending': '#FCD34D',
'accepted': '#10B981',
'declined': '#EF4444'
};
const statusColor = statusColors[currentAppointmentData.status] || '#6B7280';
// Create the HTML content for the PDF
pdfContainer.innerHTML = `
<div style="max-width: 714px; margin: 0 auto; background: white;">
<!-- Header -->
<div style="background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%); color: white; padding: 30px; border-radius: 12px; margin-bottom: 30px; position: relative; overflow: hidden;">
<div style="position: absolute; top: -20px; right: -20px; font-size: 120px; opacity: 0.1; transform: rotate(45deg);">📋</div>
<div style="display: flex; align-items: center; gap: 20px;">
<div id="soullift-logo-pdf" style="width: 80px; height: 80px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 3px solid rgba(255,255,255,0.2);">
<img src="soullift1.jpg" style="width: 100%; height: 100%; object-fit: cover; border-radius: 50%;" alt="Soullift Logo">
</div>
<div style="flex: 1;">
<h1 style="margin: 0; font-size: 32px; font-weight: bold;">SOULLIFT</h1>
<p style="margin: 5px 0 0 0; font-size: 16px; opacity: 0.9;">Mental Health & Counseling Services</p>
<p style="margin: 5px 0 0 0; font-size: 14px; opacity: 0.8;">Appointment Details Report</p>
</div>
<div style="text-align: right;">
<div style="background: rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 20px; margin-bottom: 8px;">
<span style="font-size: 14px; font-weight: bold;">ID: #${currentAppointmentData.aid}</span>
</div>
<div style="background: ${statusColor}; color: white; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: bold; text-transform: uppercase;">
${currentAppointmentData.status}
</div>
</div>
</div>
</div>
<!-- Appointment Overview -->
<div style="background: #F8FAFC; border: 2px solid #E2E8F0; border-radius: 12px; padding: 25px; margin-bottom: 25px;">
<h2 style="margin: 0 0 20px 0; color: #1F2937; font-size: 20px; font-weight: bold; border-bottom: 2px solid #8B5CF6; padding-bottom: 8px; display: inline-block;">
📅 Appointment Overview
</h2>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;">
<div>
<div style="margin-bottom: 15px;">
<label style="display: block; font-size: 12px; color: #6B7280; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;">Date</label>
<span style="font-size: 16px; font-weight: 600; color: #1F2937;">${appointmentDate}</span>
</div>
<div style="margin-bottom: 15px;">
<label style="display: block; font-size: 12px; color: #6B7280; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;">Time</label>
<span style="font-size: 16px; font-weight: 600; color: #1F2937;">${appointmentTime}</span>
</div>
</div>
<div>
<div style="margin-bottom: 15px;">
<label style="display: block; font-size: 12px; color: #6B7280; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;">Session Type</label>
<span style="font-size: 16px; font-weight: 600; color: #1F2937;">${currentAppointmentData.session_type}</span>
</div>
<div style="margin-bottom: 15px;">
<label style="display: block; font-size: 12px; color: #6B7280; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;">Primary Concern</label>
<span style="font-size: 16px; font-weight: 600; color: #1F2937;">${currentAppointmentData.reason_of_visit || 'Not specified'}</span>
</div>
</div>
</div>
</div>
<!-- Expert & Patient Info -->
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px;">
<!-- Expert Info -->
<div style="background: #FEF7FF; border: 2px solid #E879F9; border-radius: 12px; padding: 25px;">
<h3 style="margin: 0 0 20px 0; color: #86198F; font-size: 18px; font-weight: bold; display: flex; align-items: center; gap: 10px;">
👨⚕️ Expert Information
</h3>
<div style="display: flex; align-items: center; gap: 15px; margin-bottom: 20px;">
<div id="expert-image-pdf" style="width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 3px solid #E879F9; background: #F3E8FF; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; color: #86198F;">
${currentAppointmentData.expert_name.charAt(0)}
</div>
<div style="flex: 1;">
<h4 style="margin: 0; font-size: 16px; font-weight: bold; color: #1F2937;">${currentAppointmentData.expert_name}</h4>
<p style="margin: 2px 0 0 0; font-size: 14px; color: #6B7280;">${currentAppointmentData.designation}</p>
</div>
</div>
<div style="space-y: 8px;">
<div style="margin-bottom: 8px;">
<span style="font-size: 12px; color: #86198F; font-weight: 600;">EMAIL:</span>
<span style="font-size: 14px; color: #1F2937; margin-left: 8px;">${currentAppointmentData.expert_email || 'Not provided'}</span>
</div>
<div>
<span style="font-size: 12px; color: #86198F; font-weight: 600;">PHONE:</span>
<span style="font-size: 14px; color: #1F2937; margin-left: 8px;">${currentAppointmentData.expert_phone || 'Not provided'}</span>
</div>
</div>
</div>
<!-- Patient Info -->
<div style="background: #F0F9FF; border: 2px solid #0EA5E9; border-radius: 12px; padding: 25px;">
<h3 style="margin: 0 0 20px 0; color: #0C4A6E; font-size: 18px; font-weight: bold; display: flex; align-items: center; gap: 10px;">
👤 Patient Information
</h3>
<div style="display: flex; align-items: center; gap: 15px; margin-bottom: 20px;">
<div id="user-image-pdf" style="width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 3px solid #0EA5E9; background: #E0F2FE; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; color: #0C4A6E;">
${currentAppointmentData.user_name.charAt(0)}
</div>
<div style="flex: 1;">
<h4 style="margin: 0; font-size: 16px; font-weight: bold; color: #1F2937;">${currentAppointmentData.user_name}</h4>
<p style="margin: 2px 0 0 0; font-size: 14px; color: #6B7280;">Patient</p>
</div>
</div>
<div style="space-y: 8px;">
<div style="margin-bottom: 8px;">
<span style="font-size: 12px; color: #0C4A6E; font-weight: 600;">EMAIL:</span>
<span style="font-size: 14px; color: #1F2937; margin-left: 8px;">${currentAppointmentData.user_email}</span>
</div>
<div>
<span style="font-size: 12px; color: #0C4A6E; font-weight: 600;">PHONE:</span>
<span style="font-size: 14px; color: #1F2937; margin-left: 8px;">${currentAppointmentData.user_phone || 'Not provided'}</span>
</div>
</div>
</div>
</div>
<!-- Problem Description -->
<div style="background: #FFFBEB; border: 2px solid #F59E0B; border-radius: 12px; padding: 25px; margin-bottom: 25px;">
<h3 style="margin: 0 0 15px 0; color: #92400E; font-size: 18px; font-weight: bold; display: flex; align-items: center; gap: 10px;">
📝 Problem Description
</h3>
<div style="background: white; border: 1px solid #FCD34D; border-radius: 8px; padding: 20px;">
<p style="margin: 0; font-size: 14px; line-height: 1.6; color: #374151;">${currentAppointmentData.problem_description || 'No additional information provided'}</p>
</div>
</div>
${currentAppointmentData.schedule_notes && currentAppointmentData.schedule_notes.trim() !== '' ? `
<!-- Session Notes -->
<div style="background: #F0FDF4; border: 2px solid #10B981; border-radius: 12px; padding: 25px; margin-bottom: 25px;">
<h3 style="margin: 0 0 15px 0; color: #065F46; font-size: 18px; font-weight: bold; display: flex; align-items: center; gap: 10px;">
💬 Session Notes
</h3>
<div style="background: white; border: 1px solid #6EE7B7; border-radius: 8px; padding: 20px;">
<p style="margin: 0; font-size: 14px; line-height: 1.6; color: #374151;">${currentAppointmentData.schedule_notes}</p>
</div>
</div>
` : ''}
<!-- Footer -->
<div style="border-top: 2px solid #E5E7EB; padding-top: 20px; text-align: center; color: #6B7280;">
<div style="display: flex; justify-content: between; align-items: center; flex-wrap: wrap; gap: 20px;">
<div style="flex: 1;">
<p style="margin: 0; font-size: 12px;">Generated on: ${new Date().toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit'
})}</p>
</div>
<div style="flex: 1; text-align: center;">
<p style="margin: 0; font-size: 14px; font-weight: bold; color: #8B5CF6;">SOULLIFT</p>
<p style="margin: 0; font-size: 10px;">Mental Health & Counseling Services</p>
</div>
<div style="flex: 1; text-align: right;">
<p style="margin: 0; font-size: 10px;">Confidential Medical Document</p>
</div>
</div>
</div>
</div>
`;
// Add the container to the body
document.body.appendChild(pdfContainer);
// Add expert image if available
if (currentAppointmentData.expert_image) {
const expertImgElement = pdfContainer.querySelector('#expert-image-pdf');
expertImgElement.innerHTML = `<img src="${currentAppointmentData.expert_image}" style="width: 100%; height: 100%; object-fit: cover;" alt="Expert">`;
}
// Add user image if available
if (currentAppointmentData.user_image) {
const userImgElement = pdfContainer.querySelector('#user-image-pdf');
userImgElement.innerHTML = `<img src="${currentAppointmentData.user_image}" style="width: 100%; height: 100%; object-fit: cover;" alt="Patient">`;
} else {
console.log('No user image available, using fallback');
}
// Wait for images to load, then generate PDF
setTimeout(() => {
// Debug: Check if images are loaded in the DOM
const expertImg = pdfContainer.querySelector('#expert-image-pdf img');
const userImg = pdfContainer.querySelector('#user-image-pdf img');
const logoImg = pdfContainer.querySelector('#soullift-logo-pdf img');
html2canvas(pdfContainer, {
scale: 2,
useCORS: true,
allowTaint: false,
backgroundColor: '#ffffff',
width: 794,
height: pdfContainer.scrollHeight,
}).then(canvas => {
const imgData = canvas.toDataURL('image/png');
const { jsPDF } = window.jspdf;
const pdf = new jsPDF('p', 'mm', 'a4');
const imgWidth = 210; // A4 width in mm
const pageHeight = 295; // A4 height in mm
const imgHeight = (canvas.height * imgWidth) / canvas.width;
let heightLeft = imgHeight;
let position = 0;
// Add first page
pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight);
heightLeft -= pageHeight;
// Add additional pages if needed
while (heightLeft >= 0) {
position = heightLeft - imgHeight;
pdf.addPage();
pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight);
heightLeft -= pageHeight;
}
// Save the PDF
const fileName = `Appointment_${currentAppointmentData.aid}_${currentAppointmentData.schedule_date}.pdf`;
pdf.save(fileName);
// Remove the temporary container and reset buttons
document.body.removeChild(pdfContainer);
resetButtons();
}).catch(error => {
console.error('Error generating PDF:', error);
alert('Error generating PDF. Please try again.');
document.body.removeChild(pdfContainer);
resetButtons();
});
}, 1500); // Wait 1.5 seconds for images to load
}
function formatDate(dateString) {
const date = new Date(dateString);
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
return date.toLocaleDateString('en-US', options);
}
function formatTime(timeString) {
const [hours, minutes] = timeString.split(':');
const date = new Date();
date.setHours(parseInt(hours), parseInt(minutes));
return date.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit', hour12: true });
}
function getStatusBadgeClass(status) {
switch(status) {
case 'pending':
return 'bg-yellow-100 text-yellow-800';
case 'accepted':
return 'bg-green-100 text-green-800';
case 'declined':
return 'bg-red-100 text-red-800';
default:
return 'bg-gray-100 text-gray-800';
}
}
</script>
</head>
<body class="bg-gradient-to-br from-purple-50 to-white min-h-screen">
<!-- Navigation -->
<header class="glass-effect sticky top-0 z-50 border-b border-white/20">
<div class="container mx-auto px-6">
<nav class="flex justify-between items-center py-4">
<!-- Logo -->
<a href="Homepage.php" class="flex items-center space-x-3 group">
<div class="relative">
<img src="resources/soullift-logo.svg" alt="SoulLift Logo" class="h-10 w-auto group-hover:scale-105 transition-transform duration-300">
</div>
</a>
<!-- Desktop Navigation -->
<ul class="hidden lg:flex items-center space-x-8">
<li><a href="Homepage.php?page=home" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Home</a></li>
<li><a href="user_profile.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">My Profile</a></li>
<li><a href="blog.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Blog</a></li>
<?php
// choose appointments page based on role
$appointmentsPage = (isset($_SESSION['role']) && $_SESSION['role'] === 'expert') ? 'expert_appointments.php' : 'user_appointments.php';
?>
<?php if (isset($_SESSION['role']) && $_SESSION['role'] === 'user'): ?>
<li><a href="experts.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Experts</a></li>
<li><a href="courses.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Courses</a></li>
<li><a href="services.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Services</a></li>
<li><a href="<?php echo $appointmentsPage; ?>" class="text-primary-600 font-semibold px-4 py-2 rounded-xl bg-primary-50/50 backdrop-blur-sm">Appointments</a></li>
<?php elseif (isset($_SESSION['role']) && $_SESSION['role'] === 'expert'): ?>
<li><a href="courses.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Courses</a></li>
<li><a href="schedule.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Schedule</a></li>
<li><a href="<?php echo $appointmentsPage; ?>" class="text-primary-600 font-semibold px-4 py-2 rounded-xl bg-primary-50/50 backdrop-blur-sm">Appointments</a></li>
<?php else: ?>
<li><a href="courses.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">Courses</a></li>
<?php endif; ?>
<li><a href="about.php" class="text-gray-700 hover:text-primary-600 transition-colors font-medium px-4 py-2 rounded-xl hover:bg-white/50">About Us</a></li>
</ul>
<!-- Right side buttons -->
<div class="flex items-center space-x-4">
<!-- Notification Button -->
<a href="notifications.php" class="relative glass-effect text-primary-600 px-4 py-2 rounded-xl hover:bg-white/50 transition-all duration-300 group">
<i class="fas fa-bell mr-2 group-hover:animate-pulse"></i>
<span class="hidden sm:inline">Notifications</span>
</a>
<?php if (isset($_SESSION['role'])): ?>
<a href="Homepage.php?logout=1" class="btn-secondary text-white px-6 py-2 rounded-xl font-semibold shadow-lg hover:shadow-xl transition-all duration-300">
<i class="fas fa-sign-out-alt mr-2"></i>
Log Out
</a>
<?php else: ?>
<a href="login_signup.php" class="btn-primary text-white px-6 py-2 rounded-xl font-semibold shadow-lg hover:shadow-xl transition-all duration-300">
<i class="fas fa-rocket mr-2"></i>
Get Started
</a>
<?php endif; ?>
</div>
<!-- Mobile Menu Button -->
<button class="lg:hidden text-gray-700 hover:text-primary-600 transition-colors p-2" onclick="toggleMobileMenu()">
<i class="fas fa-bars text-xl"></i>
</button>
</nav>
<!-- Mobile Navigation -->
<div id="mobile-menu" class="lg:hidden hidden pb-4">
<div class="glass-card rounded-2xl p-4 mt-4">
<ul class="space-y-2">
<li><a href="Homepage.php?page=home" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Home</a></li>
<li><a href="user_profile.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">My Profile</a></li>
<li><a href="blog.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Blog</a></li>
<?php if (isset($_SESSION['role']) && $_SESSION['role'] === 'user'): ?>
<li><a href="experts.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Experts</a></li>
<li><a href="courses.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Courses</a></li>
<li><a href="services.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Services</a></li>
<li><a href="<?php echo $appointmentsPage; ?>" class="block text-primary-600 font-semibold px-4 py-3 rounded-xl bg-primary-50/50">Appointments</a></li>
<?php elseif (isset($_SESSION['role']) && $_SESSION['role'] === 'expert'): ?>
<li><a href="courses.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Courses</a></li>
<li><a href="schedule.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Schedule</a></li>
<li><a href="<?php echo $appointmentsPage; ?>" class="block text-primary-600 font-semibold px-4 py-3 rounded-xl bg-primary-50/50">Appointments</a></li>
<?php else: ?>
<li><a href="courses.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">Courses</a></li>
<?php endif; ?>
<li><a href="about.php" class="block text-gray-700 hover:text-primary-600 transition-colors px-4 py-3 rounded-xl hover:bg-white/50">About Us</a></li>
</ul>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-12">
<div class="max-w-6xl mx-auto">
<!-- Page Header -->
<div class="mb-12 text-center animate-fade-in">
<h1 class="text-5xl font-bold mb-4">
<span class="bg-gradient-to-r from-primary-600 via-secondary-600 to-accent-500 bg-clip-text text-transparent">
My Appointments
</span>
</h1>
<p class="text-gray-600 text-xl">View and manage your counseling sessions</p>
</div>
<!-- Stats Cards -->
<div class="grid md:grid-cols-3 gap-6 mb-12">
<?php
$pending_count = count(array_filter($appointments, fn($a) => $a['status'] === 'pending'));
$accepted_count = count(array_filter($appointments, fn($a) => $a['status'] === 'accepted'));
$declined_count = count(array_filter($appointments, fn($a) => $a['status'] === 'declined'));
?>
<div class="glass-card rounded-2xl p-6 hover:shadow-xl transition-all animate-fade-in border-l-4 border-yellow-500">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-600 font-medium mb-1">Pending Review</p>
<h3 class="text-4xl font-bold text-gray-900"><?php echo $pending_count; ?></h3>
</div>
<div class="w-16 h-16 bg-gradient-to-br from-yellow-400 to-yellow-600 rounded-2xl flex items-center justify-center shadow-lg">
<i class="fas fa-clock text-white text-2xl"></i>
</div>
</div>
</div>
<div class="glass-card rounded-2xl p-6 hover:shadow-xl transition-all animate-fade-in-delay-1 border-l-4 border-green-500">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-600 font-medium mb-1">Accepted</p>
<h3 class="text-4xl font-bold text-gray-900"><?php echo $accepted_count; ?></h3>
</div>
<div class="w-16 h-16 bg-gradient-to-br from-green-400 to-green-600 rounded-2xl flex items-center justify-center shadow-lg">
<i class="fas fa-check text-white text-2xl"></i>
</div>
</div>
</div>
<div class="glass-card rounded-2xl p-6 hover:shadow-xl transition-all animate-fade-in-delay-2 border-l-4 border-red-500">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-600 font-medium mb-1">Declined</p>
<h3 class="text-4xl font-bold text-gray-900"><?php echo $declined_count; ?></h3>
</div>
<div class="w-16 h-16 bg-gradient-to-br from-red-400 to-red-600 rounded-2xl flex items-center justify-center shadow-lg">
<i class="fas fa-times text-white text-2xl"></i>
</div>
</div>
</div>
</div>
<!-- Appointments List -->
<div class="glass-card rounded-3xl shadow-2xl overflow-hidden animate-fade-in">
<div class="bg-gradient-to-r from-primary-500 via-secondary-500 to-accent-500 p-8 text-white">
<h2 class="text-3xl font-bold">All Appointments</h2>
<p class="text-white/90 mt-2">View and manage your counseling sessions</p>
</div>
<div class="p-8">
<?php if (empty($appointments)): ?>
<div class="text-center py-16">
<div class="w-24 h-24 bg-gradient-to-br from-primary-100 to-secondary-100 rounded-full flex items-center justify-center mx-auto mb-6">
<i class="fas fa-calendar-alt text-primary-500 text-5xl"></i>
</div>
<h3 class="text-2xl font-bold text-gray-900 mb-3">No Appointments Yet</h3>
<p class="text-gray-600 mb-8 max-w-md mx-auto">You haven't booked any appointments. Start your mental health journey today!</p>
<a href="appointment.php" class="btn-primary text-white px-8 py-3 rounded-xl font-semibold inline-block shadow-lg">
<i class="fas fa-plus-circle mr-2"></i>Book Your First Appointment
</a>
</div>
<?php else: ?>
<div class="space-y-4">
<?php foreach ($appointments as $appointment): ?>
<div class="glass-card border border-primary-100 rounded-2xl p-6 hover:shadow-xl hover:border-primary-300 transition-all">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-6">
<div class="w-20 h-20 rounded-2xl overflow-hidden shadow-lg">
<?php if (!empty($appointment['expert_image'])): ?>
<img src="<?php echo htmlspecialchars($appointment['expert_image']); ?>" alt="<?php echo htmlspecialchars($appointment['expert_name']); ?>" class="w-full h-full object-cover">
<?php else: ?>
<div class="w-full h-full bg-gradient-to-br from-primary-400 to-secondary-500 flex items-center justify-center">
<span class="text-2xl font-bold text-white"><?php echo strtoupper(substr($appointment['expert_name'], 0, 1)); ?></span>
</div>
<?php endif; ?>
</div>
<div>
<h3 class="text-xl font-bold text-gray-900 mb-1"><?php echo htmlspecialchars($appointment['expert_name']); ?></h3>
<p class="text-primary-600 font-semibold mb-2 flex items-center">
<i class="fas fa-user-md mr-2"></i>
<?php echo htmlspecialchars($appointment['designation']); ?>
</p>
<p class="text-gray-600 flex items-center">
<i class="fas fa-calendar mr-2 text-secondary-500"></i>
<?php echo formatDate($appointment['schedule_date']); ?>
<i class="fas fa-clock ml-4 mr-2 text-accent-500"></i>
<?php echo formatTime($appointment['start_time']); ?>
</p>
</div>
</div>
<div class="flex items-center space-x-6">
<div class="text-right">
<span class="px-4 py-2 rounded-xl text-sm font-bold shadow-lg <?php echo getStatusBadge($appointment['status']); ?>">
<?php echo ucfirst($appointment['status']); ?>
</span>
<p class="text-gray-600 font-medium mt-2 flex items-center justify-end">
<i class="fas fa-video mr-2 text-primary-500"></i>
<?php echo htmlspecialchars($appointment['session_type']); ?>
</p>
</div>
<button onclick="openAppointmentModal(<?php echo htmlspecialchars(json_encode($appointment)); ?>)"
class="w-12 h-12 bg-gradient-to-br from-primary-500 to-secondary-500 text-white rounded-xl hover:shadow-lg transition-all flex items-center justify-center">
<i class="fas fa-info text-xl"></i>
</button>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
</main>
<!-- Appointment Details Modal -->
<div id="appointment-modal" class="fixed inset-0 bg-black bg-opacity-60 backdrop-blur-sm hidden z-50 overflow-y-auto">
<div class="flex items-center justify-center min-h-screen p-4">
<div class="glass-card rounded-3xl shadow-2xl max-w-4xl w-full max-h-screen overflow-y-auto border border-primary-200">
<div class="relative">
<!-- Modal Header -->
<div class="bg-gradient-to-r from-primary-500 via-secondary-500 to-accent-500 p-8 text-white relative rounded-t-3xl">
<div class="absolute top-4 right-4 flex space-x-2">
<button id="download-pdf-btn" onclick="downloadAppointmentPDF()" class="glass-effect hover:bg-white/20 text-white px-4 py-2 rounded-xl transition-all flex items-center space-x-2">
<i class="fas fa-download" id="download-icon"></i>
<span id="download-text">Download PDF</span>
</button>
<button onclick="closeAppointmentModal()" class="glass-effect hover:bg-white/20 text-white px-3 py-2 rounded-xl transition-all">
<i class="fas fa-times text-xl"></i>
</button>
</div>
<div class="flex items-center space-x-6">
<div id="modal-expert-image" class="w-20 h-20 rounded-full border-4 border-white/30 overflow-hidden shadow-lg">
<!-- Dynamic expert image -->
</div>
<div>
<h2 class="text-3xl font-bold mb-2">Appointment <span id="modal-appointment-id"></span></h2>
<p class="text-white/90 text-xl mb-2 flex items-center">
<i class="fas fa-calendar mr-2"></i>
<span id="modal-date"></span>
<i class="fas fa-clock ml-4 mr-2"></i>
<span id="modal-time"></span>
</p>
<div class="flex items-center space-x-4">
<span id="modal-status" class="px-4 py-1.5 rounded-full text-sm font-semibold shadow-lg"></span>
<span class="glass-effect px-4 py-1.5 rounded-full text-sm font-semibold">
<i class="fas fa-video mr-2"></i>
<span id="modal-session-type"></span>
</span>
</div>
</div>
</div>
</div>
<!-- Modal Content -->
<div class="p-8 space-y-8">
<div class="grid md:grid-cols-2 gap-8">
<!-- Expert Information -->
<div class="glass-card p-6 rounded-2xl border border-primary-100">
<h3 class="text-xl font-bold text-gray-900 mb-6 flex items-center">
<div class="w-10 h-10 bg-gradient-to-br from-primary-400 to-primary-600 rounded-xl flex items-center justify-center mr-3">
<i class="fas fa-user-md text-white"></i>
</div>
Expert Information
</h3>
<div class="space-y-4">
<div>
<label class="text-gray-500 text-sm font-semibold uppercase tracking-wide">Name</label>
<p class="font-bold text-gray-900 mt-1" id="modal-expert-name"></p>
</div>
<div>
<label class="text-gray-500 text-sm font-semibold uppercase tracking-wide">Designation</label>
<p class="font-bold text-gray-900 mt-1" id="modal-expert-designation"></p>
</div>
<div>
<label class="text-gray-500 text-sm font-semibold uppercase tracking-wide">Email</label>
<p class="font-semibold text-primary-600 mt-1 flex items-center">
<i class="fas fa-envelope mr-2"></i>
<span id="modal-expert-email"></span>
</p>
</div>
<div>
<label class="text-gray-500 text-sm font-semibold uppercase tracking-wide">Phone</label>
<p class="font-semibold text-primary-600 mt-1 flex items-center">
<i class="fas fa-phone mr-2"></i>
<span id="modal-expert-phone"></span>
</p>
</div>
</div>
</div>
<!-- User Information -->
<div class="glass-card p-6 rounded-2xl border border-secondary-100">
<h3 class="text-xl font-bold text-gray-900 mb-6 flex items-center">
<div class="w-10 h-10 bg-gradient-to-br from-secondary-400 to-secondary-600 rounded-xl flex items-center justify-center mr-3">
<i class="fas fa-user text-white"></i>
</div>
Your Information
</h3>
<div class="space-y-4">
<div>
<label class="text-gray-500 text-sm font-semibold uppercase tracking-wide">Name</label>
<p class="font-bold text-gray-900 mt-1" id="modal-user-name"></p>
</div>
<div>
<label class="text-gray-500 text-sm font-semibold uppercase tracking-wide">Email</label>
<p class="font-semibold text-secondary-600 mt-1 flex items-center">
<i class="fas fa-envelope mr-2"></i>
<span id="modal-user-email"></span>
</p>
</div>
<div>
<label class="text-gray-500 text-sm font-semibold uppercase tracking-wide">Phone</label>
<p class="font-semibold text-secondary-600 mt-1 flex items-center">
<i class="fas fa-phone mr-2"></i>
<span id="modal-user-phone"></span>
</p>
</div>
</div>
</div>
</div>
<!-- Appointment Details -->
<div class="glass-card p-6 rounded-2xl border border-accent-100">
<h3 class="text-xl font-bold text-gray-900 mb-6 flex items-center">
<div class="w-10 h-10 bg-gradient-to-br from-accent-400 to-accent-600 rounded-xl flex items-center justify-center mr-3">
<i class="fas fa-clipboard-list text-white"></i>
</div>
Appointment Details
</h3>
<div class="space-y-5">
<div>
<label class="text-gray-500 text-sm font-semibold uppercase tracking-wide flex items-center">
<i class="fas fa-tag mr-2 text-accent-500"></i>
Primary Concern
</label>
<p class="font-semibold text-gray-900 mt-2 p-3 bg-accent-50 rounded-lg" id="modal-reason"></p>
</div>
<div>
<label class="text-gray-500 text-sm font-semibold uppercase tracking-wide flex items-center">
<i class="fas fa-file-alt mr-2 text-accent-500"></i>
Problem Description
</label>
<p class="font-semibold text-gray-900 mt-2 p-3 bg-accent-50 rounded-lg leading-relaxed" id="modal-description"></p>
</div>
<div>
<label class="text-gray-500 text-sm font-semibold uppercase tracking-wide flex items-center">
<i class="fas fa-sticky-note mr-2 text-accent-500"></i>
Session Notes
</label>
<p class="font-semibold text-gray-900 mt-2 p-3 bg-accent-50 rounded-lg" id="modal-schedule-notes"></p>
</div>
</div>
</div>
<!-- Download Button Section -->
<div class="flex justify-center pt-6 border-t border-gray-200">
<button id="download-pdf-btn-bottom" onclick="downloadAppointmentPDF()" class="btn-primary text-white px-8 py-4 rounded-xl shadow-lg flex items-center space-x-3">
<i class="fas fa-file-pdf text-2xl" id="download-icon-bottom"></i>
<span class="font-semibold text-lg" id="download-text-bottom">Download Appointment Details (PDF)</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-900 text-white">
<div class="max-w-7xl mx-auto px-4 py-16">
<div class="grid md:grid-cols-4 gap-8">
<div class="space-y-6">
<div class="flex items-center space-x-3">
<img src="resources/soullift-logo.svg" alt="Soullift Logo" class="w-10 h-10">
<span class="text-2xl font-heading font-bold bg-gradient-to-r from-primary-400 to-secondary-400 bg-clip-text text-transparent">
Soullift
</span>
</div>
<p class="text-gray-400 leading-relaxed">
Providing compassionate mental health support and counseling services to help you live a more fulfilling life.
</p>
<div class="flex space-x-4">
<a href="#" class="w-10 h-10 bg-primary-600 rounded-full flex items-center justify-center hover:bg-primary-700 transition-colors">
<i class="fab fa-facebook text-white"></i>
</a>
<a href="#" class="w-10 h-10 bg-secondary-600 rounded-full flex items-center justify-center hover:bg-secondary-700 transition-colors">
<i class="fab fa-instagram text-white"></i>
</a>
<a href="#" class="w-10 h-10 bg-primary-600 rounded-full flex items-center justify-center hover:bg-primary-700 transition-colors">
<i class="fab fa-twitter text-white"></i>
</a>
<a href="#" class="w-10 h-10 bg-accent-600 rounded-full flex items-center justify-center hover:bg-accent-700 transition-colors">
<i class="fab fa-linkedin text-white"></i>
</a>
</div>
</div>
<div>
<h3 class="font-heading text-lg font-semibold mb-6 text-white">Quick Links</h3>
<ul class="space-y-3 text-gray-400">
<li><a href="Homepage.php" class="hover:text-primary-400 transition-colors">Home</a></li>
<li><a href="services.php" class="hover:text-primary-400 transition-colors">Services</a></li>
<li><a href="experts.php" class="hover:text-primary-400 transition-colors">Therapists</a></li>
<li><a href="courses.php" class="hover:text-primary-400 transition-colors">Resources</a></li>
<li><a href="blog.php" class="hover:text-primary-400 transition-colors">Blog</a></li>
</ul>
</div>
<div>
<h3 class="font-heading text-lg font-semibold mb-6 text-white">Support</h3>
<ul class="space-y-3 text-gray-400">
<li><a href="mailto:info@soullift.com" class="hover:text-primary-400 transition-colors">Email Support</a></li>
<li><a href="tel:+15551234567" class="hover:text-primary-400 transition-colors">Emergency Hotline</a></li>
<li><span class="text-gray-500">Crisis Support: 24/7</span></li>
<li><a href="#" class="hover:text-primary-400 transition-colors">FAQs</a></li>
</ul>
</div>
<div>
<h3 class="font-heading text-lg font-semibold mb-6 text-white">Newsletter</h3>