613 lines
27 KiB
PHP
613 lines
27 KiB
PHP
<?php
|
|
if (session_status() === PHP_SESSION_NONE) {
|
|
session_start();
|
|
}
|
|
|
|
/**
|
|
* Global .env loader
|
|
*/
|
|
require_once __DIR__ . '/dotenv.php';
|
|
|
|
$lang = $_SESSION['lang'] ?? 'en';
|
|
if (isset($_GET['lang'])) {
|
|
$lang = $_GET['lang'] === 'ar' ? 'ar' : 'en';
|
|
$_SESSION['lang'] = $lang;
|
|
}
|
|
|
|
$translations = [
|
|
'en' => [
|
|
|
|
'how_rate_staff' => 'How would you rate our staff?',
|
|
'how_rate_service' => 'How would you rate our services?',
|
|
'comment_placeholder' => 'Tell us about your experience...',
|
|
'submit_another' => 'Submit Another Rating',
|
|
'provide_valid_rating' => 'Please provide a valid rating (1-5).',
|
|
'error_saving_rating' => 'Error saving rating. Please try again.',
|
|
'optional' => 'Optional',
|
|
'ratings' => 'Ratings',
|
|
'staff_rating' => 'Staff Rating',
|
|
'service_rating' => 'Service Rating',
|
|
'branch_links' => 'Branch Links',
|
|
'copy_link' => 'Copy Link',
|
|
'print_qr' => 'Print QR',
|
|
'link_copied' => 'Copied!',
|
|
'rating' => 'Rating',
|
|
'comment' => 'Comment',
|
|
'rating_type' => 'Type',
|
|
'staff' => 'Staff',
|
|
'rate_us' => 'Rate Us',
|
|
'rate_staff' => 'Rate Staff',
|
|
'rate_services' => 'Rate Our Services',
|
|
'clear_ratings' => 'Clear Ratings',
|
|
'confirm_clear_ratings' => 'Are you sure you want to clear all ratings?',
|
|
'ratings_cleared' => 'All ratings have been cleared successfully.',
|
|
'error_clearing_ratings' => 'Error clearing ratings.',
|
|
'service' => 'Service',
|
|
'average_rating' => 'Average Rating',
|
|
'total_ratings' => 'Total Ratings',
|
|
'submit_rating' => 'Submit Rating',
|
|
'rating_submitted' => 'Thank you! Your rating has been submitted.',
|
|
'dashboard' => 'Dashboard',
|
|
'pos' => 'POS',
|
|
'orders' => 'Orders',
|
|
'customers' => 'Customers',
|
|
'items' => 'Items',
|
|
'services' => 'Services',
|
|
'branches' => 'Branches',
|
|
'users' => 'Users',
|
|
'settings' => 'Settings',
|
|
'smtp_settings' => 'SMTP Settings',
|
|
'smtp_host' => 'SMTP Host',
|
|
'smtp_port' => 'SMTP Port',
|
|
'smtp_user' => 'SMTP Username',
|
|
'smtp_pass' => 'SMTP Password',
|
|
'smtp_secure' => 'SMTP Encryption (tls/ssl)',
|
|
'whatsapp_settings' => 'WhatsApp Settings',
|
|
'whatsapp_enabled' => 'WhatsApp Enabled',
|
|
'wablas_token' => 'Wablas API Token',
|
|
'wablas_server' => 'Wablas Server URL',
|
|
'wablas_security_key' => 'Wablas Security Key',
|
|
'msg_order_created_ar' => 'Order Created Message (Arabic)',
|
|
'msg_order_ready_ar' => 'Order Ready Message (Arabic)',
|
|
'msg_payment_ar' => 'Payment Received Message (Arabic)',
|
|
'messages_enabled' => 'Messages Enabled',
|
|
'messages_disabled' => 'Messages Disabled',
|
|
'logout' => 'Logout',
|
|
'login' => 'Login',
|
|
'username' => 'Username',
|
|
'password' => 'Password',
|
|
'confirm_password' => 'Confirm Password',
|
|
'change_password' => 'Change Password',
|
|
'submit' => 'Submit',
|
|
'save' => 'Save',
|
|
'save_changes' => 'Save Changes',
|
|
'cancel' => 'Cancel',
|
|
'add_new' => 'Add New',
|
|
'edit' => 'Edit',
|
|
'delete' => 'Delete',
|
|
'actions' => 'Actions',
|
|
'search' => 'Search',
|
|
'total' => 'Total',
|
|
'status' => 'Status',
|
|
'date' => 'Date',
|
|
'phone' => 'Phone',
|
|
'name' => 'Name',
|
|
'name_en' => 'Name (EN)',
|
|
'name_ar' => 'Name (AR)',
|
|
'price' => 'Price',
|
|
'quantity' => 'Quantity',
|
|
'subtotal' => 'Subtotal',
|
|
'vat' => 'VAT',
|
|
'vat_total' => 'VAT Total',
|
|
'payment_status' => 'Payment Status',
|
|
'received' => 'Received',
|
|
'processing' => 'Processing',
|
|
'ready' => 'Ready',
|
|
'delivered' => 'تم التسليم',
|
|
'cancelled' => 'Cancelled',
|
|
'unpaid' => 'Unpaid',
|
|
'partially_paid' => 'Partially Paid',
|
|
'paid' => 'Paid',
|
|
'cash' => 'Cash',
|
|
'card' => 'Card',
|
|
'transfer' => 'Transfer',
|
|
'new_order' => 'New Order',
|
|
'order_details' => 'Order Details',
|
|
'customer_name' => 'Customer Name',
|
|
'select_customer' => 'Select Customer',
|
|
'add_item' => 'Add Item',
|
|
'edit_item' => 'Edit Item',
|
|
'delete_item' => 'Delete Item',
|
|
'select_item' => 'Select Item',
|
|
'select_service' => 'Select Service',
|
|
'checkout' => 'Checkout',
|
|
'back_to_pos' => 'Back to POS',
|
|
'language' => 'Language',
|
|
'arabic' => 'Arabic',
|
|
'english' => 'English',
|
|
'branch' => 'Branch',
|
|
'all_branches' => 'All Branches',
|
|
'category' => 'Category',
|
|
'categories' => 'Categories',
|
|
'add_category' => 'Add Category',
|
|
'edit_category' => 'Edit Category',
|
|
'delete_category' => 'Delete Category',
|
|
'categories_management' => 'Categories Management',
|
|
'add_new_category' => 'Add New Category',
|
|
'select_category' => 'Select Category',
|
|
'all' => 'All',
|
|
'variant' => 'Variant',
|
|
'variants' => 'Variants',
|
|
'add_variant' => 'Add Variant',
|
|
'select_variant' => 'Select Variant',
|
|
'variant_name_en' => 'Variant Name (EN)',
|
|
'variant_name_ar' => 'Variant Name (AR)',
|
|
'default' => 'Default',
|
|
'vat_percent' => 'VAT %',
|
|
'image_url' => 'Image URL',
|
|
'items_management' => 'Items Management',
|
|
'variants_prices' => 'Variants & Prices',
|
|
'no_items_found' => 'No items found',
|
|
'pricing_management' => 'Pricing Management',
|
|
'are_you_sure' => 'Are you sure?',
|
|
'company_profile' => 'Settings',
|
|
'user_profile' => 'User Profile',
|
|
'logo' => 'Logo',
|
|
'favicon' => 'أيقونة الموقع',
|
|
'email' => 'Email',
|
|
'address_en' => 'Address (EN)',
|
|
'address_ar' => 'Address (AR)',
|
|
'vat_number' => 'VAT Number',
|
|
'profile_picture' => 'Profile Picture',
|
|
'full_name_en' => 'Full Name (EN)',
|
|
'full_name_ar' => 'Full Name (AR)',
|
|
'update_profile' => 'Update Profile',
|
|
'success_update' => 'Updated successfully!',
|
|
'error_update' => 'Error updating!',
|
|
'print' => 'Print',
|
|
'print_invoice' => 'Print Invoice',
|
|
'print_receipt' => 'Print Receipt',
|
|
'thermal_receipt' => 'Thermal Receipt',
|
|
'order' => 'Order',
|
|
'customer' => 'Customer',
|
|
'qty' => 'Qty',
|
|
'close' => 'Close',
|
|
'payments' => 'Payments',
|
|
'no_payments' => 'No payments',
|
|
'update_status' => 'Update Status',
|
|
'update' => 'Update',
|
|
'remaining_amount' => 'Remaining Amount',
|
|
'add_payment' => 'Add Payment',
|
|
'payment_method' => 'Payment Method',
|
|
'customer_details' => 'Customer Details',
|
|
'order_date' => 'Order Date',
|
|
'method' => 'Method',
|
|
'amount' => 'Amount',
|
|
'currency' => 'OMR',
|
|
'ctr_no' => 'CR Number',
|
|
'vat_no' => 'VAT Number',
|
|
'add_new_user' => 'Add New User',
|
|
'role' => 'Role',
|
|
'add_user' => 'Add User',
|
|
'lab' => 'Lab Module',
|
|
'outlet' => 'Outlet',
|
|
'view_items' => 'View Items',
|
|
'initial_letters' => 'Initial letters (3 letters)',
|
|
'from_date' => 'From Date',
|
|
'to_date' => 'To Date',
|
|
'order_no' => 'Order No',
|
|
'all_status' => 'All Status',
|
|
'all_payments' => 'All Payments',
|
|
'search_placeholder' => 'Search by Phone, Order No, Name...',
|
|
'previous' => 'Previous',
|
|
'next' => 'Next',
|
|
'page' => 'Page',
|
|
'of' => 'of',
|
|
'Access Denied' => 'تم رفض الوصول',
|
|
'active_orders' => 'Active Orders',
|
|
'add_branch' => 'Add Branch',
|
|
'add_new_branch' => 'Add New Branch',
|
|
'add_new_customer' => 'Add New Customer',
|
|
'add_new_service' => 'Add New Service',
|
|
'company' => 'Company',
|
|
'customers_list' => 'Customers List',
|
|
'edit_service' => 'Edit Service',
|
|
'exactly_3_letters' => 'Exactly 3 letters',
|
|
'image' => 'Image',
|
|
'item' => 'Item',
|
|
'manage_orders_across_outlets' => 'Manage orders across outlets',
|
|
'new_customers' => 'New Customers',
|
|
'no_orders_found' => 'No orders found',
|
|
'order_number' => 'Order Number',
|
|
'orders_list' => 'Orders List',
|
|
'pricing_services' => 'Pricing & Services',
|
|
'quick_actions' => 'Quick Actions',
|
|
'ready_orders' => 'Ready Orders',
|
|
'recent_orders' => 'Recent Orders',
|
|
'reports' => 'Reports',
|
|
'rate_us' => 'Rate Us',
|
|
'rate_staff' => 'Rate Staff',
|
|
'rate_services' => 'Rate Our Services',
|
|
'clear_ratings' => 'Clear Ratings',
|
|
'confirm_clear_ratings' => 'Are you sure you want to clear all ratings?',
|
|
'ratings_cleared' => 'All ratings have been cleared successfully.',
|
|
'error_clearing_ratings' => 'Error clearing ratings.',
|
|
'service' => 'Service',
|
|
'service_pricing' => 'Service Pricing',
|
|
'services_management' => 'Services Management',
|
|
'today_revenue' => 'Today Revenue',
|
|
'view' => 'View',
|
|
'generate_report' => 'Generate Report',
|
|
'total_revenue' => 'Total Revenue',
|
|
'total_orders' => 'Total Orders',
|
|
'average_order_value' => 'Average Order Value',
|
|
'revenue_by_outlet' => 'Revenue by Outlet',
|
|
'revenue_by_cashier' => 'Revenue by Cashier',
|
|
'orders_by_status' => 'Orders by Status',
|
|
'top_items' => 'Top Items',
|
|
'top_services' => 'Top Services',
|
|
'cashier' => 'Cashier',
|
|
'revenue_by_payment_method' => 'Revenue by Payment Method',
|
|
'print_report' => 'Print Report',
|
|
'revenue_last_7_days' => 'Revenue (Last 7 Days)',
|
|
'date_range' => 'Date Range',
|
|
'edit_user' => 'Edit User',
|
|
'confirm_delete_user' => 'Are you sure you want to delete this user?',
|
|
'leave_blank_to_keep_current' => 'leave blank to keep current',
|
|
'permissions' => 'Permissions',
|
|
'user_permissions' => 'User Permissions',
|
|
'orders_per_month' => 'Orders per Month',
|
|
'customer_statement' => 'Customer Statement',
|
|
'statement' => 'Statement',
|
|
'debit' => 'Debit',
|
|
'credit' => 'Credit',
|
|
'balance' => 'Balance',
|
|
'total_debit' => 'Total Debit',
|
|
'total_credit' => 'Total Credit',
|
|
'opening_balance' => 'Opening Balance',
|
|
'closing_balance' => 'Closing Balance',
|
|
'transaction_type' => 'Transaction Type',
|
|
'description' => 'Description',
|
|
'customer_added' => 'Customer added successfully',
|
|
'customer_updated' => 'Customer updated successfully',
|
|
'customer_deleted' => 'Customer deleted successfully',
|
|
'customer_has_orders' => 'Cannot delete customer because they have existing orders',
|
|
'loyalty_settings' => 'Loyalty System Settings',
|
|
'loyalty_enabled' => 'Loyalty System Enabled',
|
|
'loyalty_points_per_currency' => 'Points earned per 1 Omani Rial spent',
|
|
'loyalty_currency_per_point' => 'Value of 1 point (discount amount)',
|
|
'loyalty_points' => 'Loyalty Points',
|
|
'points_adjusted' => 'Points adjusted successfully',
|
|
'loyalty' => 'Loyalty Points',
|
|
'loyalty_discount' => 'Loyalty Discount',
|
|
'final_total' => 'Final Total',
|
|
'set_prices_for' => 'Set Prices for',
|
|
'prices_saved_automatically' => 'Prices are saved automatically',
|
|
'done' => 'Done',
|
|
'uncategorized' => 'Uncategorized',
|
|
'manage_items_categories_services' => 'Manage Items, Categories & Services',
|
|
'manage_categories' => 'Manage Categories',
|
|
'search_items' => 'Search Items',
|
|
'filter' => 'Filter',
|
|
'all_categories' => 'All Categories',
|
|
'upload_image' => 'Upload Image',
|
|
'confirm_delete' => 'Are you sure you want to delete this?',
|
|
],
|
|
'ar' => [
|
|
|
|
'how_rate_staff' => 'كيف تقيم موظفينا؟',
|
|
'how_rate_service' => 'كيف تقيم خدماتنا؟',
|
|
'comment_placeholder' => 'أخبرنا عن تجربتك...',
|
|
'submit_another' => 'إرسال تقييم آخر',
|
|
'provide_valid_rating' => 'يرجى تقديم تقييم صحيح (1-5).',
|
|
'error_saving_rating' => 'حدث خطأ أثناء حفظ التقييم. يرجى المحاولة مرة أخرى.',
|
|
'optional' => 'اختياري',
|
|
'ratings' => 'التقييمات',
|
|
'staff_rating' => 'تقييم الموظفين',
|
|
'service_rating' => 'تقييم الخدمة',
|
|
'branch_links' => 'روابط الفروع',
|
|
'copy_link' => 'نسخ الرابط',
|
|
'print_qr' => 'طباعة QR',
|
|
'link_copied' => 'تم النسخ!',
|
|
'rating' => 'التقييم',
|
|
'comment' => 'تعليق',
|
|
'rating_type' => 'النوع',
|
|
'staff' => 'موظف',
|
|
'rate_us' => 'قيمنا',
|
|
'rate_staff' => 'تقييم الموظفين',
|
|
'rate_services' => 'تقييم خدماتنا',
|
|
'clear_ratings' => 'مسح التقييمات',
|
|
'confirm_clear_ratings' => 'هل أنت متأكد من مسح جميع التقييمات؟',
|
|
'ratings_cleared' => 'تم مسح جميع التقييمات بنجاح.',
|
|
'error_clearing_ratings' => 'حدث خطأ أثناء مسح التقييمات.',
|
|
'service' => 'خدمة',
|
|
'average_rating' => 'متوسط التقييم',
|
|
'total_ratings' => 'إجمالي التقييمات',
|
|
'submit_rating' => 'إرسال التقييم',
|
|
'rating_submitted' => 'شكرًا لك! تم إرسال تقييمك.',
|
|
'dashboard' => 'لوحة القيادة',
|
|
'pos' => 'نقطة البيع',
|
|
'orders' => 'الطلبات',
|
|
'customers' => 'العملاء',
|
|
'items' => 'الأصناف',
|
|
'services' => 'الخدمات',
|
|
'branches' => 'الفروع',
|
|
'users' => 'المستخدمين',
|
|
'settings' => 'الإعدادات',
|
|
'smtp_settings' => 'إعدادات SMTP',
|
|
'smtp_host' => 'خادم SMTP',
|
|
'smtp_port' => 'منفذ SMTP',
|
|
'smtp_user' => 'اسم مستخدم SMTP',
|
|
'smtp_pass' => 'كلمة مرور SMTP',
|
|
'smtp_secure' => 'تشفير SMTP (tls/ssl)',
|
|
'whatsapp_settings' => 'إعدادات الواتساب',
|
|
'whatsapp_enabled' => 'تفعيل الواتساب',
|
|
'wablas_token' => 'رمز API Wablas',
|
|
'wablas_server' => 'رابط خادم Wablas',
|
|
'wablas_security_key' => 'مفتاح الأمان Wablas',
|
|
'msg_order_created_ar' => 'رسالة إنشاء الطلب (بالعربية)',
|
|
'msg_order_ready_ar' => 'رسالة الطلب جاهز (بالعربية)',
|
|
'msg_payment_ar' => 'رسالة استلام الدفعة (بالعربية)',
|
|
'messages_enabled' => 'الرسائل مفعلة',
|
|
'messages_disabled' => 'الرسائل معطلة',
|
|
'logout' => 'تسجيل الخروج',
|
|
'login' => 'تسجيل الدخول',
|
|
'username' => 'اسم المستخدم',
|
|
'password' => 'كلمة المرور',
|
|
'confirm_password' => 'تأكيد كلمة المرور',
|
|
'change_password' => 'تغيير كلمة المرور',
|
|
'submit' => 'إرسال',
|
|
'save' => 'حفظ',
|
|
'save_changes' => 'حفظ التغييرات',
|
|
'cancel' => 'إلغاء',
|
|
'add_new' => 'إضافة جديد',
|
|
'edit' => 'تعديل',
|
|
'delete' => 'حذف',
|
|
'actions' => 'إجراءات',
|
|
'search' => 'بحث',
|
|
'total' => 'الإجمالي',
|
|
'status' => 'الحالة',
|
|
'date' => 'التاريخ',
|
|
'phone' => 'الهاتف',
|
|
'name' => 'الاسم',
|
|
'name_en' => 'الاسم (EN)',
|
|
'name_ar' => 'الاسم (AR)',
|
|
'price' => 'السعر',
|
|
'quantity' => 'الكمية',
|
|
'subtotal' => 'المجموع الفرعي',
|
|
'vat' => 'ضريبة القيمة المضافة',
|
|
'vat_total' => 'إجمالي الضريبة',
|
|
'payment_status' => 'حالة الدفع',
|
|
'received' => 'تم الاستلام',
|
|
'processing' => 'قيد المعالجة',
|
|
'ready' => 'جاهز',
|
|
'delivered' => 'تم التسليم',
|
|
'cancelled' => 'ملغي',
|
|
'unpaid' => 'غير مدفوع',
|
|
'partially_paid' => 'مدفوع جزئياً',
|
|
'paid' => 'مدفوع',
|
|
'cash' => 'نقد',
|
|
'card' => 'بطاقة',
|
|
'transfer' => 'تحويل',
|
|
'new_order' => 'طلب جديد',
|
|
'order_details' => 'تفاصيل الطلب',
|
|
'customer_name' => 'اسم العميل',
|
|
'select_customer' => 'اختر العميل',
|
|
'add_item' => 'إضافة صنف',
|
|
'edit_item' => 'تعديل صنف',
|
|
'delete_item' => 'حذف صنف',
|
|
'select_item' => 'اختر الصنف',
|
|
'select_service' => 'اختر الخدمة',
|
|
'checkout' => 'إتمام الطلب',
|
|
'back_to_pos' => 'العودة لنقطة البيع',
|
|
'language' => 'اللغة',
|
|
'arabic' => 'العربية',
|
|
'english' => 'الإنجليزية',
|
|
'branch' => 'الفرع',
|
|
'all_branches' => 'جميع الفروع',
|
|
'category' => 'الفئة',
|
|
'categories' => 'الفئات',
|
|
'add_category' => 'إضافة فئة',
|
|
'edit_category' => 'تعديل فئة',
|
|
'delete_category' => 'حذف فئة',
|
|
'categories_management' => 'إدارة الفئات',
|
|
'add_new_category' => 'إضافة فئة جديدة',
|
|
'select_category' => 'اختر الفئة',
|
|
'all' => 'الكل',
|
|
'variant' => 'النوع',
|
|
'variants' => 'الأنواع',
|
|
'add_variant' => 'إضافة نوع',
|
|
'select_variant' => 'اختر النوع',
|
|
'variant_name_en' => 'اسم النوع (EN)',
|
|
'variant_name_ar' => 'اسم النوع (AR)',
|
|
'default' => 'افتراضي',
|
|
'vat_percent' => 'نسبة الضريبة %',
|
|
'image_url' => 'رابط الصورة',
|
|
'items_management' => 'إدارة الأصناف',
|
|
'variants_prices' => 'الأنواع والأسعار',
|
|
'no_items_found' => 'لا يوجد أصناف',
|
|
'pricing_management' => 'إدارة الأسعار',
|
|
'are_you_sure' => 'هل أنت متأكد؟',
|
|
'company_profile' => 'الإعدادات',
|
|
'user_profile' => 'ملف المستخدم',
|
|
'logo' => 'الشعار',
|
|
'favicon' => 'أيقونة الموقع',
|
|
'email' => 'البريد الإلكتروني',
|
|
'address_en' => 'العنوان (EN)',
|
|
'address_ar' => 'العنوان (AR)',
|
|
'vat_number' => 'الرقم الضريبي',
|
|
'profile_picture' => 'الصورة الشخصية',
|
|
'full_name_en' => 'الاسم الكامل (EN)',
|
|
'full_name_ar' => 'الاسم الكامل (AR)',
|
|
'update_profile' => 'تحديث الملف الشخصي',
|
|
'success_update' => 'تم التحديث بنجاح!',
|
|
'error_update' => 'خطأ في التحديث!',
|
|
'print' => 'طباعة',
|
|
'print_invoice' => 'طباعة الفاتورة',
|
|
'print_receipt' => 'طباعة الإيصال',
|
|
'thermal_receipt' => 'إيصال حراري',
|
|
'order' => 'الطلب',
|
|
'customer' => 'العميل',
|
|
'qty' => 'الكمية',
|
|
'close' => 'إإغلاق',
|
|
'payments' => 'المدفوعات',
|
|
'no_payments' => 'لا يوجد مدفوعات',
|
|
'update_status' => 'تحديث الحالة',
|
|
'update' => 'تحديث',
|
|
'remaining_amount' => 'المبلغ المتبقي',
|
|
'add_payment' => 'إإضافة دفعة',
|
|
'payment_method' => 'طريقة الدفع',
|
|
'customer_details' => 'تفاصيل العميل',
|
|
'order_date' => 'تاريخ الطلب',
|
|
'method' => 'الطريقة',
|
|
'amount' => 'المبلغ',
|
|
'currency' => 'ر.ع.',
|
|
'ctr_no' => 'رقم السجل التجاري',
|
|
'vat_no' => 'الرقم الضريبي',
|
|
'add_new_user' => 'إضافة مستخدم جديد',
|
|
'role' => 'الدور',
|
|
'add_user' => 'إضافة مستخدم',
|
|
'lab' => 'وحدة المختبر',
|
|
'outlet' => 'المنفذ',
|
|
'view_items' => 'عرض الأصناف',
|
|
'initial_letters' => 'الحروف الأولى (3 حروف)',
|
|
'from_date' => 'من تاريخ',
|
|
'to_date' => 'إلى تاريخ',
|
|
'order_no' => 'رقم الطلب',
|
|
'all_status' => 'جميع الحالات',
|
|
'all_payments' => 'جميع المدفوعات',
|
|
'search_placeholder' => 'بحث بالهاتف، رقم الطلب، الاسم...',
|
|
'previous' => 'السابق',
|
|
'next' => 'التالي',
|
|
'page' => 'صفحة',
|
|
'of' => 'من',
|
|
'Access Denied' => 'تم رفض الوصول',
|
|
'active_orders' => 'الطلبات النشطة',
|
|
'add_branch' => 'إضافة فرع',
|
|
'add_new_branch' => 'إضافة فرع جديد',
|
|
'add_new_customer' => 'إضافة عميل جديد',
|
|
'add_new_service' => 'إضافة خدمة جديدة',
|
|
'company' => 'الشركة',
|
|
'customers_list' => 'قائمة العملاء',
|
|
'edit_service' => 'تعديل خدمة',
|
|
'exactly_3_letters' => '3 أحرف بالضبط',
|
|
'image' => 'صورة',
|
|
'item' => 'صنف',
|
|
'manage_orders_across_outlets' => 'إدارة الطلبات عبر المنافذ',
|
|
'new_customers' => 'عملاء جدد',
|
|
'no_orders_found' => 'لا يوجد طلبات',
|
|
'order_number' => 'رقم الطلب',
|
|
'orders_list' => 'قائمة الطلبات',
|
|
'pricing_services' => 'الأسعار والخدمات',
|
|
'quick_actions' => 'إجراءات سريعة',
|
|
'ready_orders' => 'طلبات جاهزة',
|
|
'recent_orders' => 'آخر الطلبات',
|
|
'reports' => 'التقارير',
|
|
'rate_us' => 'قيمنا',
|
|
'rate_staff' => 'تقييم الموظفين',
|
|
'rate_services' => 'تقييم خدماتنا',
|
|
'clear_ratings' => 'مسح التقييمات',
|
|
'confirm_clear_ratings' => 'هل أنت متأكد من مسح جميع التقييمات؟',
|
|
'ratings_cleared' => 'تم مسح جميع التقييمات بنجاح.',
|
|
'error_clearing_ratings' => 'حدث خطأ أثناء مسح التقييمات.',
|
|
'service' => 'خدمة',
|
|
'service_pricing' => 'أسعار الخدمات',
|
|
'services_management' => 'إدارة الخدمات',
|
|
'today_revenue' => 'إيرادات اليوم',
|
|
'view' => 'عرض',
|
|
'generate_report' => 'إنشاء تقرير',
|
|
'total_revenue' => 'إجمالي الإيرادات',
|
|
'total_orders' => 'إجمالي الطلبات',
|
|
'average_order_value' => 'متوسط قيمة الطلب',
|
|
'revenue_by_outlet' => 'الإيرادات حسب المنفذ',
|
|
'revenue_by_cashier' => 'الإيرادات حسب الكاشير',
|
|
'orders_by_status' => 'الطلبات حسب الحالة',
|
|
'top_items' => 'أفضل الأصناف',
|
|
'top_services' => 'أفضل الخدمات',
|
|
'cashier' => 'الكاشير',
|
|
'revenue_by_payment_method' => 'الإيرادات حسب طريقة الدفع',
|
|
'print_report' => 'طباعة التقرير',
|
|
'revenue_last_7_days' => 'الإيرادات (آخر 7 أيام)',
|
|
'date_range' => 'نطاق التاريخ',
|
|
'edit_user' => 'تعديل مستخدم',
|
|
'confirm_delete_user' => 'هل أنت متأكد من حذف هذا المستخدم؟',
|
|
'leave_blank_to_keep_current' => 'اتركه فارغاً للاحتفاظ بكلمة المرور الحالية',
|
|
'permissions' => 'الصلاحيات',
|
|
'user_permissions' => 'صلاحيات المستخدم',
|
|
'orders_per_month' => 'الطلبات شهرياً',
|
|
'customer_statement' => 'كشف حساب عميل',
|
|
'statement' => 'كشف حساب',
|
|
'debit' => 'مدين',
|
|
'credit' => 'دائن',
|
|
'balance' => 'الرصيد',
|
|
'total_debit' => 'إجمالي المدين',
|
|
'total_credit' => 'إجمالي الدائن',
|
|
'opening_balance' => 'الرصيد الافتتاحي',
|
|
'closing_balance' => 'الرصيد الختامي',
|
|
'transaction_type' => 'نوع المعاملة',
|
|
'description' => 'الوصف',
|
|
'customer_added' => 'تم إضافة العميل بنجاح',
|
|
'customer_updated' => 'تم تحديث العميل بنجاح',
|
|
'customer_deleted' => 'تم حذف العميل بنجاح',
|
|
'customer_has_orders' => 'لا يمكن حذف العميل لوجود طلبات مرتبطة به',
|
|
'loyalty_settings' => 'إعدادات نظام الولاء',
|
|
'loyalty_enabled' => 'تفعيل نظام الولاء',
|
|
'loyalty_points_per_currency' => 'النقاط المكتسبة لكل ريال عماني يتم إنفاقه',
|
|
'loyalty_currency_per_point' => 'قيمة النقطة الواحدة (مبلغ الخصم)',
|
|
'loyalty_points' => 'نقاط الولاء',
|
|
'points_adjusted' => 'تم تعديل النقاط بنجاح',
|
|
'loyalty' => 'نقاط الولاء',
|
|
'loyalty_discount' => 'خصم الولاء',
|
|
'final_total' => 'الإجمالي النهائي',
|
|
'set_prices_for' => 'تحديد الأسعار لـ',
|
|
'prices_saved_automatically' => 'يتم حفظ الأسعار تلقائياً',
|
|
'done' => 'تم',
|
|
'uncategorized' => 'غير مصنف',
|
|
'manage_items_categories_services' => 'إدارة الأصناف والفئات والخدمات',
|
|
'manage_categories' => 'إدارة الفئات',
|
|
'search_items' => 'بحث عن أصناف',
|
|
'filter' => 'تصفية',
|
|
'all_categories' => 'جميع الفئات',
|
|
'upload_image' => 'رفع صورة',
|
|
'confirm_delete' => 'هل أنت متأكد من الحذف؟',
|
|
]
|
|
];
|
|
|
|
function __($key) {
|
|
global $translations, $lang;
|
|
return $translations[$lang][$key] ?? $key;
|
|
}
|
|
|
|
function is_rtl() {
|
|
global $lang;
|
|
return $lang === 'ar';
|
|
}
|
|
|
|
function is_arabic() {
|
|
global $lang;
|
|
return $lang === 'ar';
|
|
}
|
|
|
|
function currency() {
|
|
return __('currency');
|
|
}
|
|
|
|
function decimals() {
|
|
return 3;
|
|
}
|
|
|
|
function format_amount($amount) {
|
|
return number_format((float)$amount, decimals()) . ' ' . currency();
|
|
}
|
|
|
|
function lang_url($new_lang) {
|
|
$params = $_GET;
|
|
$params['lang'] = $new_lang;
|
|
return '?' . http_build_query($params);
|
|
}
|
|
|
|
function branch_url($new_branch_id) {
|
|
$params = $_GET;
|
|
$params['switch_branch'] = $new_branch_id;
|
|
return '?' . http_build_query($params);
|
|
} |