@php $isTenant = tenant_check(); $tenantId = tenant_id(); $tenantSubdomain = tenant_subdomain(); if ($isTenant) { $systemSettings = tenant_settings_by_group('system'); $pusherSettings = tenant_settings_by_group('pusher'); } $themeSettings = get_batch_settings([ 'system.active_language', 'theme.seo_meta_title', 'theme.seo_meta_description', 'theme.favicon', ]); $countryCode = get_setting('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 = !empty($themeSettings['theme.seo_meta_title']) ? $themeSettings['theme.seo_meta_title'] : t('app_name'); $metaDescription = $themeSettings['theme.seo_meta_description'] ?? t('app_description'); $favicon = $themeSettings['theme.favicon'] ? Storage::url($themeSettings['theme.favicon']) : null; $pageTitle = isset($title) ? " - $title" : ''; @endphp