@php
$headerSetting = \App\Models\HeaderSetting::first();
$siteTitle = $headerSetting?->site_name ?? 'Barishal Cantonment Public School & College';
@endphp
@yield('title', $siteTitle)
@if($headerSetting)
@else
@endif
@vite(['resources/css/app.css', 'resources/js/app.js'])
@php
$theme = \App\Models\ThemeSetting::first();
@endphp
@stack('styles')
@php
// Get the current homepage template setting
$currentTemplate = \App\Models\ThemeSetting::first()->homepage_template ?? 'template_1';
@endphp
@if($currentTemplate === 'template_1')
@include('partials.header-template1')
@elseif($currentTemplate === 'template_2')
@include('partials.header-template2')
@elseif($currentTemplate === 'template_3')
@include('partials.header-template3')
@else
@include('partials.header')
@endif
@yield('content')
@include('partials.footer')
@stack('scripts')
{{-- Popup Modal Component --}}
@php
$popup = \App\Models\Popup::getActivePopup(request()->is('/') ? 'homepage' : 'all_pages');
@endphp