@use('app\Helpers\Helpers') @php $homePage = Helpers::getCurrentHomePage(); @endphp @if (Helpers::isZoneExists()) {{ __('frontend::static.location.title') }} @if (count(session('zoneIds', []))) @endif {{ __('frontend::static.location.use_current_location') }} {{ __('frontend::static.location.or') }} {{ __('frontend::static.location.select_manually') }} @endif @php $offerSlides = array_filter(isset($themeOptions['header']['offer_slider']) && is_array($themeOptions['header']['offer_slider']) ? $themeOptions['header']['offer_slider'] : [], function ($slide) { return !empty($slide['text'] ?? null); }); $showOfferSlider = (isset($themeOptions['header']['offer_slider_enable']) && $themeOptions['header']['offer_slider_enable']) && count($offerSlides) > 0; @endphp @if ($showOfferSlider) @foreach ($offerSlides as $slide) @if (!empty($slide['link'] ?? null)) {!! nl2br(e($slide['text'])) !!} {{ e($slide['link_text'] ?? 'Learn more') }} @else {!! nl2br(e($slide['text'])) !!} @endif @endforeach @endif @php $currency = session('currency', Helpers::getDefaultCurrencyCode()); $defaultCurrency = Helpers::getCurrencyByCode($currency); $defaultCurrencyImg = $defaultCurrency?->media?->first()?->getUrl(); $currencies = Helpers::getActiveCurrencies() ?? []; @endphp {{ $defaultCurrency?->code }} @forelse ($currencies as $currency) {{ @$currency?->code }} @empty {{ @$defaultCurrency?->code }} @endforelse @php $defaultLocale = Helpers::getDefaultLanguageLocale(); $lang = Helpers::getLanguageByLocale(Session::get('locale', $defaultLocale)); $flag = $lang?->flag; @endphp {{ strtoupper(Session::get('locale', $defaultLocale)) }} @forelse (Helpers::getLanguages() as $lang) {{ $lang?->name }} @empty @endforelse Menu @if ($themeOptions['header']['home'] ?? false) {{ __('frontend::static.header.home') }} @endif @if ($themeOptions['header']['categories'] ?? false) {{ __('frontend::static.header.category') }} @endif @if ($themeOptions['header']['services'] ?? false) {{ __('frontend::static.header.service') }} @endif @if ($themeOptions['header']['service_packages'] ?? false) @endif {{ __('frontend::static.header.packages') }} @auth @if ($themeOptions['header']['booking'] ?? false) {{ __('frontend::static.header.booking') }} @endif @endauth @if ($themeOptions['header']['blogs'] ?? false) {{ __('frontend::static.header.blog') }} @endif @if ($homePage['home_banner']['search_enable'] ?? false) @endif @auth @csrf @else @endauth @if (count(session('cartItems') ?? [])) {{ count(session('cartItems') ?? []) }} @endif @auth 1 @endauth