<?php // templates/backend_header.php ?>
<nav class="app-header navbar navbar-expand shadow-sm" data-bs-theme="dark">
  <div class="container-fluid">
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-lte-toggle="sidebar" href="#" role="button" style="color:#ffffff;">
          <i class="bi bi-list"></i>
        </a>
      </li>
      <li class="nav-item d-none d-md-block">
        <a href="/projects/kkv1/ehongmd/ehongmd/main.php" class="nav-link" style="color:#ffffff;">
          <i class="bi bi-speedometer"></i> Dashboard
        </a>
      </li>
      <li class="nav-item d-none d-md-block">
        <a href="#" class="nav-link" style="color:#ffffff;">
          <i class="bi bi-calendar4-week"></i> วันที่ <?= htmlspecialchars($currentDate ?? '') ?>
        </a>
      </li>
    </ul>
    <ul class="navbar-nav ms-auto">
      <li class="nav-item dropdown user-menu">
        <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" style="color:#ffffff;">
          <span class="d-none d-md-inline">
            <i class="bi bi-person-circle"></i>
            <?= htmlspecialchars($user['UserName'] ?? '') ?> : <?= htmlspecialchars($user['FullName'] ?? '') ?>
          </span>
        </a>
      </li>
      <li class="nav-item">
        <a href="/projects/kkv1/api.php?action=logout" class="nav-link">
          <b style="color:#ffffff;"><i class="bi bi-box-arrow-right"></i> ออกจากระบบ</b>
        </a>
      </li>
    </ul>
  </div>
</nav>
