@php $tenantId = $tenantId ?? (tenant() ? tenant('id') : null); $scope = $scope ?? ($tenantId ? 'tenant' : 'platform'); $settings = $tenantSiteSettings ?? null; $siteName = $siteName ?? ($settings?->site_name ?? 'qpost'); $tenantBaseUrl = tenant_base_url(); $basePath = $basePath ?? $tenantBaseUrl; @endphp @extends('tenant.layouts.base') @section('body-class', 'min-h-screen bg-base c-main scope-tenant theme-default') @section('body') @php $hasSidebarAdSlot = filled($tenantSiteSettings?->effectiveAdsenseClientId()); @endphp
@include('tenant.layouts.header', [ 'tenantId' => $tenantId, 'scope' => $scope, 'mode' => 'app', 'basePath' => $basePath, 'siteName' => $siteName, ]) {{-- 헤더 아래 사이트 공통 상단 광고 --}}
@hasSection('content-top') @yield('content-top') @endif @hasSection('content-shell') @yield('content-shell') @else
@yield('content')
@if ($hasSidebarAdSlot) @endif
@endif
{{-- 푸터 위 사이트 공통 하단 광고 --}} @include('tenant.layouts.footer', [ 'tenantId' => $tenantId, 'scope' => $scope, 'mode' => 'app', 'basePath' => $basePath, 'siteName' => $siteName, ])
@endsection