<ul class="sidebar-nav" id="sidebar-nav">

    <li class="nav-item">
        <a class="nav-link {{ request()->routeIs('admindash') ? '' : 'collapsed' }}" href="{{ route('admindash') }}">
            <i class="bi bi-grid"></i>
            <span>Dashboard</span>
        </a>
    </li><!-- End Dashboard Nav -->

    <li class="nav-heading">Pages</li>

    {{-- <li class="nav-item">
        <a class="nav-link {{ request()->routeIs('dataadmin') ? '' : 'collapsed' }}" href="{{ route('dataadmin') }}">
            <i class="ri-admin-line"></i>
            <span>Admin</span>
        </a>
    </li> --}}

    
    {{-- <li class="nav-item">
        <a class="nav-link" data-bs-target="#users-nav" data-bs-toggle="collapse" href="#">
            <i class="bi bi-layout-text-window-reverse"></i><span>User</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="users-nav" class="nav-content collapse show" data-bs-parent="#sidebar-nav">
            <li>
                <a class="nav-link {{ request()->routeIs('role') ? 'active' : '' }}" href="{{ route('role') }}">
                    <i class="bi bi-circle"></i>
                    <span>Role</span>
                </a>
            </li>
            <li>
                <a class="nav-link {{ request()->routeIs('datauser') ? 'active' : '' }}" href="{{ route('datauser') }}">
                    <i class="ri-admin-line"></i>
                    <span>User</span>
                </a>
            </li>
        </ul>
    </li> --}}

    <li class="nav-item">
      <a class="nav-link {{ request()->routeIs(['tables-general', 'tables-data']) ? '' : 'collapsed' }}" data-bs-target="#users-nav" data-bs-toggle="collapse" href="#">
        <i class="ri-admin-line"></i><span>User</span><i class="bi bi-chevron-down ms-auto"></i>
      </a>
      <ul id="users-nav" class="nav-content collapse {{ request()->routeIs(['tables-general', 'tables-data']) ? 'show' : '' }}" data-bs-parent="#sidebar-nav">
        <li>
          <a class="nav-link {{ request()->routeIs('role') ? '' : 'collapsed' }}" href="{{ route('role') }}">
              <i class="ri-store-2-line"></i>
              <span>Role</span>
          </a>
        </li>
        <li>
          <a class="nav-link {{ request()->routeIs('datauser') ? '' : 'collapsed' }}" href="{{ route('datauser') }}">
              <i class="ri-store-2-line"></i>
              <span>User</span>
          </a>
        </li>
      </ul>
  </li>

    <li class="nav-item">
        <a class="nav-link {{ request()->routeIs(['tables-general', 'tables-data']) ? '' : 'collapsed' }}" data-bs-target="#foods-nav" data-bs-toggle="collapse" href="#">
          <i class="bi bi-layout-text-window-reverse"></i><span>Data Makanan</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="foods-nav" class="nav-content collapse {{ request()->routeIs(['tables-general', 'tables-data']) ? 'show' : '' }}" data-bs-parent="#sidebar-nav">
          <li>
            <a class="nav-link {{ request()->routeIs('kategori') ? '' : 'collapsed' }}" href="{{ route('kategori') }}">
                <i class="ri-store-2-line"></i>
                <span>kategori</span>
            </a>
          </li>
          <li>
            <a class="nav-link {{ request()->routeIs('makanan') ? '' : 'collapsed' }}" href="{{ route('makanan') }}">
                <i class="ri-store-2-line"></i>
                <span>Data Makanan</span>
            </a>
          </li>
        </ul>
    </li>

    <li class="nav-item">
        <a class="nav-link {{ request()->routeIs('kriteria') ? '' : 'collapsed' }}" href="{{ route('kriteria') }}">
            <i class="ri-file-text-line"></i>
            <span>Kriteria</span>
        </a>
    </li><!-- End Profile Page Nav -->

    <li class="nav-item">
        <a class="nav-link {{ request()->routeIs('alternatif') ? '' : 'collapsed' }}" href="{{ route('alternatif') }}">
            <i class="ri-file-text-fill"></i>
            <span>Alternatif</span>
        </a>
    </li><!-- End Profile Page Nav -->

    <li class="nav-item">
        <a class="nav-link {{ request()->routeIs(['tables-general', 'tables-data']) ? '' : 'collapsed' }}" data-bs-target="#pers-nav" data-bs-toggle="collapse" href="#">
          <i class="bi bi-layout-text-window-reverse"></i><span>Perhitungan</span><i class="bi bi-chevron-down ms-auto"></i>
        </a>
        <ul id="pers-nav" class="nav-content collapse {{ request()->routeIs(['tables-general', 'tables-data']) ? 'show' : '' }}" data-bs-parent="#sidebar-nav">
          <li>
            <a href="tables-general.html" class="{{ request()->routeIs('tables-general') ? 'active' : '' }}">
              <i class="bi bi-circle"></i><span>Input Nilai</span>
            </a>
          </li>
          <li>
            <a href="tables-data.html" class="{{ request()->routeIs('tables-data') ? 'active' : '' }}">
              <i class="bi bi-circle"></i><span>Hasil</span>
            </a>
          </li>
        </ul>
    </li><!-- End Tables Nav -->

</ul>
