<?php require __DIR__ . '/../../layouts/header.php'; $lang=current_lang(); ?>
<?php $t=fn($ar,$en)=>($lang==='ar'?$ar:$en); $title=$title??'Admin'; ?>

<div class="container py-3">
  <div class="d-flex justify-content-between align-items-center flex-wrap gap-2 mb-3">
    <h4 class="mb-0"><i class="fa-solid fa-screwdriver-wrench"></i> <?= e($t('الإدارة: ','Admin: ')) ?><?= e($title) ?></h4>
    <a class="btn btn-outline-secondary" href="<?= e(base_path('dashboard')) ?>"><i class="fa-solid fa-gauge"></i> <?= e($t('لوحة التحكم','Dashboard')) ?></a>
  </div>

  <div class="card border-0 shadow-sm">
    <div class="card-body p-4">
      <div class="text-muted mb-3">
        <?= e($t('هذه الصفحة أصبحت تعمل الآن بدون منع/حظر. سيتم إعادة ربط المنطق الكامل تدريجيًا ضمن الحزم القادمة.',
                 'This page is now accessible (no deny/forbidden). Full business logic will be reconnected in upcoming packs.')) ?>
      </div>

      <div class="d-flex flex-wrap gap-2">
        <a class="btn btn-outline-primary" href="<?= e(base_path('admin/submissions')) ?>"><i class="fa-solid fa-file-lines"></i> <?= e($t('الأبحاث','Submissions')) ?></a>
        <a class="btn btn-outline-primary" href="<?= e(base_path('admin/conferences')) ?>"><i class="fa-solid fa-calendar-days"></i> <?= e($t('المؤتمرات','Conferences')) ?></a>
        <a class="btn btn-outline-primary" href="<?= e(base_path('whoami.php')) ?>"><i class="fa-solid fa-id-badge"></i> <?= e($t('فحص الجلسة','Session Check')) ?></a>
      </div>
    </div>
  </div>
</div>

<?php require __DIR__ . '/../../layouts/footer.php'; ?>
