0, 'today_revenue' => 0.0, 'pos_count' => 0, 'normal_count' => 0, 'recent' => []]; try { $metrics = dashboard_metrics(); } catch (Throwable $e) { $dbError = $e->getMessage(); } require __DIR__ . '/includes/header.php'; ?>
= h(tr('يمكنك معاينة الهيكل والتصميم الآن، ثم تسجيل الدخول لتجربة سير العمل الكامل.', 'You can preview the structure and design now, then sign in to try the full workflow.')) ?>
= h(tr('ابدأ بأول فاتورة من صفحة نقاط البيع.', 'Start your first receipt from the POS page.')) ?>
= h(tr('إنشاء بيع POS', 'Create POS sale')) ?>= h(current_lang() === 'ar' ? $user['name_ar'] : $user['name_en']) ?>
= h(role_label($user['role'])) ?> - = h(branch_label($user['branch_code'])) ?>= h(tr('جرّب المالك أو مدير الفرع أو الكاشير لرؤية اختلاف الصلاحيات.', 'Try owner, branch manager, or cashier to see different permissions.')) ?>
= h(tr('تسجيل الدخول للبدء', 'Sign in to start')) ?>