diff --git a/app/(main)/events/[id]/page.tsx b/app/(main)/events/[id]/page.tsx
index a38239a..670c7f9 100644
--- a/app/(main)/events/[id]/page.tsx
+++ b/app/(main)/events/[id]/page.tsx
@@ -10,6 +10,7 @@ import { format } from "date-fns";
import Link from "next/link";
import Image from "next/image";
import { EventRegistrationModal } from "@/components/EventRegistrationModal";
+import { getEventPriceDisplay } from "@/lib/utils/event-priceUtils";
const EventDetailsPage = ({ params }: { params: { id: string } }) => {
const { id } = params;
@@ -52,9 +53,12 @@ const EventDetailsPage = ({ params }: { params: { id: string } }) => {
-
Event Not Found
+
+ Event Not Found
+
- The event you're looking for doesn't exist or has been removed.
+ The event you're looking for doesn't exist or has been
+ removed.
{/* Event Description */}
-
Event Description
+
+ Event Description
+
{descriptionPreview}
@@ -207,7 +208,10 @@ const EventDetailsPage = ({ params }: { params: { id: string } }) => {
-
-
-
- {title || "Event Title"}
-
-
-
-
-
-
-
-
+
+
+
+
+
+
{dateRange || "DD-MMM-YYYY to DD-MMM-YYYY"}
-
-
-
-
-
+
+
+
{timeRange || "00:00 AM to 00:00 AM"}
-
-
handleRedirectToDetails()}
- >
-
-
- Join Event
-
-
+
+
+ {title || "Event Title"}
+
+
+ {organization || "Organization Name"}
+
+
+
+
handleRedirectToDetails()}
+ >
+
+
+ Price
+
+
+ {price || "Free"}
+
+
+
diff --git a/lib/utils/event-priceUtils.ts b/lib/utils/event-priceUtils.ts
new file mode 100644
index 0000000..afc5f61
--- /dev/null
+++ b/lib/utils/event-priceUtils.ts
@@ -0,0 +1,19 @@
+import type { TicketCategory } from "@/client/types/entities";
+
+export const getEventPriceDisplay = (
+ ticketCategories?: TicketCategory[]
+): string => {
+ if (!ticketCategories || ticketCategories.length === 0) return "Free";
+
+ const prices = ticketCategories.map((tc) => tc.price);
+ const minPrice = Math.min(...prices);
+ const maxPrice = Math.max(...prices);
+
+ if (maxPrice === 0) return "Free";
+
+ if (minPrice === maxPrice) return `Php ${minPrice}.00`;
+
+ if (minPrice === 0) return `Free - Php ${maxPrice}.00`;
+
+ return `Php ${minPrice}.00 - ${maxPrice}.00`;
+};