<nav class="header">
    <div class="container header-inner no-mobile">
        <div class="header-left-side">
            <div class="clock-wrapper">
                <img src="{{ bagisto_asset('icons/clock.svg')}}" alt="clock" />
            </div>
            <div class="head-left-text-wrapper">
                {!! core()->getCurrentChannel()->description !!}
            </div>
        </div>
        <div class="header-right-side">
            <div class="phone-wrapper">
                <img src="{{ bagisto_asset('icons/telephone.svg') }}" alt="telephone" />
            </div>
            <div class="head-right-text-wrapper">
                <span class="head-right-text head-left-text">{{core()->getConfigData('general.general.info.phone')}}</span>
            </div>
            <div class="language-select">
                <div class="flag-wrapper">
                    <img src="{{ core()->getCurrentLocale()->image_url }}" alt="" width="30" height="20" />
                </div>
                <div class="language-wrapper">
                    <span class="language">{{ core()->getCurrentLocale()->name }}</span>
                    <ul class="language-list hidden" id="locale-switcher" onchange="window.location.href = this.value">
                @foreach (core()->getCurrentChannel()->locales as $locale)
                    @if (isset($serachQuery))
                        <li class="language-el" {{ $locale->code == app()->getLocale() ? 'selected' : '' }}><a href="?{{ $serachQuery }}&locale={{ $locale->code }}">{{ $locale->name }}</a></li>
                    @else
                        <li class="language-el" {{ $locale->code == app()->getLocale() ? 'selected' : '' }}><a href="?locale={{ $locale->code }}">{{ $locale->name }}</a></li>
                    @endif
                @endforeach
                    </ul>
                </div>
            </div>
        </div>
    </div>
</nav>
