<!-- top start -->
<nav class="navbar navbar-expand-lg">
  <div class="container-fluid">
    <nav class="nav"><a class="navbar-brand" href="#">사용자페이지</a></nav>
    <ul class="nav justify-content-center">
      <li class="nav-item">
        <?= ICONS['LOCK'] ?>
      </li>

    </ul>
    <ul class="nav justify-content-end">
      <li class="nav-item">
        <?php if ($viewDatas['authContext']->isLoggedIn()): ?>
          <div class="btn-group">
            <button type="button" class="btn btn-outline-primary dropdown-toggle" data-bs-toggle="dropdown"
              aria-expanded="false">
              <b><?= ICONS['LOGIN'] . $viewDatas['authContext']->getName() ?></b>
            </button>
            <ul class="dropdown-menu dropdown-menu-end">
              <li><?= form_label(
                ICONS['SETUP'] . "정보수정",
                "modify",
                [
                  "class" => "dropdown-item form-label-sm",
                  "data-src" => "/admin/user/profile/" . $viewDatas['authContext']->getUID(),
                  "data-bs-toggle" => "modal",
                  "data-bs-target" => "#modal_action_form"
                ]
              ) ?></li>
              <li>
                <hr class="dropdown-divider">
              </li>
              <li><a class="dropdown-item" href="<?= URLS['LOGOUT'] ?>"><?= ICONS['LOGOUT'] ?>Logout</a></li>
            </ul>
          </div>
        <?php else: ?>
          <a class="nav-link dropdown-toggle" href="<?= URLS['LOGIN'] ?>" role="button"><?= ICONS['LOGIN'] ?>Login</a>
        <?php endif ?>
      </li>
    </ul>
  </div>
</nav>