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') || [];