<?php // templates/backend_menu.php ?>
<aside class="app-sidebar shadow-lg" data-bs-theme="dark">
  <!--begin::Sidebar Brand-->
  <div class="sidebar-brand">
    <a href="/projects/kkv1/ehongmd/ehongmd/main.php" class="brand-link" style="padding-left:5px;">
      <img src="/projects/kkv1/ehongmd/images/logoEHMD.png" alt="รายงาน" class="brand-image shadow" style="opacity:1;margin-left:0;" />
      <span class="brand-text fw-bold text-white" style="color:#ffffff!important;margin-left:5px;">ระบบงาน EHONG MD</span>
    </a>
  </div>
  <!--end::Sidebar Brand-->
  <div class="sidebar-wrapper">
    <nav class="mt-2">
      <ul class="nav sidebar-menu flex-column" data-lte-toggle="treeview" role="navigation" aria-label="Main navigation" data-accordion="false" id="navigation">

        <li class="nav-header">หน้าหลัก</li>
        <li class="nav-item">
          <a href="/projects/kkv1/ehongmd/ehongmd/main.php"
             class="nav-link <?= ($currentPage ?? '') === 'main' ? 'active' : '' ?>">
            <i class="bi bi-speedometer"></i><p>Dashboard</p>
          </a>
        </li>

        <li class="nav-header">ระบบงาน</li>
        <li class="nav-item <?= ($menuArea ?? '') === 'main_1' ? 'menu-open' : '' ?>">
          <a href="#" class="nav-link <?= ($menuArea ?? '') === 'main_1' ? 'active' : '' ?>">
            <i class="nav-icon bi bi-box-arrow-in-right"></i>
            <p>ระบบเช่าสถานที่<i class="nav-arrow bi bi-chevron-right"></i></p>
          </a>
          <ul class="nav nav-treeview">
            <li class="nav-item">
              <a href="/projects/kkv1/ehongmd/ehongmd/main_1/index.php"
                 class="nav-link <?= ($fullPage ?? '') === 'main_1/index' ? 'active' : '' ?>">
                <i class="nav-icon bi bi-circle"></i><p>รายงาน</p>
              </a>
            </li>
            <li class="nav-item">
              <a href="/projects/kkv1/ehongmd/ehongmd/main_1/index_2.php"
                 class="nav-link <?= ($fullPage ?? '') === 'main_1/index_2' ? 'active' : '' ?>">
                <i class="nav-icon bi bi-circle"></i><p>จัดการ สถานที่</p>
              </a>
            </li>
            <li class="nav-item">
              <a href="/projects/kkv1/ehongmd/ehongmd/main_1/index_3.php"
                 class="nav-link <?= ($fullPage ?? '') === 'main_1/index_3' ? 'active' : '' ?>">
                <i class="nav-icon bi bi-circle"></i><p>จัดการการจ่ายค่าเช่า</p>
              </a>
            </li>
          </ul>
        </li>

      </ul>
    </nav>
  </div>
</aside>
