@php
$searchQuery = request()->input();
if (
$searchQuery
&& ! empty($searchQuery)
) {
$searchQuery = implode('&', array_map(
function ($v, $k) {
if (is_array($v)) {
if (is_array($v)) {
$key = array_keys($v)[0];
return $k. "[$key]=" . implode('&' . $k . '[]=', $v);
} else {
return $k. '[]=' . implode('&' . $k . '[]=', $v);
}
} else {
return $k . '=' . $v;
}
},
$searchQuery,
array_keys($searchQuery)
));
} else {
$searchQuery = false;
}
@endphp
{!! view_render_event('bagisto.shop.layout.header.locale.before') !!}
@if(! empty(core()->getCurrentLocale()->image_url))
@else
@endif
{!! view_render_event('bagisto.shop.layout.header.locale.after') !!}
{!! view_render_event('bagisto.shop.layout.header.currency-item.before') !!}
@if (core()->getCurrentChannel()->currencies->count() > 1)
{{ core()->getCurrentCurrency()->symbol }}
@endif
{!! view_render_event('bagisto.shop.layout.header.currency-item.after') !!}