diff --git a/src/app/dashboard/halls/page.tsx b/src/app/dashboard/halls/page.tsx index 8bec28e..0c5ebb7 100644 --- a/src/app/dashboard/halls/page.tsx +++ b/src/app/dashboard/halls/page.tsx @@ -1,63 +1,69 @@ import { createClient } from "@/lib/supabase/server" -import { - Table, - TableBody, - TableCell, - TableHead, - TableHeader, - TableRow, -} from "@/components/ui/table" import { Button } from "@/components/ui/button" -import { Plus } from "lucide-react" +import { Plus, Users, Edit } from "lucide-react" import Link from "next/link" +import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card" +import { Badge } from "@/components/ui/badge" export default async function HallsPage() { const supabase = await createClient() const { data: halls } = await supabase.from('halls').select('*').order('created_at', { ascending: false }) return ( -
-
-

Salonlar

+
+
+
+

Salonlar

+

Düğün salonlarınızı ve kapasitelerini yönetin.

+
-
-
- - - - İsim - Kapasite - Açıklama - İşlemler - - - - {halls?.length === 0 ? ( - - - Henüz salon eklenmemiş. - - - ) : ( - halls?.map((hall) => ( - - {hall.name} - {hall.capacity} Kişi - {hall.description} - - - - - )) - )} - -
-
+ {halls?.length === 0 ? ( +
+

Henüz salon eklenmemiş.

+ + + +
+ ) : ( +
+ {halls?.map((hall) => ( + + +
+ {hall.name} + +
+
+ +
+ + {hall.capacity} + Kişi Kapasiteli +
+ {hall.description && ( +

+ {hall.description} +

+ )} +
+ +
+ ID: {hall.id.slice(0, 8)}... + Aktif +
+
+
+ ))} +
+ )}
) }