diff --git a/src/app/dashboard/customers/page.tsx b/src/app/dashboard/customers/page.tsx index e8939ef..263456a 100644 --- a/src/app/dashboard/customers/page.tsx +++ b/src/app/dashboard/customers/page.tsx @@ -8,9 +8,10 @@ import { TableRow, } from "@/components/ui/table" import { Button } from "@/components/ui/button" -import { Plus, Search } from "lucide-react" +import { Plus, Search, Phone, Mail, FileText, Edit } from "lucide-react" import Link from "next/link" import { Input } from "@/components/ui/input" +import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card" export default async function CustomersPage({ searchParams, @@ -29,11 +30,11 @@ export default async function CustomersPage({ const { data: customers } = await request return ( -
-
+
+

Müşteriler

- - @@ -52,7 +53,8 @@ export default async function CustomersPage({
-
+ {/* Desktop View */} +
@@ -86,6 +88,42 @@ export default async function CustomersPage({
+ + {/* Mobile View */} +
+ {customers?.length === 0 ? ( +
+ Müşteri bulunamadı. +
+ ) : ( + customers?.map((customer) => ( + + + {customer.full_name} + + + +
+ + {customer.phone || "-"} +
+
+ + {customer.email || "-"} +
+ {customer.notes && ( +
+ + {customer.notes} +
+ )} +
+
+ )) + )} +
) }