@php $locale = app()->getLocale(); $dir = locale_dir(); $storeName = setting_text('store.name', 'Mandano 888'); // An enabled bar with no buttons would only add empty padding, so the // section is treated as off until at least one shortcut is chosen. $mbarItems = (array) setting('mobile.bar_items', ['home', 'shop', 'search', 'cart', 'account']); $mbarEnabled = (bool) setting('mobile.bar', true) && $mbarItems !== []; $mbarStyle = (string) setting('mobile.bar_style', 'floating'); $mbarStyle = in_array($mbarStyle, ['classic', 'floating', 'glass'], true) ? $mbarStyle : 'floating'; $mobileFooterHidden = (bool) setting('mobile.hide_footer', false); @endphp @yield('title', $storeName) @if (\App\Support\Pwa::enabled()) @endif @foreach ($allLanguages as $language) @if ($language->font) @if ($language->font->url) @endif @endif @endforeach @if (\App\Support\Pwa::enabled()) @endif {{-- The active palette is emitted after the stylesheets so it wins over the shipped design tokens without touching them. --}} {!! theme_style_tag('storefront', $themePreview ?? null) !!} @foreach ($allLanguages as $language) @if ($language->font) @if ($language->font->css) @endif @endif @endforeach @stack('head') $locale === 'en', 'hide-m-footer' => $mobileFooterHidden, 'has-mbar' => $mbarEnabled, 'has-mbar-'.$mbarStyle => $mbarEnabled, ])> @unless (request()->routeIs('account.*')) @include('partials.header') @endunless @if (! empty($themePreview)) @include('partials.theme-preview-bar', ['themePreview' => $themePreview]) @endif
@yield('content')
@unless (request()->routeIs('account.*')) @include('partials.footer') @endunless @include('partials.drawer') @if (\App\Support\Pwa::enabled()) @include('partials.pwa') @endif @if ($mbarEnabled) @include('partials.mobile-bar') @endif
@if ($toast = session('toast'))
@if (($toast['type'] ?? 'check') === 'close') @else @endif {{ $toast['text'] }}
@endif
@if (\App\Support\Pwa::enabled()) @else @endif @stack('scripts')