@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')