+ {/* Header */}
+
+
All Resources Calendar
+
+ View all reservations across all resources
+
+
+ ← Back to Resources
+
+
+
+ {/* Week Navigation */}
+
+
+
+
+
+
+ {format(weekStart, 'MMM d')} - {format(addDays(weekStart, 6), 'MMM d, yyyy')}
+
+
+
+ {/* Calendar Grid */}
+
+ {/* Header Row */}
+
+
+ Time
+
+ {weekDays.map((day, index) => (
+
+
{format(day, 'EEE')}
+
+ {format(day, 'M/d')}
+
+
+ ))}
+
+
+ {/* Time Slots */}
+ {timeSlots.map((timeSlot, timeIndex) => (
+
+ {/* Time Column */}
+
+ {format(timeSlot, 'h a')}
+
+
+ {/* Day Columns */}
+ {weekDays.map((day, dayIndex) => {
+ const slotReservations = getReservationsForSlot(day, timeSlot);
+
+ return (
+
+ {slotReservations.map((reservation, resIndex) => (
+
+
+ {isMobile && reservation.title.length > 12
+ ? reservation.title.substring(0, 12) + '...'
+ : reservation.title.length > 15
+ ? reservation.title.substring(0, 15) + '...'
+ : reservation.title
+ }
+
+
+ {reservation.resourceName}
+
+
+ ))}
+
+ );
+ })}
+
+ ))}
+
+
+ {/* Resource Legend */}
+
+
Resources
+
+ {resources.map((resource) => (
+
+ ))}
+
+
+
+ );
+};
+
+export default AllResourcesCalendar;
\ No newline at end of file
diff --git a/src/pages/UserDashboard.tsx b/src/pages/UserDashboard.tsx
index cf2e82a..c1c24c5 100644
--- a/src/pages/UserDashboard.tsx
+++ b/src/pages/UserDashboard.tsx
@@ -236,7 +236,7 @@ const UserDashboard: React.FC = () => {