- @php
- $cart = cart()->getCart();
-
- $cartItemsCount = trans('shop::app.minicart.zero');
-
- if ($cart) {
- $cartItemsCount = $cart->items->count();
- }
- @endphp
-
- @php
- $currency = $locale = null;
-
- $currentLocale = app()->getLocale();
- $currentCurrency = core()->getCurrentCurrencyCode();
-
- $allLocales = core()->getCurrentChannel()->locales;
- $allCurrency = core()->getCurrentChannel()->currencies;
- @endphp
-
- @foreach ($allLocales as $appLocale)
- @if ($appLocale->code == $currentLocale)
- @php
- $locale = $appLocale;
- @endphp
- @endif
- @endforeach
-
- @foreach ($allCurrency as $appCurrency)
- @if ($appCurrency->code == $currentCurrency)
- @php
- $currency = $appCurrency;
- @endphp
- @endif
- @endforeach
-
-
-
- {{-- this is default content if js is not loaded --}}
-
- @auth('customer')
-
- {{ __('shop::app.header.logout') }}
-
- @endauth
-
- @guest('customer')
-
- {{ __('shop::app.customer.login-form.title') }}
-
- @endguest
-
-
-
- @guest('customer')
-
- {{ __('shop::app.header.sign-up') }}
-
- @endguest
-
-
-
-
-
-
-
-
-
-
- @php
- $showCompare = core()->getConfigData('general.content.shop.compare_option') == "1" ? true : false;
- @endphp
-
- @if ($showCompare)
-
-
- @endif
-
- @php
- $showWishlist = core()->getConfigData('general.content.shop.wishlist_option') == "1" ? true : false;
- @endphp
-
- @if ($showWishlist)
-
-
- @endif
-
-
-
-
+ @include('velocity::shop.layouts.header.mobile')
-
-
-
-
-
-
- @guest('customer')
-
- {{ __('velocity::app.responsive.header.greeting', ['customer' => 'Guest']) }}
-
- @endguest
-
- @auth('customer')
-
- {{ __('velocity::app.responsive.header.greeting', ['customer' => auth()->guard('customer')->user()->first_name]) }}
-
- @endauth
-
-
-
- @auth('customer')
-
- @endauth
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @php
- $showCompare = core()->getConfigData('general.content.shop.compare_option') == "1" ? true : false;
- @endphp
-
- @if ($showCompare)
-
-
-
-
-
-
-
-
-
-
-
+ {{-- desktop header --}}
+ @include('velocity::shop.layouts.header.desktop')
- {{-- this is default content if js is not loaded --}}
-
-
-
-
-
-
- {{ __('velocity::app.menu-navbar.text-category') }}
-
-
-
-
-
- {{-- this is default content if js is not loaded --}}
-
-
-
-
@@ -323,18 +79,14 @@
add-class="category-list-container pt10">
-
@@ -342,16 +94,15 @@
@show
-
+
-
{!! view_render_event('bagisto.shop.layout.content.before') !!}
@yield('content-wrapper')
{!! view_render_event('bagisto.shop.layout.content.after') !!}
-
-
{!! view_render_event('bagisto.shop.layout.full-content.before') !!}
@yield('full-content-wrapper')
{!! view_render_event('bagisto.shop.layout.full-content.after') !!}
-