{{-- Favicon --}} {{-- Universal SEO System - Single $seo variable for all pages --}} @php // Normalize SEO variable: use $seo if available, otherwise fallback to old variable names for backward compatibility $seo = $seo ?? $homeSeo ?? $newsSeo ?? $blogsSeo ?? $eventSeo ?? $contactUsSeo ?? $servicesSeo ?? $trainingSeo ?? $certificationsSeo ?? $careerSeo ?? $industriesSeo ?? $accreditationsSeo ?? $publicInformationSeo ?? $ayushSeo ?? $cyberSecuritySeo ?? $assuranceSeo ?? $sustainabilityTrainingSeo ?? $certificationSeo ?? null; // Handle content models with SEO fields (Overview, Mission, Management) if (!$seo && isset($overview) && $overview) { $seo = \App\Helpers\SeoResolver::resolve(null, $overview); } if (!$seo && isset($mission) && $mission) { $seo = \App\Helpers\SeoResolver::resolve(null, $mission); } if (!$seo && isset($management) && $management) { $seo = \App\Helpers\SeoResolver::resolve(null, $management); } @endphp @php // Check for page-specific SEO variables and normalize to $seo for consistent handling $pageSeo = $certificationPageSeo ?? $trainingPageSeo ?? $otherServicesPageSeo ?? $industriesPageSeo ?? $cyberSecurityPageSeo ?? $assurancePageSeo ?? $sustainabilityCertificationPageSeo ?? $sustainabilityTrainingPageSeo ?? null; // Use page-specific SEO if main $seo is not set if (!$seo && $pageSeo) { $seo = $pageSeo; } @endphp @if(isset($seo)) {{ $seo->meta_title ?? 'IRQS Website' }} @if(!empty($seo->meta_keywords)) @endif @elseif (request()->routeIs('certifications.verification')) IRQS Website | Certificate Verification @elseif (request()->routeIs('certifications.index')) IRQS Website | Certificate Listing @else IRQS Website | Cyber Security Services @endif {{-- Advanced SEO Features (OG Tags, Twitter Cards, Canonical URLs) --}} @if (isset($seo)) {{-- Canonical URL --}} @if(!empty($seo->canonical_url)) @else @endif {{-- Open Graph Tags --}} @if(!empty($seo->og_image)) @else @endif {{-- Twitter Card Tags --}} @if(!empty($seo->twitter_image)) @elseif(!empty($seo->og_image)) @else @endif {{-- Custom Header Scripts --}} @if(!empty($seo->header_scripts) && (str_contains($seo->header_scripts, '<') || str_contains($seo->header_scripts, ' @include('website.partials.include_css') @yield('styles') {{-- ========================= IRQS Google Analytics Script (GA4) Do NOT modify this block or tracking ID ========================== --}} @if(app()->environment('production')) @endif @include('website.partials.header')
@yield('content')
@include('website.partials.footer') @include('website.partials.include_js') @yield('scripts') {{-- Custom Body Scripts for All Modules - Only output HTML/Script tags, not plain text --}} @if (isset($seo) && !empty($seo->body_scripts) && (str_contains($seo->body_scripts, '<') || str_contains($seo->body_scripts, '