@yield('parent-content')
@yield('seo') @php $themeOption = \Modules\CMS\Http\Models\ThemeOption::getAll(); $layout = 'default'; if (!isset($page->layout)) { $page = \Modules\CMS\Entities\Page::firstWhere('default', '1'); } $layout = $page->layout; $primaryColor = option($layout . '_template_primary_color', '#FCCA19'); @endphp @php $favicon = App\Models\Preference::getFavicon(); @endphp @if (!empty($favicon)) @endif @yield('parent-css')
@php $headerLogo = $themeOption ->where('name', $layout . '_template_header_logo') ->first(); $headerMobileLogo = $themeOption ->where('name', $layout . '_template_header_mobile_logo') ->first(); $header = option($layout . '_template_header', ''); $footer = option($layout . '_template_footer', ''); $isEnableProduct = option($layout . '_template_product', ''); $footerLogo = $themeOption ->where('name', $layout . '_template_footer_logo') ->first(); $googlePlay = $themeOption ->where('name', $layout . '_template_google_play') ->first(); $appStore = $themeOption ->where('name', $layout . '_template_app_store') ->first(); $downloadGooglePlay = $themeOption ->where('name', $layout . '_template_download_google_play_logo') ->first(); $downloadAppStore = $themeOption ->where('name', $layout . '_template_download_app_store_logo') ->first(); $paymentMethods = $themeOption ->where('name', $layout . '_template_payment_methods') ->first(); @endphp @include('../site/layouts.includes.top_nav') @include('../site/layouts.includes.header') @include('../site/layouts.includes.bottom_nav')