From e36a078de28d7f68b23faab901035c69db073ed9 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Thu, 7 May 2026 00:40:35 +0300 Subject: [PATCH] Update: 2026-05-07 00:40:35 --- public/shell.php | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/public/shell.php b/public/shell.php index 1c674c2..d332c78 100644 --- a/public/shell.php +++ b/public/shell.php @@ -1160,11 +1160,20 @@
مدققة ومعتمدة
-
-
📊
-
استهلاك الحصة
-
-
+ + @@ -2249,7 +2258,15 @@ }, async loadAll() { - this.stats = await this.apiRequest('v1/dashboard/stats') || { total: 0, pending: 0, approved: 0 }; + const statsData = await this.apiRequest('v1/dashboard/stats'); + this.stats = statsData ? { + total: statsData.invoices?.total || 0, + pending: statsData.invoices?.pending || 0, + approved: statsData.invoices?.approved || 0, + users: statsData.users || statsData.total_users || 0, + companies: statsData.companies || 0, + tenants: statsData.tenants || 0 + } : { total: 0, pending: 0, approved: 0 }; this.companies = await this.apiRequest('v1/companies') || []; this.subscription = await this.apiRequest('v1/subscriptions/current'); if (this.page === 'users') this.users = await this.apiRequest('v1/users') || [];