From 2a891df398305f85e4ddeb83517bf7e90e16b469 Mon Sep 17 00:00:00 2001 From: sazzadulalambd Date: Tue, 19 May 2026 17:33:09 +0600 Subject: [PATCH] feat: add active batteries stat to investor profile and update grid layout for payment selection --- src/app/admin/investors/[id]/page.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/admin/investors/[id]/page.tsx b/src/app/admin/investors/[id]/page.tsx index 48abb48..e1ba549 100644 --- a/src/app/admin/investors/[id]/page.tsx +++ b/src/app/admin/investors/[id]/page.tsx @@ -565,7 +565,7 @@ export default function InvestorDetailPage() { {/* Stats Row */} -
+

Total Invested

৳{investor.totalInvested.toLocaleString()}

@@ -586,11 +586,14 @@ export default function InvestorDetailPage() {

Active Bikes

{investor.activeBikes}

+
+

Active Batteries

+

{batteries.filter(b => b.investorId === investorId).length}

+

Pending Request

৳{investor.pendingEarnings.toLocaleString()}

-
@@ -3299,7 +3302,7 @@ export default function InvestorDetailPage() { ) : ( <> -
+