<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>
      <li class="nav-item">
        <input type="text" class="form-control" value="<?= $viewDatas['helper']->getPasswordString() ?>" id="makePassword">
      </li>
      <li class="nav-item">
        <button class="btn btn-default border border-dark" type="button" id="totSearchBtn"
          onClick="window.location.reload();"><?= ICONS['SEARCH'] ?></button>
      </li>
      <!-- <li class="nav-item">
        <form class="d-flex me-20" role="search">
          <input class="form-control" type="search" placeholder="Search" aria-label="Search">
          <button class="btn btn-outline-success" type="submit">Search</button>
        </form>
      </li> -->
    </ul>
    <ul class="nav justify-content-end">
      <li class="nav-item">
        <?php if ($viewDatas['session']->get(SESSION_NAMES['ISLOGIN'])): ?>
          <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['session']->get(SESSION_NAMES['AUTH'])['name'] ?></b>
            </button>
            <ul class="dropdown-menu dropdown-menu-end">
              <li><?= anchor("/admin/user/modify/" . $viewDatas['session']->get(SESSION_NAMES['AUTH'])['uid'],  ICONS['SETUP'] . "정보수정", ["class" => "dropdown-item"]) ?></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>