@php $disable_floating_menu = true; $google_fonts_string = ''; $dashboard_scss_path = 'resources/views/' . get_theme() . '/scss/dashboard.scss'; $app_js_path = 'resources/views/' . get_theme() . '/js/app.js'; $wide_layout_px_class = Theme::getSetting('wideLayoutPaddingX', ''); $theme_google_fonts = Theme::getSetting('dashboard.googleFonts'); $sidebarEnabledPages = Theme::getSetting('dashboard.sidebarEnabledPages') ?? []; $has_sidebar = in_array(Route::currentRouteName(), $sidebarEnabledPages) || (isset($has_sidebar) && $has_sidebar); if (isset($wide_layout_px) && !empty($wide_layout_px)) { $wide_layout_px_class = $wide_layout_px; } $i = 0; foreach ($theme_google_fonts as $font_name => $weights) { $font_string = 'family=' . str_replace(' ', '+', $font_name); if (!empty($weights)) { $font_string .= ':wght@' . implode(';', $weights); } $google_fonts_string .= $font_string . ($i === count($theme_google_fonts) - 1 ? '' : '&'); $i++; } @endphp @if (isset($setting->google_analytics_code)) @endif @if (isset($setting->meta_keywords)) @endif {{-- {{ $setting->site_name }} | @yield('title') --}} {{ getMetaTitle($setting, ' ') ?? $setting->site_name }} | @yield('title') @if (filled($google_fonts_string)) @endif {{-- Liquid global params --}} @if (!isset($disable_tblr) && empty($disable_tblr)) @endif @yield('additional_css') @stack('css') @vite($dashboard_scss_path) @if ($setting->dashboard_code_before_head != null) {!! $setting->dashboard_code_before_head !!} @endif @vite($app_js_path) @if (setting('additional_custom_css') != null) {!! setting('additional_custom_css') !!} @endif @livewireStyles $has_sidebar, 'is-admin-page' => Auth::check() && (Route::is('dashboard.admin*') || Route::is('dashboard.blog*') || Route::is('dashboard.page*')), ])> @includeIf('panel.layout.after-body-open') @auth @endauth
@auth @if (!isset($disable_navbar)) @include('panel.layout.navbar') @endif @endauth
@if ($good_for_now) @auth @if (!isset($disable_header)) @include('panel.layout.header', ['layout_wide', isset($layout_wide) ? $layout_wide : '']) @endif @if (!isset($disable_titlebar)) @include('panel.layout.titlebar', ['layout_wide', isset($layout_wide) ? $layout_wide : '']) @endif @endauth @yield('before_content_container')
!isset($layout_wide) || empty($layout_wide), 'container-fluid' => isset($layout_wide) && !empty($layout_wide), $wide_layout_px_class => filled($wide_layout_px_class) && (isset($layout_wide) && !empty($layout_wide)), ])> @yield('content')
@elseif(Auth::check() && !$good_for_now && Route::currentRouteName() != 'dashboard.admin.settings.general')
!isset($layout_wide) || empty($layout_wide), 'container-fluid' => isset($layout_wide) && !empty($layout_wide), $wide_layout_px_class => filled($wide_layout_px_class) && (isset($layout_wide) && !empty($layout_wide)), ])> @include('vendor.installer.magicai_c4st_Act')
@else @auth @if (!isset($disable_header)) @include('panel.layout.header', ['layout_wide', isset($layout_wide) ? $layout_wide : '']) @endif @if (!isset($disable_titlebar)) @include('panel.layout.titlebar', ['layout_wide', isset($layout_wide) ? $layout_wide : '']) @endif @endauth @yield('before_content_container')
!isset($layout_wide) || empty($layout_wide), 'container-fluid' => isset($layout_wide) && !empty($layout_wide), $wide_layout_px_class => filled($wide_layout_px_class) && (isset($layout_wide) && !empty($layout_wide)), ])> @yield('content')
@endif @auth @if (!isset($disable_footer)) @include('panel.layout.footer') @endif @if ($has_sidebar && (!isset($disable_default_sidebar) || empty($disable_default_sidebar))) @includeIf('panel.layout.sidebar') @endif @endauth
@auth @if (!isset($disable_floating_menu)) @endif @if (!isset($disable_mobile_bottom_menu)) @endif @endauth @if (!isset($disableChatbot)) @includeWhen(in_array($settings_two->chatbot_status, ['dashboard', 'both']) && !activeRoute('dashboard.user.openai.chat.list', 'dashboard.user.openai.chat.chat', 'dashboard.user.openai.webchat.workbook') && !(route('dashboard.user.openai.generator.workbook', 'ai_vision') == url()->current()) && !(route('dashboard.user.openai.generator.workbook', 'ai_chat_image') == url()->current()) && !(route('dashboard.user.openai.generator.workbook', 'ai_pdf') == url()->current()), 'panel.chatbot.widget') @endif @include('panel.layout.scripts') @if (\Session::has('message')) @endif @if ($errors->any()) @endif @auth {{-- --}} @endauth @stack('script') @if ($setting->dashboard_code_before_body != null) {!! $setting->dashboard_code_before_body !!} @endif @auth() @if (\Illuminate\Support\Facades\Auth::user()->isAdmin()) @endif @endauth @includeIf('panel.layout.before-body-close') @if (view()->exists('panel.admin.settings.particles.serper_seo')) @endif @livewireScriptConfig() {{-- @stack('live-script') --}} @includeWhen(\App\Helpers\Classes\Helper::showIntercomForVipMembership(),'default.panel.layout.includes.vip-intercom')