<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="{{ route('admin.dashboard') }}" class="brand-link">
        <img src="{{ asset('dist/img/AdminLTELogo.png') }}" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
            style="opacity: .8">
        <span class="brand-text font-weight-light">{{ config('app.name', 'Laravel') }}</span>
    </a>





    <!-- Sidebar -->
    <div class="sidebar">
        <!-- Sidebar user panel (optional) -->
        <div class="user-panel mt-3 pb-3 mb-3 d-flex">
            <div class="image">
                <img src="{{ asset('dist/img/user2-160x160.jpg') }}" class="img-circle elevation-2" alt="User Image">
            </div>
            <div class="info">
                <a href="#" class="d-block">{{ Auth::user()->name }}</a>
            </div>
        </div>

        <!-- Sidebar Menu -->
        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
                data-accordion="false">
                <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
                <li class="nav-item {{ \Request::segment(2) === 'dashboard' ? 'menu-open' : null }}">
                    <a href="{{ route('admin.dashboard') }}"
                        class="nav-link {{ \Request::segment(2) === 'dashboard' ? 'active' : null }}">
                        <i class="nav-icon fas fa-tachometer-alt"></i>
                        <p>
                            Dashboard
                        </p>
                    </a>
                </li>


                {{-- <li class="nav-item has-treeview {{ \Request::segment(2) === 'user' ? 'menu-open' : null }}">
                    <a href="#" class="nav-link {{ \Request::segment(2) === 'user' ? 'active' : null }}">
                        <i class="nav-icon fas fa-key"></i>
                        <p>
                            Admin
                            <i class="right fas fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview sub-menu {{ \Request::segment(2) === 'user' ? 'menu-open' : null }}">

                        <li class="nav-item has-treeview {{ \Request::segment(2) === 'user' ? 'menu-open' : null }}">
                            <a href="{{ route('user.index') }}"
                                class="nav-link {{ \Request::segment(2) === 'user' ? 'active' : null }}">
                                <i class="far fa-circle nav-icon"></i>
                                <p>Users</p>
                            </a>
                        </li>

                    </ul>
                </li> --}}
                <li class="nav-item {{ \Request::segment(2) === 'employee' ? 'menu-open' : null }}">
                    <a href="{{ route('employee.index') }}"
                        class="nav-link {{ \Request::segment(2) === 'employee' ? 'active' : null }}">
                        <i class="fas fa-users"></i>
                        <p>
                            Employees
                        </p>
                    </a>
                </li>
                <li class="nav-item {{ \Request::segment(2) === 'lead' ? 'menu-open' : null }}">
                    <a href="{{ route('lead.index') }}"
                        class="nav-link {{ \Request::segment(2) === 'lead' ? 'active' : null }}">
                        <i class="fas fa-calendar-alt"></i>
                        <p>
                            Leads
                        </p>
                    </a>
                </li>
                <li class="nav-item {{ \Request::segment(2) === 'common-art' ? 'menu-open' : null }}">
                    <a href="{{ route('common-art.index') }}"
                        class="nav-link {{ \Request::segment(2) === 'common-art' ? 'active' : null }}">
                        <i class="fas fa-calendar-alt"></i>
                        <p>
                            Common Art
                        </p>
                    </a>
                </li>


            </ul>
        </nav>
        <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
</aside>
