@php $isTenant = tenant_check(); $themeSettings = get_batch_settings([ 'system.active_language', 'system.default_country_code', 'theme.seo_meta_title', 'theme.seo_meta_description', 'theme.favicon', ]); $systemSettings = tenant_settings_by_group('system'); // Always get global pusher settings (for both admin and tenant) $pusherSettings = get_settings_by_group('pusher'); $countryCode = $themeSettings['system.default_country_code']; $locale = Auth::check() ? Session::get('locale', config('app.locale')) : ($isTenant ? $systemSettings['active_language'] : $themeSettings['system.active_language'] ?? config('app.locale')); $metaTitle = $themeSettings['theme.seo_meta_title'] ?? t('app_name'); $metaDescription = $themeSettings['theme.seo_meta_description'] ?? t('app_description'); $favicon = !empty($themeSettings['theme.favicon']) ? Storage::url($themeSettings['theme.favicon']) : null; $pageTitle = isset($title) ? " - $title" : ''; @endphp {{ $metaTitle . $pageTitle }} @if ($favicon) @else @endif @livewireStyles @vite('resources/css/app.css') @vite(\Nwidart\Modules\Module::getAssets())
merge(['class' => ' bg-primary-50 dark:bg-gray-800 overflow-hidden w-full']) }}> {{ $slot }}
@livewireScripts @vite('resources/js/app.js') @stack('scripts')