diff --git a/src/routes/index.tsx b/src/routes/index.tsx index d175a0c..3b8083e 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -65,7 +65,7 @@ function Dashboard() { myAssigneeRes, openCasesRes, newCasesRes, closedCasesRes, tasksTodayRes, hearingsTodayRes, - recentCasesRes, recentInvRes, + recentCasesRes, recentInvRes, recentPayRes, ] = await Promise.all([ supabase.from("trust_ledger_entries").select("entry_type, amount"), supabase.from("invoice_payments").select("amount, paid_on").gte("paid_on", monthStart).lte("paid_on", monthEnd), @@ -78,6 +78,7 @@ function Dashboard() { supabase.from("cases").select("id, title, case_number, next_hearing_date, next_hearing_notes").eq("next_hearing_date", todayStr), supabase.from("cases").select("id, case_number, title, status, updated_at, client:clients(name)").order("updated_at", { ascending: false }).limit(5), supabase.from("invoices").select("id, invoice_number, total, status, issue_date, client:clients(name)").order("created_at", { ascending: false }).limit(5), + supabase.from("payment_requests").select("id, recipient_name, description, total_amount_cents, status, created_at, paid_at").order("created_at", { ascending: false }).limit(5), ]); // Trust balance