<nav class="head 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="<?= getPasswordString_CommonHelper() ?>" 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'])): ?>
          <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
            <?= ICONS['LOGIN'] ?>   <?= $viewDatas['session']->get(SESSION_NAMES['AUTH'])[AUTH_FIELDS['TITLE']] ?>
          </a>
          <ul class="dropdown-menu dropdown-menu-end">
            <li><a class="dropdown-item"
                href="/front/user/update/<?= $viewDatas['session']->get(SESSION_NAMES['AUTH'])[AUTH_FIELDS['ID']] ?>"><?= ICONS['SETUP'] ?>수정</a>
            </li>
            <li>
              <hr class="dropdown-divider">
            </li>
            <li><a class="dropdown-item" href="<?= URLS['LOGOUT'] ?>"><?= ICONS['LOGOUT'] ?>Logout</a></li>
          </ul>
        <?php else: ?><a class="nav-link dropdown-toggle" href="<?= URLS['LOGIN'] ?>"
            role="button"><?= ICONS['LOGIN'] ?>Login</a><?php endif ?>
      </li>
    </ul>
  </div>
</nav>