diff --git a/app/(admin)/admin/booking/[id]/page.tsx b/app/(admin)/admin/booking/[id]/page.tsx index ee6f68c..3ec4ccb 100644 --- a/app/(admin)/admin/booking/[id]/page.tsx +++ b/app/(admin)/admin/booking/[id]/page.tsx @@ -367,13 +367,18 @@ export default function AppointmentDetailPage() { )} - {/* Selected Slots */} + {/* Selected Slots (replacing Matching Slots) */} {appointment.selected_slots && Array.isArray(appointment.selected_slots) && appointment.selected_slots.length > 0 && (
+
{dayName}
-+
{timeLabel}
+ {slot.date && ( ++ {formatShortDate(slot.date)} +
+ )}- Found {totalMatchingSlots} matching time slot{totalMatchingSlots !== 1 ? 's' : ''} that match your selected preferences: -
- )} - {!hasMatchingSlots && ( -- These are the available time slots that match your selected preferences: -
- )} - - {hasMatchingSlots ? ( - // Display matching_slots from MatchingAvailability object -- {dayName} -
-- {timeLabel} -
-- {formatShortDate(slot.date)} -
-- {match.day_name || "Unknown Day"} -
-- {formatShortDate(match.date || match.date_obj || "")} -
-+
{dayName}
-+
{timeLabel}
+ {slot.date && ( ++ {formatShortDate(slot.date)} +
+ )}- Found {totalMatchingSlots} matching time slot{totalMatchingSlots !== 1 ? 's' : ''} that match your selected preferences: -
- )} - {!hasMatchingSlots && ( -- These are the available time slots that match your selected preferences: -
- )} - - {hasMatchingSlots ? ( - // Display matching_slots from MatchingAvailability object -- {dayName} -
-- {timeLabel} -
-- {formatShortDate(slot.date)} -
-- {match.day_name || "Unknown Day"} -
-- {formatShortDate(match.date || match.date_obj || "")} -
-