{{-- views/themes/default/layout.blade.php - Modern Professional Theme --}} {{ $page->title ?? $website->name }} @php $headerSection = $website->globalSections()->where('type', 'header')->where('is_default', true)->first(); $customHeader = $website->getCustomHeader(); @endphp @if($headerSection && $headerSection->is_custom) {{-- Custom Header built with page builder --}} {!! $headerSection->getRenderedContent() !!} @elseif($customHeader) {{-- Custom Header from settings --}} {!! $customHeader !!} @else {{-- Default Modern Header --}} @endif
@yield('content')
@php $footerSection = $website->globalSections()->where('type', 'footer')->where('is_default', true)->first(); $customFooter = $website->getCustomFooter(); @endphp @if($footerSection && $footerSection->is_custom) {{-- Custom Footer built with page builder --}} {!! $footerSection->getRenderedContent() !!} @elseif($customFooter) {{-- Custom Footer from settings --}} {!! $customFooter !!} @else {{-- Default Modern Footer --}} @endif @stack('scripts')