@php $isTenant = tenant_check(); if ($isTenant) { $systemSettings = tenant_settings_by_group('system'); $seoSettings = tenant_settings_by_group('seo'); $pusherSettings = tenant_settings_by_group('pusher'); } else { $themeSettings = get_batch_settings([ 'system.active_language', 'theme.seo_meta_title', 'theme.seo_meta_description', 'theme.favicon', ]); } $locale = Auth::check() ? Session::get('locale', config('app.locale')) : ($isTenant ? $systemSettings['active_language'] : $themeSettings['system.active_language'] ?? config('app.locale')); $metaTitle = $isTenant ? $seoSettings['meta_title'] ?? 'WhatsMark' : ($themeSettings['theme.seo_meta_title'] ?: 'WhatsMark'); $metaDescription = $isTenant ? $seoSettings['meta_description'] ?? 'WhatsMark' : ($themeSettings['theme.seo_meta_description'] ?: 'WhatsMark'); $favicon = $isTenant ? (isset($systemSettings['favicon']) ? Storage::url($systemSettings['favicon']) : null) : ($themeSettings['theme.favicon'] ? Storage::url($themeSettings['theme.favicon']) : null); $pageTitle = isset($title) ? " - $title" : ''; @endphp