diff --git a/src/app/(mobile)/m/dashboard-view.tsx b/src/app/(mobile)/m/dashboard-view.tsx index d8c48ef..44d4f84 100644 --- a/src/app/(mobile)/m/dashboard-view.tsx +++ b/src/app/(mobile)/m/dashboard-view.tsx @@ -115,10 +115,14 @@ export default function BossDashboardView() { ))} - {/* Placeholder for order totals (Task 11) */} -
- Order totals land here in Task 11. -
+ {/* Order totals */} + {data && ( +
+ + + +
+ )} {/* Placeholder for reps (Task 12) */}
@@ -151,3 +155,24 @@ function timeAgo(date: Date): string { if (hr < 24) return `${hr}h ago`; return date.toLocaleDateString("en-ZA", { day: "numeric", month: "short" }); } + +function OrderTotal({ + label, + value, + color, +}: { + label: string; + value: number; + color: string; +}) { + return ( +
+
+ {label} +
+
+ {value.toLocaleString()} +
+
+ ); +}