<div class="wrapper">

    <!-- Preloader -->
    <div class="preloader flex-column justify-content-center align-items-center">
        <img class="animation__shake" src="{{url(\App\Models\Setting::where('slug','logo')->first()->value ?? '')}}" alt="AdminLTELogo" height="60" width="240">
    </div>

    <!-- Navbar -->
    <nav class="main-header navbar navbar-expand navbar-white navbar-light">

        <!-- Left navbar links -->
        <ul class="navbar-nav">
            <li>
                <a class="nav-link" data-widget="pushmenu" href="#" role="button">
                    <i class="fas fa-bars"></i>
                </a>
            </li>
        </ul>

        <!-- Right navbar links -->
        <ul class="navbar-nav ml-auto">
            <li>
                <!-- <a class="nav-link" data-widget="control-sidebar" data-controlsidebar-slide="true" href="#" role="button">
                    <i class="fas fa-th-large"></i>
                </a> -->
                <div class="dropdown dropdown-menubar">
                    <button class="btn" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
                        <div class="admin-profile">
                            <img src="{{url('admin/images/admin.png')}}" class="img-fluid"/>
                        </div>
                    </button>
                    <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
                        <li><a class="dropdown-item" href="{{url('admin/change_password')}}">Change Password</a></li>
                        <li><a class="dropdown-item" href="{{url('admin/logout')}}">Log Out</a></li>
                    </ul>
                </div>
            </li>
        </ul>

    </nav>
    <!-- /.navbar -->

    <!-- Main Sidebar Container -->
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Brand Logo -->
        <a href="{{url('admin/index')}}" class="brand-link">
            <span class="brand-text font-weight-light">
                <img class="extratech-logo" src="{{url(\App\Models\Setting::where('slug','logo')->first()->value ?? '')}}" alt="Insert Logo from Settings">
            </span>
        </a>

        <!-- Sidebar -->
        <div class="sidebar sb">
            <!-- Sidebar user panel (optional) -->
            <!-- <div class="user-panel mt-3 pb-3 mb-3 d-flex">
                <div class="image">
                    <img src="{{url('admin/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-4">
                <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">
                        <a href="{{url('admin/settings')}}" class="nav-link {{(Request::segment(2) == 'settings') ? 'active' : ''}}">
                            <i class="fa fa-cog" aria-hidden="true"></i>
                            <p>
                                Settings
                            </p>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="{{url('admin/sliders')}}" class="nav-link {{(Request::segment(2) == 'sliders') ? 'active' : ''}}">
                            <i class="fas fa-sliders-h"></i>
                            <p>
                                Sliders
                            </p>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="{{url('admin/services')}}" class="nav-link {{(Request::segment(2) == 'services') ? 'active' : ''}} ">
                            <i class="fa fa-wrench" aria-hidden="true"></i>
                            <p>
                                Services
                            </p>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="{{url('admin/visa_services')}}" class="nav-link {{(Request::segment(2) == 'visa_services') ? 'active' : ''}}">
                            <i class="fa fa-wrench" aria-hidden="true"></i>
                            <p>
                                Visa Services
                            </p>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="{{url('admin/about_us')}}" class="nav-link  {{(Request::segment(2) == 'about_us') ? 'active' : ''}}">
                            <i class="fa-solid fa-users"></i>
                            <p>
                                About Us
                            </p>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="{{url('admin/pages')}}" class="nav-link {{(Request::segment(2) == 'pages') ? 'active' : ''}}">
                            <i class="fa-regular fa-folder-open"></i>
                            <p>
                                Pages
                            </p>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="{{url('admin/blogs')}}" class="nav-link {{(Request::segment(2) == 'news_and_updates') ? 'active' : ''}}">
                            </i><i class="fa-solid fa-blog" aria-hidden="true"></i>
                            <p>
                                Blogs
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link ">
                            <div class="sidebar-icon w-100" id="myAppointmentBtn">
                                <i class="fa-regular fa-calendar-check"></i>
                                <span class="menu-title w-100">
                                    <p>Appointments</p>
                                    <i class="fa-solid fa-angle-right" id="icon-toggle-appointment"></i></span>
                            </div>
                        </a>
                        <div class="collapse" id="myAppointment">
                            <ul class="nav flex-column sub-menu">
                                <li class="nav-item">
                                    <a class="nav-link {{(Request::segment(2) == 'education') ? 'active' : ''}}" href="{{url('admin/appointments/education')}}">
                                        <i class="fa-solid fa-book-open-reader"></i> <p>Education Services</p>
                                    </a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="{{url('admin/appointments/visa')}}">
                                        <i class="fa-brands fa-cc-visa"></i> <p>Visa Services</p>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </li>
                    <li class="nav-item">
                        <a href="{{url('admin/testimonials')}}" class="nav-link {{(Request::segment(2) == 'testimonials') ? 'active' : ''}}">
                            <i class="fa fa-quote-right" aria-hidden="true"></i>
                            <p>
                                Testimonials
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="{{url('admin/faqs')}}" class="nav-link {{(Request::segment(2) == 'faqs') ? 'active' : ''}}">
                            <i class="fa-solid fa-circle-question" aria-hidden="true"></i>
                            <p>
                                FAQs
                            </p>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="{{url('admin/contacts')}}" class="nav-link {{(Request::segment(2) == 'contacts') ? 'active' : ''}}">
                            <i class="fa-solid fa-id-badge"></i>
                            <p>
                                Contact
                            </p>
                        </a>
                    </li>

                    <li class="nav-item">
                        <a href="{{url('admin/enquiries')}}" class="nav-link {{(Request::segment(2) == 'enquiries') ? 'active' : ''}}">
                            <i class="fa-solid fa-id-badge"></i>
                            <p>
                                Enquiries
                            </p>
                        </a>
                    </li>
                </ul>
            </nav>
            <!-- /.sidebar-menu -->
        </div>
        <!-- /.sidebar -->
    </aside>


    <!-- /.content-wrapper -->

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Control sidebar content goes here -->
    </aside>
    <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->