<!-- top start -->
<nav class="navbar navbar-expand-lg">
  <div class="container-fluid">
    <nav class="nav"><a class="navbar-brand" href="#">DBMS 관리</a></nav>
    <?= form_open("/admin/search", ['method' => 'GET']) ?>
    <ul class="nav justify-content-center">
      <li class="nav-item">
        <input type="text" name="customer" value="" placeholder="고객명검색" id="search_customer" class="form-control" />
      </li>
      <li class="nav-item">
        <button type="submit" class="btn btn-default border border-dark"><?= ICONS['SEARCH'] ?></button>
      </li>
    </ul>
    <?= form_close(); ?>
    <ul class="nav justify-content-end">
      <li class="nav-item">
        <?php if ($viewDatas['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['myAuthName'] ?></b>
            </button>
            <ul class="dropdown-menu dropdown-menu-end">
              <li><?= form_label(
                    ICONS['SETUP'] . "정보수정",
                    "modify",
                    [
                      "class" => "dropdown-item",
                      "data-src" => "/admin/user/profile_modify/" . $viewDatas['myAuthUID'],
                      "data-bs-toggle" => "modal",
                      "data-bs-target" => "#index_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>
<!-- top end -->