@php
$siteName = 'বাংলা নিউজ পোর্টাল';
$siteUrl = config('app.url', 'http://localhost');
$defaultImage = asset('images/default-og.jpg');
$title = $title ?? $siteName;
$description = $description ?? 'বাংলাদেশ এবং বিশ্বের সর্বশেষ খবর, সংবাদ, বিশ্লেষণ এবং মতামত। সবার আগে সব খবর পড়ুন আমাদের অনলাইন নিউজ পোর্টালে।';
$keywords = $keywords ?? 'বাংলা নিউজ, খবর, সংবাদ, বাংলাদেশ, বিশ্ব, রাজনীতি, খেলা, বিনোদন';
$image = $image ?? $defaultImage;
$publishedTime = $publishedTime ?? now()->toIso8601String();
$author = $author ?? null;
$category = $category ?? null;
$articleId = $articleId ?? null;
@endphp
{{-- Primary Meta Tags --}}
{{ $title }}
{{-- OpenGraph / Facebook --}}
@if($author)
@endif
@if($category)
@endif
{{-- Twitter --}}
{{-- Favicon --}}
@if(config('site.favicon_url'))
@else
@endif
{{-- RSS Feed --}}
{{-- Bootstrap CSS --}}
{{-- Preconnect to external domains --}}
{{-- Dynamic Fonts from Settings --}}
@php
$fontHeadline = config('site.font_headline', 'Noto Serif Bengali');
$fontBody = config('site.font_body', 'Hind Siliguri');
$fontHeadlineEn = config('site.font_headline_en', 'Merriweather');
$fontBodyEn = config('site.font_body_en', 'Open Sans');
$fontFamilies = array_unique([$fontHeadline, $fontBody, $fontHeadlineEn, $fontBodyEn]);
$fontQuery = [];
foreach ($fontFamilies as $font) {
$fontParam = str_replace(' ', '+', $font);
$fontQuery[] = "family={$fontParam}:wght@300;400;500;600;700";
}
$fontUrl = 'https://fonts.googleapis.com/css2?' . implode('&', $fontQuery) . '&display=swap';
@endphp
{{-- Vite Assets --}}
@vite(['resources/css/main.css', 'resources/css/responsive.css'])
{{-- Dynamic Font Variables --}}
@stack('styles')
{{-- NewsArticle Schema for Single Posts --}}
@if(isset($schema) && $schema)
@endif
{{-- Organization Schema --}}
{{-- WebSite Schema with Search Action --}}
{{-- AdSense Head (Optional) --}}
@if(config('services.adsense.client_id'))
@endif
{{-- Skip Navigation for Accessibility --}}
প্রধান বিষয়বস্তুতে যান
{{-- Top Bar Component --}}
@include('components.topbar')
{{-- Header Component --}}
@include('components.header')
{{-- Navigation Component --}}
@include('components.navbar')
{{-- Breaking News Ticker --}}
@if(Route::is('home') || Route::is('category.*'))
@endif
{{-- Main Content --}}
@yield('content')
{{-- Footer Component --}}
@include('components.footer')
{{-- Share Modal --}}
{{-- Scripts --}}
{{-- Bootstrap JS --}}
{{-- Livewire Scripts (if needed) --}}
@stack('scripts')
{{-- Performance: Preload LCP Image --}}
@if(isset($lcpImage))
@endif