<?php /** @var array $nav_items */ /** @var string $active_page */ ?>
<div class="card border-0 shadow-sm rounded-4">
  <div class="card-header bg-white border-0 p-3 fw-semibold">صفحات موديول الطباعة</div>
  <div class="list-group list-group-flush rounded-bottom-4 overflow-hidden">
    <a href="<?= e(url('/admin/print-settings')) ?>" class="list-group-item list-group-item-action d-flex align-items-center gap-2<?= ($active_page ?? '') === 'index' ? ' active' : '' ?>"><i class="fa-solid fa-table-cells-large"></i><span>نظرة عامة</span></a>
    <?php foreach ($nav_items as $key => $item): ?>
      <a href="<?= e(url($item['route'])) ?>" class="list-group-item list-group-item-action d-flex align-items-center gap-2<?= ($active_page ?? '') === $key ? ' active' : '' ?>">
        <i class="fa-solid <?= e((string)$item['icon']) ?>"></i>
        <span><?= e((string)$item['label']) ?></span>
      </a>
    <?php endforeach; ?>
  </div>
</div>
