


<div id="sidebar">
    <div class="sidebar-header">
        <img style="width: 40%; height:60%;" src="{{ asset('img/logo.jpeg') }}" alt="Logo">
        <h6 class="mt-2"><small>ECOEDUPARK</small></h6>
    </div>
    <ul>
      
        <li class="{{ Request::is('home') ? 'active' : '' }}">
            <a href="{{ route('home') }}">
               
                <i class="fa fa-laptop"></i> Dashboard
            </a>
        </li>

        <li onclick="toggleSubmenu('master-data', this)">
          <i class="fas fa-database"></i> Master Data <i class="fas fa-caret-down float-right"></i>
        </li>
        <ul class="submenu" id="submenu-master-data">
            
            <li><a href="{{ route('location.index') }}"><i class="far fa-circle"></i> Lokasi</a></li>
            <li><a href="{{ route('waste_categories.index') }}"><i class="far fa-circle"></i> Kategori Sampah</a></li>
            <li><a href="{{ route('process_type.index') }}"><i class="far fa-circle"></i> Tipe Proses</a></li>
        </ul>


        <li class="{{ Request::is('eco_tours') ? 'active' : '' }}">
            <a href="{{ route('eco_tours.index') }}">
               
                <i class="fas fa-leaf"></i> Eco Tours
            </a>
        </li>

        <li class="{{ Request::is('waste_transaction') ? 'active' : '' }}">
            <a href="{{ route('waste_transaction.index') }}">
               
                <i class="fas fa-leaf"></i> Transaksi Sampah
            </a>
        </li>

       
      
       <li>
            <a href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                <i class="fas fa-sign-out-alt"></i> Logout
            </a>
            <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                @csrf
            </form>
        </li>
    </ul>
</div>
