diff --git a/public/shell.php b/public/shell.php
index 3dabe0c..0e631f0 100644
--- a/public/shell.php
+++ b/public/shell.php
@@ -223,13 +223,14 @@
+
|
|
|
+ x-text="inv.status === 'approved' ? 'مدققة' : inv.status">
|
@@ -240,6 +241,46 @@
+
+
+
+
+
+
+
+ | المكتب المحاسبي |
+ التواصل |
+ الحالة |
+ تاريخ الانضمام |
+ إجراءات |
+
+
+
+ | لا توجد مكاتب مسجلة |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+ |
+
+
+ |
+
+
+
+
+
+
@@ -447,20 +488,20 @@
-
- ![QR Code]()
+
+
- ✅ معتمدة مسبقاً
+ ✅ مدققة وموثقة محلياً
@@ -515,6 +556,26 @@
this.companies = await this.apiRequest('v1/companies') || [];
if (this.page === 'users') this.users = await this.apiRequest('v1/users') || [];
if (this.page === 'invoices') this.invoices = await this.apiRequest('v1/invoices') || [];
+ if (this.page === 'tenants' && this.user.role === 'super_admin') this.tenants = await this.apiRequest('v1/tenants') || [];
+ },
+
+ getQrSrc(inv) {
+ if (!inv) return '';
+ if (inv.jofotara?.qr_image_uri) return inv.jofotara.qr_image_uri;
+ if (inv.qr_code) {
+ // Check if it's already a data URI
+ if (inv.qr_code.startsWith('data:')) return inv.qr_code;
+
+ // Otherwise, it's raw TLV, generate it using QRious
+ try {
+ const qr = new QRious({
+ value: inv.qr_code,
+ size: 250
+ });
+ return qr.toDataURL();
+ } catch (e) { return ''; }
+ }
+ return '';
},
async createUser() {
|