@php $theme = get_theme(); $disable_floating_menu = true; $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, true) || (isset($has_sidebar) && $has_sidebar); $body_classname = Theme::getSetting('dashboard.bodyClass', ''); if (isset($body_class)) { $body_classname .= ' ' . $body_class; } if (!empty($wide_layout_px)) { $wide_layout_px_class = $wide_layout_px; } if (Route::currentRouteName()) { $route_name = str_replace(['dashboard.', '.index', '.'], ['', '', '-'], Route::currentRouteName()); $body_classname .= ' page-' . $route_name; } @endphp @include('panel.layout.partials.head') $has_sidebar, 'is-admin-page' => Auth::check() && (Route::is('dashboard.admin*') || Route::is('dashboard.blog*') || Route::is('dashboard.page*')), 'is-auth-page' => Route::is('login', 'register', 'forgot_password'), 'hide-navbar' => isset($disable_navbar), 'hide-footer' => isset($disable_footer), 'hide-header' => isset($disable_header), 'hide-titlebar' => isset($disable_titlebar), ]) > @if ($app_is_not_demo) @includeFirst(['onboarding-pro::banner', 'vendor.empty']) @endif @include('panel.layout.partials.mode-script') @includeIf('panel.layout.after-body-open') @stack('after-body-open') @include('panel.layout.partials.loading')
@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') @if ($app_is_not_demo) @includeFirst(['onboarding-pro::survey', 'vendor.empty']) @endif
@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.chat', 'dashboard.user.openai.webchat.workbook', 'dashboard.user.advanced-image.index') && !(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 @includeIf('panel.layout.before-body-close') @if ($app_is_not_demo) @auth() @if (auth()->user()->isAdmin()) @endif @endauth @includeIf('seo-tool::particles.generate-seo-script') @include('panel.layout.includes.lazy-intercom') @include('panel.layout.includes.subscription-status') @endif @livewireScriptConfig() @if ($app_is_demo) @endif