Autosave: 20260420-054952

This commit is contained in:
Flatlogic Bot 2026-04-20 05:49:43 +00:00
parent 21027ba93c
commit 7c04f1dfef

View File

@ -1,6 +1,6 @@
<?php <?php
require_once __DIR__ . '/includes/app.php'; require_once __DIR__ . '/includes/app.php';
$user = current_user(); $user = require_auth();
$pageTitle = tr('لوحة التحكم', 'Dashboard'); $pageTitle = tr('لوحة التحكم', 'Dashboard');
$activeNav = 'dashboard'; $activeNav = 'dashboard';
$dbError = null; $dbError = null;
@ -43,15 +43,6 @@ if (isset($reportMetrics['monthly_totals'])) {
require __DIR__ . '/includes/header.php'; require __DIR__ . '/includes/header.php';
?> ?>
<?php if (!$user): ?>
<div class="alert alert-info border mb-4 d-flex align-items-center justify-content-between">
<div>
<h5 class="alert-heading mb-1"><i class="bi bi-info-circle me-2"></i><?= h(tr('نسخة استعراضية عامة', 'Public preview mode')) ?></h5>
<p class="mb-0 small"><?= h(tr('يمكنك معاينة الهيكل والتصميم الآن، ثم تسجيل الدخول لتجربة سير العمل الكامل.', 'You can preview the structure and design now, then sign in to try the full workflow.')) ?></p>
</div>
<a class="btn btn-primary" href="<?= h(url_for('login.php')) ?>"><?= h(tr('فتح تسجيل الدخول', 'Open sign in')) ?></a>
</div>
<?php endif; ?>
<?php if ($dbError): ?> <?php if ($dbError): ?>
<div class="alert alert-danger mb-4"><i class="bi bi-exclamation-triangle me-2"></i><?= h(tr('تعذر تحميل بيانات قاعدة البيانات حالياً:', 'Database data could not be loaded right now:')) ?> <?= h($dbError) ?></div> <div class="alert alert-danger mb-4"><i class="bi bi-exclamation-triangle me-2"></i><?= h(tr('تعذر تحميل بيانات قاعدة البيانات حالياً:', 'Database data could not be loaded right now:')) ?> <?= h($dbError) ?></div>