{{-- Page Header compartido para demo-restaurant Estilo: Parallax + shape divider + scroll arrow (mismo que menu/about/contact) Variables esperadas: - $pageTitle (string) - $pageLabel (string, opcional) - $pageBreadcrumb (array, opcional) - $pageSubtitle (string, opcional) - $backgroundImage (string, opcional) --}} @php $pageTitle = $pageTitle ?? 'Página'; $pageLabel = $pageLabel ?? null; $pageBreadcrumb = $pageBreadcrumb ?? $breadcrumbItems ?? [ ['label' => __('Home'), 'url' => front_homepage_url()], ['label' => $pageTitle, 'url' => null], ]; $pageSubtitle = $pageSubtitle ?? null; $backgroundImage = $backgroundImage ?? site_asset_url('page_header_background', 'cd-project/img/demos/restaurant/backgrounds/background-3.jpg'); // Anchor: use module-based id that matches the content section $anchorId = $anchorId ?? (isset($pageBreadcrumb[1]) ? Str::slug($pageBreadcrumb[1]['label']) . '-content' : 'content'); @endphp

{{ $pageTitle }}

@if(!empty($pageSubtitle))

{{ $pageSubtitle }}

@endif