<header class="navbar">
    <div class="container">
        <div class="navbarWrapper">
            <div class="navLogoWrapper">
                <div class="navLogo">
                    <a href="{{ url('/') }}">
                        <img src="" class="nav-logo companyLogo" alt="" />
                    </a>
                </div>
            </div>
            <div class="menuListWrapper">
                <ul class="listItems">
                    <li>
                        <a href="{{ url('/') }}">{{ __('home') }}</a>
                    </li>
                    @if((isset($schoolSettings['about_us_status']) && $schoolSettings['about_us_status'] == 1) || 
                    (isset($schoolSettings['our_mission_status']) && $schoolSettings['our_mission_status'] == 1))
                        <li>
                            <a href="{{ url('school/about-us') }}">{{ __('about_us') }}</a>
                        </li>
                    @endif
                    @if (isset($schoolSettings['gallery_status']) && $schoolSettings['gallery_status'] == 1)
                        <li>
                            <div class="dropdown">
                                <a class="btn btn-secondary dropdown-toggle" href="#" role="button"
                                    id="dropdownMenuLink" data-bs-toggle="dropdown" aria-expanded="false">
                                   {{ __('gallery') }}
                                </a>

                                <ul class="dropdown-menu" aria-labelledby="dropdownMenuLink">
                                    <li>
                                        <a class="dropdown-item" href="{{ url('school/photos') }}">{{ __('photos') }}</a>
                                    </li>
                                    <hr />
                                    <li>
                                        <a class="dropdown-item" href="{{ url('school/videos') }}">{{ __('videos') }}</a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                    @endif
                    @if(isset($schoolSettings['faqs_status']) && $schoolSettings['faqs_status'] == 1 )
                        <li>
                            <a href="{{ url('/#faqs') }}">{{ __('faqs') }}</a>
                        </li>
                    @endif
                    @if(isset($schoolSettings['contact_us_status']) && $schoolSettings['contact_us_status'] == 1 )     
                        <li>
                            <a href="{{ url('school/contact-us') }}">{{ __('contact_us') }}</a>
                        </li>
                    @endif
                    <li>
                        <div class="dropdown">
                            <a class="btn btn-secondary dropdown-toggle" href="#" role="button"
                                id="languageDropdown" data-bs-toggle="dropdown" aria-expanded="false">
                                {{ __('language') }}
                            </a>
                            <ul class="dropdown-menu" aria-labelledby="languageDropdown">
                                @foreach ($languages as $key => $language)
                                    <li>
                                        <a class="dropdown-item" href="{{ url('set-language') . '/' . $language->code }}">
                                            {{ $language->name }}
                                        </a>
                                    </li>
                                    @if (count($languages) > ($key + 1))
                                        <hr />
                                    @endif
                                @endforeach
                            </ul>
                        </div>
                    </li>
                </ul>
                <div class="hamburg">
                    <span data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight" aria-controls="offcanvasRight"><i
                            class="fa-solid fa-bars"></i></span>
                </div>
            </div>
            <div class="loginWrapper">
                @if(isset($schoolSettings['online_registration_status']) && $schoolSettings['online_registration_status'] == 1)
                    <button class="commonBtn admissionBtn mx-3">
                        <div class="default-btn">
                            <a href="{{ route('online-admission.index') }}">{{ __('admission_open') }}</a>
                        </div>
                        <div class="hover-btn">
                            <a href="{{ route('online-admission.index') }}">{{ __('apply_now') }}</a>
                        </div>
                    </button>
                    @endif
                <button class="commonBtn redirect-login">{{ __('login') }}<i class="fa-regular fa-user pe-2"></i></button>
            </div>
        </div>

        <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight" aria-labelledby="offcanvasRightLabel">
            <div class="offcanvas-header">
                <div class="navLogoWrapper">
                    <div class="navLogo">
                        <img src="" alt="" class="nav-logo" />
                    </div>
                </div>
                <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
            </div>
            <div class="offcanvas-body">
                <ul class="listItems">
                    <li>
                        <a href="{{ url('/') }}">{{ __('home') }}</a>
                    </li>
                    @if((isset($schoolSettings['about_us_status']) && $schoolSettings['about_us_status'] == 1) || 
                    (isset($schoolSettings['our_mission_status']) && $schoolSettings['our_mission_status'] == 1))
                        <li>
                            <a href="{{ url('school/about-us') }}">{{ __('about_us') }}</a>
                        </li>
                    @endif
                    @if (isset($schoolSettings['gallery_status']) && $schoolSettings['gallery_status'] == 1)
                        <li>
                            <div class="dropdown">
                                <a class="btn btn-secondary dropdown-toggle" href="#" role="button"
                                    id="dropdownMenuLink" data-bs-toggle="dropdown" aria-expanded="false">
                                    {{ __('gallery') }}
                                </a>

                                <ul class="dropdown-menu" aria-labelledby="dropdownMenuLink">
                                    <li>
                                        <a class="dropdown-item" href="{{ url('school/photos') }}">{{ __('photos') }}s</a>
                                    </li>
                                    <hr />
                                    <li>
                                        <a class="dropdown-item" href="{{ url('school/videos') }}">{{ __('videos') }}</a>
                                    </li>
                                </ul>
                            </div>
                        </li>
                    @endif
                    @if(isset($schoolSettings['faqs_status']) && $schoolSettings['faqs_status'] == 1 )
                        <li>
                            <a href="#faqs">{{ __('faqs') }}</a>
                        </li>
                    @endif
                    @if(isset($schoolSettings['contact_us_status']) && $schoolSettings['contact_us_status'] == 1 )    
                        <li>
                            <a href="{{ url('school/contact-us') }}">{{ __('contact_us') }}</a>
                        </li>
                    @endif
                    <li>
                        <div class="dropdown">
                            <a class="btn btn-secondary dropdown-toggle" href="#" role="button"
                                id="languageDropdown" data-bs-toggle="dropdown" aria-expanded="false">
                                {{ __('language') }}
                            </a>
                            <ul class="dropdown-menu" aria-labelledby="languageDropdown">
                                @foreach ($languages as $key => $language)
                                    <li>
                                        <a class="dropdown-item" href="{{ url('set-language') . '/' . $language->code }}">
                                            {{ $language->name }}
                                        </a>
                                    </li>
                                    @if (count($languages) > ($key + 1))
                                        <hr />
                                    @endif
                                @endforeach
                            </ul>
                        </div>
                    </li>
                    <div class="loginWrapper">
                        @if(isset($schoolSettings['online_registration_status']) && $schoolSettings['online_registration_status'] == 1)
                            <button class="commonBtn admissionBtn">
                                <div class="default-btn">
                                    <a href="{{ route('online-admission.index') }}">{{ __('admission_open') }}</a>
                                </div>
                                <div class="hover-btn">
                                    <a href="{{ route('online-admission.index') }}">{{ __('apply_now') }}</a>
                                </div>
                            </button>
                        @endif
                        <button class="commonBtn redirect-login">{{ __('login') }}<i class="fa-regular fa-user"></i></button>
                    </div>
                </ul>
            </div>
        </div>
    </div>
</header>
