<div class="header-menu bg--base">
    <div class="container">
        <div class="menu-area">
            <div class="menu-close">
                <i class="las la-times"></i>
            </div>

            <form action="" method="GET" class="search-form d-lg-none mb-4">
                <div class="input-group search--group">
                    <input type="text" class="form-control" name="search" placeholder="@lang('Search here')" value="{{ request()->search ?? null }}">
                    <button class="cmn--btn" type="submit">@lang('Search') </button>
                </div>
            </form>

            <div class="category-link-area  @if (request()->routeIs('home') || request()->routeIs('shope')) d-lg-none @endif">
                <button type="submit" class="cmn--btn categoryButton">@lang('All Categories') <i class="las la-angle-down ms-2 fs--14px"></i></button>
                <button type="submit" class="cmn--btn menuButton active">@lang('Menu')</button>

                @include($activeTemplate . 'partials.navbar')

            </div>

            <ul class="menu  @if (request()->routeIs('home')) me-lg-auto @endif">
                <li>
                    <a href="{{ route('home') }}" class="{{ menuActive('home') }}">
                        @lang('Home')
                    </a>
                </li>
                <li>
                    <a href="{{ route('products') }}" class="{{ menuActive('products') }}">
                        @lang('Products')
                    </a>
                </li>
                <li>
                    <a href="{{ route('contact') }}" class="{{ menuActive('contact') }}">
                        @lang('Contact')
                    </a>
                </li>
                <li>
                    <a href="{{ route('track.order') }}" class="{{ menuActive('track-order') }}">
                        @lang('Track Order')
                    </a>
                </li>
            </ul>

            <div class="sign-in-up d-none d-md-block font-heading change-language2">
                <span class="text-white"><i class="las la-user"></i></span>
                @auth
                    <a class="text-white" href="{{ route('user.home') }}">{{ auth()->user()->username }}</a>
                @else
                    <a class="text-white" href="{{ route('user.login') }}">@lang('Login')</a>
                    @if (gs('registration'))
                        <a class="text-white" href="{{ route('user.register') }}">@lang('Register')</a>
                    @endif
                @endauth
            </div>

            <div class="change-language d-md-none mt-4 fs--16px">
                <div class="sign-in-up">
                    <span><i class="fas la-user"></i></span>
                    @auth
                        <a href="{{ route('user.home') }}">{{ auth()->user()->username }}</a>
                    @else
                        <a href="{{ route('user.login') }}">@lang('Login')</a>
                        @if (gs('registration'))
                            <a href="{{ route('user.register') }}">@lang('Register')</a>
                        @endif
                    @endauth
                </div>
            </div>
        </div>
    </div>
</div>
