import { createClient } from "@/lib/supabase/server"; import { Card, CardContent } from "poyraz-ui/atoms"; import { Badge } from "poyraz-ui/molecules"; import { FolderKanban, CheckCircle2, Clock, ArrowRight } from "lucide-react"; import Link from "next/link"; import { format } from "date-fns"; import { tr } from "date-fns/locale"; export default async function PortalDashboardPage() { const supabase = await createClient(); const { data: { user } } = await supabase.auth.getUser(); if (!user) return null; // 1. Get the Client record const { data: clientData } = await supabase .from("clients") .select("id, name, company_name") .eq("client_auth_id", user.id) .single(); if (!clientData) { return (
Freelancer'ınız sizin için hesabı oluşturdu ancak müşteri kartınızla henüz eşleşmedi veya bir hata oluştu. Lütfen iletişime geçin.
İş süreçlerinizi ve aktif projelerinizi buradan takip edebilirsiniz.
{activeProjects.length}
{completedProjects.length}