@php($pageLang = in_array($page->slug, ['ateliers', 'craft', 'showrooms', 'home'], true) ? 'en' : 'fr') @php($needsLeaflet = collect($blocks)->contains(fn ($b) => $b->type === 'contact-body')) @php($bodyClass = $page->body_class ? ' class="' . e($page->body_class) . '"' : '') {{ $page->meta_title ?: $page->title . ' — Atelier Funfrock' }} @include('public.partials.seo-head', ['page' => $page, 'pageLang' => $pageLang]) @if ($needsLeaflet) @endif @stack('head') @if ($page->is_home) @include('public.partials.loader') @endif @include('public.partials.header', [ 'activeGroup' => $page->nav_group, 'activeSlug' => $page->slug, 'isStatic' => ! $page->is_home, 'showBack' => ! $page->is_home, 'anchorPrefix' => $page->is_home ? '' : '/', ]) @foreach ($blocks as $block) @if (view()->exists('blocks.' . $block->type)) @include('blocks.' . $block->type, ['block' => $block]) @else @php(\Illuminate\Support\Facades\Log::warning("Unknown block type '{$block->type}' on page '{$page->slug}' (#{$block->id}) — skipped.")) @endif @endforeach @include('public.partials.footer') @stack('scripts_pre') @stack('scripts')