<nav class="sidebar">
    <div class="sidebar-header">
        <a href="#" class="sidebar-brand">
            Noble<span>UI</span>
        </a>
        <div class="sidebar-toggler">
            <span></span>
            <span></span>
            <span></span>
        </div>
    </div>
    <div class="sidebar-body">
        <ul class="nav" id="sidebarNav">
            <li class="nav-item nav-category">Main</li>
            <li class="nav-item">
                <a href="{{ route('admin.dashboard') }}" class="nav-link @if (Request::is('admin/dashboard')) active @endif">
                    <i class="link-icon" data-feather="box"></i>
                    <span class="link-title">Dashboard</span>
                </a>
            </li>
            <li class="nav-item nav-category">Data</li>
            <li class="nav-item">
                <a class="nav-link" data-bs-toggle="collapse" href="#master" role="button" aria-expanded="false"
                    aria-controls="master">
                    <i class="link-icon" data-feather="database"></i>
                    <span class="link-title">Master</span>
                    <i class="link-arrow" data-feather="chevron-down"></i>
                </a>
                <div class="collapse" data-bs-parent="#sidebarNav" id="master">
                    <ul class="nav sub-menu">
                        <li class="nav-item">
                            <a href="{{ route('admin.users.index') }}"
                                class="nav-link @if (Request::is('admin/users*')) active @endif">
                                Users
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="{{ route('admin.addictions.index') }}"
                                class="nav-link @if (Request::is('admin/addictions*')) active @endif">
                                Addiction
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="{{ route('admin.likerts.index') }}"
                                class="nav-link @if (Request::is('admin/likerts*')) active @endif">
                                Likert
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="{{ route('admin.factors.index') }}"
                                class="nav-link @if (Request::is('admin/factors*')) active @endif">
                                Factor
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="{{ route('admin.items.index') }}"
                                class="nav-link @if (Request::is('admin/items*')) active @endif">
                                Item
                            </a>
                        </li>
                    </ul>
                </div>
            </li>
            <li class="nav-item">
                <a href="{{ route('admin.histories.index') }}"
                    class="nav-link @if (Request::is('admin/histories*')) active @endif">
                    <i class="link-icon" data-feather="bar-chart-2"></i>
                    <span class="link-title">Histories</span>
                </a>
            </li>
        </ul>
    </div>
</nav>
