<?php
declare(strict_types=1);
/** @var string $activeVariant */
/** @var array $portalVariants */
/** @var string $mbName */
/** @var string $levelName */
/** @var string $lgLabel */
/** @var bool $showFontZoom */
$showFontZoom = $showFontZoom ?? true;
?>
<div class="portal-header-utils">
  <?= view('home/_dashboard_gov_portal_variant_nav', ['portalVariants' => $portalVariants, 'activeVariant' => $activeVariant]) ?>
  <span class="user-line"><?= esc($mbName) ?> · <?= esc($levelName) ?> · <?= esc($lgLabel) ?></span>
  <?php if ($showFontZoom): ?>
  <button type="button" class="extend-btn" onclick="alert('세션 연장(목업)')">시간연장</button>
  <div class="font-zoom" title="글자 크기">
    <button type="button" id="fontSmaller" aria-label="글자 작게">−</button>
    <span id="fontZoomLabel">100%</span>
    <button type="button" id="fontLarger" aria-label="글자 크게">+</button>
  </div>
  <?php endif; ?>
  <a href="<?= base_url('dashboard/simple') ?>" class="util-ico" title="기존 요약"><i class="fa-solid fa-table-columns"></i></a>
  <a href="<?= base_url('logout') ?>" class="util-ico" title="로그아웃"><i class="fa-solid fa-right-from-bracket"></i></a>
</div>
