resources/views/includes/sidebar-admin.blade.php
<div class="border-right" id="sidebar-wrapper">
    <div class="sidebar-heading text-center">
      <img
        src="/images/dashboard/admin.png"
        alt="Logo Dashboard"
        class="my-4 mt-5"
        style="max-width: 120px"
      />
    </div>
    <div class="list-group list-group-flush">
      <a
        href="{{ route('admin-dashboard') }}"
        class="list-group-item list-group-item-action {{ (request()->is('admin')) ? 'active' : '' }}"
        >Dashboard</a
      >
    </div>
    <div class="list-group list-group-flush">
      <a
        href="{{ route('product.index') }}"
        class="list-group-item list-group-item-action {{ (request()->is('admin/product')) ? 'active' : '' }}"
        >Produk</a
      >
    </div>
    <div class="list-group list-group-flush">
      <a
        href="{{ route('product-gallery.index') }}"
        class="list-group-item list-group-item-action {{ (request()->is('admin/product-gallery*')) ? 'active' : '' }}"
        >Galeri</a
      >
    </div>
    <div class="list-group list-group-flush">
      <a
        href="{{ route('category.index') }}"
        class="list-group-item list-group-item-action {{ (request()->is('admin/category*')) ? 'active' : '' }}"
        >Kategori</a
      >
    </div>
    <div class="list-group list-group-flush">
      <a
        href="{{ route('transaction.index') }}"
        class="list-group-item list-group-item-action {{ (request()->is('admin/transaction*')) ? 'active' : '' }}"
        >Transaksi</a
      >
    </div>
    <div class="list-group list-group-flush">
      <a
        href="{{ route('user.index') }}"
        class="list-group-item list-group-item-action {{ (request()->is('admin/user*')) ? 'active' : '' }}"
        >Pengguna</a
      >
    </div>
    <hr>
    <div class="list-group list-group-flush">
      <a href="{{ route('logout') }}" onclick="event.preventDefault();
        document.getElementById('logout-form').submit();" 
        class="list-group-item list-group-item-action"
      >
        Keluar
      </a>
      <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
          @csrf
      </form>
    </div>
</div>