<!-- Main Sidebar Container -->
<style>
    .active {
        background-color: #007BFF !important;
        color: white !important;
    }
</style>
<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="{{ url('/') }}" class="brand-link">
        <img src="{{ isset($setting) ? $setting->settingImage('logo') : asset('upload/No-Image.png') }}" width="50">

        <!-- <img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8"> -->
        <span class="brand-text font-weight-light">{{ $setting->site_title ?: '' }}</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="{{ Auth::user()->userImage('user_profile') }}" class="img-circle elevation-2"
                    alt="User Image">
            </div>
            <div class="info">
                <a href="#" class="d-block">User Name:{{ Auth::user()->first_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 menu-open">

                    <ul class="nav">
                        <li class="nav-item">
                            <a href="{{ route('user.dashboard') }}"
                                class="nav-link {{ request()->is('user/dashboard*') ? 'active' : '' }}">
                                <i class="nav-icon fas fa-tachometer-alt"></i>
                                <p>Dashboard</p>
                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="{{ route('user.order.list') }}"
                                class="nav-link {{ request()->is('user/order/list*') ? 'active' : '' }}">
                                <i class="nav-icon fas fa-truck"></i>
                                <p>Order</p>
                            </a>
                        </li>


                        <li class="nav-item">
                            <a href="#" class="nav-link">
                                <i class="fa fa-cog nav-icon"></i>
                                <p>
                                    Account Setting

                                    <i class="fas fa-angle-left right"></i>
                                </p>
                            </a>
                            <ul class="nav nav-treeview">
                                <li class="nav-item">
                                    <a href="{{ route('user.logout') }}" class="nav-link">
                                        <!-- <i class="far fa-circle nav-icon"></i> -->
                                        <i class="fa fa-lock nav-icon"></i>
                                        <p> LoggOut</p>
                                    </a>
                                </li>
                                {{-- <li class="nav-item">
                                    <a href="{{ route('user.profile') }}"
                                        class="nav-link {{ request()->is('user/profile*') ? 'active' : '' }}">
                                        <i class="fa fa-user-check nav-icon"></i>
                                        <p>Profile</p>
                                    </a>
                                </li> --}}
                                {{-- <li class="nav-item">
                                    <a href="{{ route('user.update-password-view') }}"
                                        class="nav-link {{ request()->is('user/change-password*') ? 'active' : '' }}">
                                        <i class="fa fa-key nav-icon"></i>
                                        <p>Change Password</p>
                                    </a>
                                </li> --}}
                            </ul>
                        </li>

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