[ 'dashboard' => 'Dashboard', 'inventory' => 'Inventory', 'items' => 'Items', 'categories' => 'Categories', 'units' => 'Units', 'crm' => 'CRM', 'customers' => 'Customers', 'suppliers' => 'Suppliers', 'sales' => 'Sales', 'pos' => 'POS', 'sales_returns' => 'Sales Returns', 'purchases' => 'Purchases', 'purchase_returns' => 'Purchase Returns', 'quotations' => 'Quotations', 'expenses' => 'Expenses', 'expense_categories' => 'Expense Categories', 'accounting' => 'Accounting', 'trial_balance' => 'Trial Balance', 'profit_loss' => 'Profit & Loss', 'balance_sheet' => 'Balance Sheet', 'vat_report' => 'VAT Report', 'hr' => 'Human Resources', 'departments' => 'Departments', 'employees' => 'Employees', 'attendance' => 'Attendance', 'payroll' => 'Payroll', 'reports' => 'Reports', 'customer_statement' => 'Customer Statement', 'supplier_statement' => 'Supplier Statement', 'cashflow_report' => 'Cashflow Report', 'expiry_report' => 'Expiry Report', 'low_stock_report' => 'Low Stock Report', 'loyalty_history' => 'Loyalty History', 'management' => 'Management', 'payment_methods' => 'Payment Methods', 'devices' => 'Devices', 'settings' => 'Settings', 'admin' => 'Administration', 'role_groups' => 'Role Groups', 'users' => 'Users', 'cash_registers' => 'Cash Registers', 'register_sessions' => 'Register Sessions', 'scale_devices' => 'Scale Devices', 'customer_display' => 'Customer Display', 'backups' => 'Backups', 'logout' => 'Logout', 'welcome_back' => 'Welcome Back', 'sign_in' => 'Sign In', 'username' => 'Username', 'password' => 'Password', 'activate_product' => 'Activate Product', 'serial_key' => 'Serial Key', 'activate_now' => 'Activate Now', 'search' => 'Search', 'add_new' => 'Add New', 'actions' => 'Actions', 'edit' => 'Edit', 'delete' => 'Delete', 'save' => 'Save', 'cancel' => 'Cancel', 'total_sales' => 'Total Sales', 'total_received' => 'Total Received', 'customer_due' => 'Customer Due', 'total_purchases' => 'Total Purchases', 'total_paid' => 'Total Paid', 'supplier_due' => 'Supplier Due', 'total_customers' => 'Total Customers', 'low_stock_items' => 'Low Stock Items', 'expired_items' => 'Expired Items', 'near_expiry_items' => 'Near Expiry Items', 'tax_invoice' => 'Tax Invoice', 'invoice_no' => 'Invoice No', 'date' => 'Date', 'customer' => 'Customer', 'item' => 'Item', 'qty' => 'Qty', 'price' => 'Price', 'subtotal' => 'Subtotal', 'discount' => 'Discount', 'total' => 'Total', 'loyalty' => 'Loyalty', 'payments' => 'Payments', 'thank_you' => 'Thank you for your business!', 'keep_receipt' => 'Please keep the receipt.', 'tel' => 'Tel', 'vat_no' => 'VAT No', 'walk_in_customer' => 'Walk-in Customer', 'currency' => 'ر.ع / OMR', 'cash' => 'Cash', 'card' => 'Credit Card', 'credit' => 'Credit', ], 'ar' => [ 'dashboard' => 'لوحة القيادة', 'inventory' => 'المخزون', 'items' => 'الأصناف', 'categories' => 'الفئات', 'units' => 'الوحدات', 'crm' => 'العملاء والموردين', 'customers' => 'العملاء', 'suppliers' => 'الموردين', 'sales' => 'المبيعات', 'pos' => 'نقطة البيع', 'sales_returns' => 'مرتجعات المبيعات', 'purchases' => 'المشتريات', 'purchase_returns' => 'مرتجعات المشتريات', 'quotations' => 'عروض الأسعار', 'expenses' => 'المصاريف', 'expense_categories' => 'فئات المصاريف', 'accounting' => 'المحاسبة', 'trial_balance' => 'ميزان المراجعة', 'profit_loss' => 'الأرباح والخسائر', 'balance_sheet' => 'الميزانية العمومية', 'vat_report' => 'تقرير ضريبة القيمة المضافة', 'hr' => 'الموارد البشرية', 'departments' => 'الأقسام', 'employees' => 'الموظفين', 'attendance' => 'الحضور', 'payroll' => 'الرواتب', 'reports' => 'التقارير', 'customer_statement' => 'كشف حساب عميل', 'supplier_statement' => 'كشف حساب مورد', 'cashflow_report' => 'تقرير التدفق النقدي', 'expiry_report' => 'تقرير الصلاحية', 'low_stock_report' => 'تقرير انخفاض المخزون', 'loyalty_history' => 'سجل الولاء', 'management' => 'الإدارة', 'payment_methods' => 'طرق الدفع', 'devices' => 'الأجهزة', 'settings' => 'الإعدادات', 'admin' => 'الإدارة العامة', 'role_groups' => 'مجموعات الأدوار', 'users' => 'المستخدمين', 'cash_registers' => 'صناديق الكاشير', 'register_sessions' => 'جلسات الكاشير', 'scale_devices' => 'أجهزة الميزان', 'customer_display' => 'شاشة العميل', 'backups' => 'النسخ الاحتياطي', 'logout' => 'تسجيل الخروج', 'welcome_back' => 'مرحباً بعودتك', 'sign_in' => 'تسجيل الدخول', 'username' => 'اسم المستخدم', 'password' => 'كلمة المرور', 'activate_product' => 'تنشيط المنتج', 'serial_key' => 'مفتاح التسلسل', 'activate_now' => 'تنشيط الآن', 'search' => 'بحث', 'add_new' => 'إضافة جديد', 'actions' => 'إجراءات', 'edit' => 'تعديل', 'delete' => 'حذف', 'save' => 'حفظ', 'cancel' => 'إلغاء', 'total_sales' => 'إجمالي المبيعات', 'total_received' => 'إجمالي المحصل', 'customer_due' => 'مستحقات العملاء', 'total_purchases' => 'إجمالي المشتريات', 'total_paid' => 'إجمالي المدفوع', 'supplier_due' => 'مستحقات الموردين', 'total_customers' => 'إجمالي العملاء', 'low_stock_items' => 'نواقص المخزون', 'expired_items' => 'أصناف منتهية الصلاحية', 'near_expiry_items' => 'أصناف قريبة الانتهاء', 'tax_invoice' => 'فاتورة ضريبية', 'invoice_no' => 'رقم الفاتورة', 'date' => 'التاريخ', 'customer' => 'العميل', 'item' => 'البند', 'qty' => 'الكمية', 'price' => 'السعر', 'subtotal' => 'المجموع الفرعي', 'discount' => 'خصم', 'total' => 'الإجمالي', 'loyalty' => 'الولاء', 'payments' => 'المدفوعات', 'thank_you' => 'شكراً لتعاملكم معنا!', 'keep_receipt' => 'يرجى الاحتفاظ بالإيصال.', 'tel' => 'هاتف', 'vat_no' => 'الرقم الضريبي', 'walk_in_customer' => 'عميل نقدي', 'currency' => 'ر.ع / OMR', 'cash' => 'نقد', 'card' => 'بطاقة ائتمان', 'credit' => 'آجل', ] ]; function __($key) { global $translations; $lang = $_SESSION['lang'] ?? 'ar'; return $translations[$lang][$key] ?? $translations['en'][$key] ?? $key; }