<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">

    <!-- Sidebar - Brand -->
    <a class="sidebar-brand d-flex align-items-center justify-content-center" href="index.html">
        <div class="sidebar-brand-icon rotate-n-15">
            <i class="fas fa-laugh-wink"></i>
        </div>
        <div class="sidebar-brand-text mx-3"> <sup></sup></div>
    </a>

    <!-- Divider -->
    <hr class="sidebar-divider my-0">

    <!-- Nav Item - Dashboard -->
    <li class="nav-item active">
        <a class="nav-link" href="{{ url('admin/dashboard') }}">
            <i class="fas fa-fw fa-tachometer-alt"></i>
            <span>Dashboard</span></a>
    </li>

    <!-- Divider -->
    <hr class="sidebar-divider">

    <li class="nav-item">
        <a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseTwo"
            aria-expanded="true" aria-controls="collapseTwo">
            <i class="fas fa-fw fa-bars"></i>
            <span>Database</span>
        </a>
        <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
            <div class="bg-white py-2 collapse-inner rounded">
                <a class="collapse-item" href="{{ url('admin/category') }}">Kategori</a>
                {{-- <a class="collapse-item" href="{{ url('admin/subcategory') }}">Sub. Kategori</a>
                <a class="collapse-item" href="{{ url('admin/item') }}">Barang</a>
                <a class="collapse-item" href="{{ url('admin/component') }}">Komponen</a> --}}
            </div>
        </div>
    </li>

    <li class="nav-item">
        <a class="nav-link" href="{{ route('compare.index') }}">
            <i class="fas fa-fw fa-check"></i>
            <span>Compare</span></a>
    </li>

    <li class="nav-item">
        <a class="nav-link" href="{{ url('') }}">
            <i class="fas fa-fw fa-sync"></i>
            <span>History</span></a>
    </li>

    {{-- <li class="nav-item">
        <a class="nav-link" href="{{ url('admin/check') }}">
            <i class="fas fa-fw fa-check"></i>
            <span>Check</span></a>
    </li>

    <li class="nav-item">
        <a class="nav-link" href="{{ url('admin/history') }}">
            <i class="fas fa-fw fa-sync"></i>
            <span>History</span></a>
    </li> --}}

    <li class="nav-item">
        <a class="nav-link" href="{{ url('admin/user') }}">
            <i class="fas fa-fw fa-user"></i>
            <span>User</span></a>
    </li>

    <hr class="sidebar-divider d-none d-md-block">

    <form action="{{route('logout')}}" method="POST">
        @csrf
        <li class="nav-item">
            <div class="px-2">
                <button type="submit" class="border-0 nav-link px-2 py-2 rounded bg-white text-primary w-100">
                    <i class="fas fa-fw fa-user text-primary"></i>
                    <span>Logout</span></button>
            </div>
        </li>
    </form>
    <div class="text-center d-none mt-3 d-md-inline">
        <button class="rounded-circle border-0" id="sidebarToggle"></button>
    </div>

</ul>
