Update: 2026-07-25 18:28:30

This commit is contained in:
Hamza-Ayed
2026-07-25 18:28:31 +03:00
parent 5e103f60f2
commit 4bbc687c15
9 changed files with 133 additions and 61 deletions
+16 -16
View File
@@ -360,13 +360,13 @@
<thead>
<tr>
<th data-i18n="ID">ID</th>
<th>Name</th>
<th>Phone</th>
<th>Email</th>
<th>Rating</th>
<th>Trips</th>
<th>Cancellations</th>
<th>Status</th>
<th data-i18n="Name">Name</th>
<th data-i18n="Phone">Phone</th>
<th data-i18n="Email">Email</th>
<th data-i18n="Rating">Rating</th>
<th data-i18n="Trips">Trips</th>
<th data-i18n="Cancellations">Cancellations</th>
<th data-i18n="Status">Status</th>
</tr>
</thead>
<tbody id="driversTableBody"></tbody>
@@ -398,13 +398,13 @@
<thead>
<tr>
<th data-i18n="ID">ID</th>
<th>Name</th>
<th>Contact</th>
<th>Trips</th>
<th>Rating</th>
<th>Cancellations</th>
<th>Joined</th>
<th>Status</th>
<th data-i18n="Name">Name</th>
<th data-i18n="Contact">Contact</th>
<th data-i18n="Trips">Trips</th>
<th data-i18n="Rating">Rating</th>
<th data-i18n="Cancellations">Cancellations</th>
<th data-i18n="Joined">Joined</th>
<th data-i18n="Status">Status</th>
</tr>
</thead>
<tbody id="passengersTableBody"></tbody>
@@ -458,8 +458,8 @@
<thead>
<tr>
<th data-i18n="ID">ID</th>
<th>Name</th>
<th>Phone</th>
<th data-i18n="Name">Name</th>
<th data-i18n="Phone">Phone</th>
<th data-i18n="Type">Type</th>
<th data-i18n="Requested role">Requested role</th>
<th data-i18n="Requested at">Requested at</th>
+52 -1
View File
@@ -458,6 +458,56 @@
'This browser is registered as a trusted device:': 'هذا المتصفح مسجّل كجهاز موثوق:',
'The endpoint responded successfully but returned no data yet.': 'استجاب الـ API بنجاح لكنه لم يُرجِع بياناتاً بعد.',
'No records recorded for this yet — the table is empty in the database.': 'لا توجد سجلات بعد — الجدول فارغ في قاعدة البيانات.',
// Database and API Field Translations
'Total Revenue': 'إجمالي الإيرادات',
'Company Profit': 'أرباح الشركة',
'Total Driver Pay': 'إجمالي مستحقات السائقين',
'Total Platform Commission': 'عمولة المنصة',
'Cash Payments': 'الدفع النقدي',
'Digital Payments': 'الدفع الرقمي',
'Total Earned': 'إجمالي الأرباح',
'First Name': 'الاسم الأول',
'Last Name': 'اسم العائلة',
'Full Name': 'الاسم الكامل',
'Driver Id': 'معرّف السائق',
'Passenger Id': 'معرّف الراكب',
'Created At': 'تاريخ الإنشاء',
'Updated At': 'تاريخ التحديث',
'Birthdate': 'تاريخ الميلاد',
'Gender': 'الجنس',
'National Number': 'الرقم الوطني',
'Address': 'العنوان',
'Site': 'الموقع',
'Active Routes': 'المسارات النشطة',
'Active Enrollments': 'التسجيلات النشطة',
'Average Pci': 'متوسط PCI',
'Market Share Percent': 'نسبة الحصة السوقية',
'Total Anomalies': 'حالات الشذوذ',
'Total Surge Opportunities': 'فرص الفورة',
'Report Date': 'تاريخ التقرير',
'Date': 'التاريخ',
'User Type': 'نوع المستخدم',
'User': 'المستخدم',
'Ride Details': 'تفاصيل الرحلة',
'Driver Details': 'تفاصيل السائق',
'Driver Location': 'موقع السائق',
'Price': 'السعر',
'Price For Driver': 'حصة السائق',
'Price For Passenger': 'المبلغ من الراكب',
'Distance': 'المسافة',
'Payment Method': 'طريقة الدفع',
'Car Type': 'نوع السيارة',
'Start Location': 'موقع البداية',
'End Location': 'موقع النهاية',
'Cancel Reason': 'سبب الإلغاء',
'Driver First Name': 'اسم السائق الأول',
'Driver Last Name': 'اسم عائلة السائق',
'Passenger First Name': 'اسم الراكب الأول',
'Passenger Last Name': 'اسم عائلة الراكب',
'Contact': 'معلومات الاتصال',
'Click any row to open the full profile': 'اضغط على أي سطر لفتح الملف الشخصي الكامل',
'Search by passenger ID, phone or email': 'البحث برقم الراكب، الهاتف، أو البريد الإلكتروني',
'Search rides by phone number': 'البحث في الرحلات برقم الهاتف',
'Yes': 'نعم',
'No': 'لا',
'Click any row to open the full profile': 'اضغط على أي سطر لفتح الملف الشخصي الكامل',
@@ -3339,11 +3389,12 @@
}
function humanize(key) {
return String(key)
const s = String(key)
.replace(/[_-]+/g, ' ')
.replace(/([a-z])([A-Z])/g, '$1 $2')
.replace(/\b\w/g, (m) => m.toUpperCase())
.trim();
return t(key) || t(s) || s;
}
function msgNode(text) {