<?php require __DIR__ . '/../layouts/header.php'; $lang=current_lang(); ?>
<?php $c = $conf ?? []; $cid=(int)($c['id']??0); ?>
<div class="container" style="max-width:1150px">
  <div class="d-flex justify-content-between align-items-center mb-3 flex-wrap gap-2">
    <div>
      <h4 class="mb-0"><i class="fa-solid fa-calendar-days me-2"></i><?= e($lang==='ar'?(string)($c['title_ar']??''):(string)($c['title_en']??'')) ?></h4>
      <div class="text-muted small"><?= e($lang==='ar'?'صفحة المؤتمر':'Conference page') ?> #<?= e((string)$cid) ?></div>
    </div>
    <div class="d-flex gap-2 flex-wrap">
      <a class="btn btn-primary btn-rounded" href="<?= e(base_path('submit')) ?>?conference_id=<?= e((string)$cid) ?>"
        <i class="fa-solid fa-file-circle-plus me-2"></i><?= e($lang==='ar'?'إضافة مقال/بحث جديد':'Add new article') ?>
      </a>
    </div>
  </div>

  <div class="card border-0 shadow-sm">
    <div class="card-body">
      <div class="row g-3">
        <div class="col-md-6">
          <div class="text-muted small"><?= e($lang==='ar'?'نبذة':'Brief') ?></div>
          <div style="white-space:pre-wrap"><?= e($lang==='ar'?(string)($c['brief_ar']??''):(string)($c['brief_en']??'')) ?></div>
        </div>
        <div class="col-md-6">
          <div class="text-muted small"><?= e($lang==='ar'?'دعوة للمشاركة':'CFP') ?></div>
          <div style="white-space:pre-wrap"><?= e($lang==='ar'?(string)($c['cfp_ar']??''):(string)($c['cfp_en']??'')) ?></div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php require __DIR__ . '/../layouts/footer.php'; ?>
