@php // Batch load all theme settings to avoid multiple database queries $themeSettings = get_batch_settings([ 'theme.seo_meta_title', 'theme.seo_meta_description', 'theme.author_name', 'theme.og_title', 'theme.og_description', 'theme.site_logo', 'theme.favicon', 'system.site_name', 'system.site_url', 'theme.customCss', 'theme.custom_js_header', ]); // Use cached settings with fallbacks $seoTitle = $themeSettings['theme.seo_meta_title'] ?? 'WhatsMark'; $seoDescription = $themeSettings['theme.seo_meta_description'] ?? 'Default description for the website.'; $authorName = $themeSettings['theme.author_name'] ?? 'Whatsmark'; $ogTitle = $themeSettings['theme.og_title'] ?? 'WhatsMark'; $ogDescription = $themeSettings['theme.og_description'] ?? 'Default description for the website.'; $siteLogo = $themeSettings['theme.site_logo'] ? Storage::url($themeSettings['theme.site_logo']) : asset('img/light_logo.png'); $faviconPath = $themeSettings['theme.favicon'] ? Storage::url($themeSettings['theme.favicon']) : asset('img/favicon.png'); $siteName = $themeSettings['general.site_name'] ?? 'WhatsMark'; $siteUrl = $themeSettings['general.site_url'] ?? env('APP_URL'); $customCss = $themeSettings['theme.customCss']; $headerJs = $themeSettings['theme.custom_js_header']; @endphp