{{-- Page Header compartido para demo-accounting-2 Estilo: badge pill + large title + CTA phone/button Variables esperadas: - $pageTitle (string) - $pageLabel (string, opcional) — Badge text (ej: "SERVICIOS", "BLOG") - $pageBreadcrumb (array, opcional) - $pageSubtitle (string, opcional) — Se usa como heading grande --}} @php $pageTitle = $pageTitle ?? 'Página'; $pageLabel = $pageLabel ?? null; $pageBreadcrumb = $pageBreadcrumb ?? $breadcrumbItems ?? [ ['label' => 'Inicio', 'url' => front_homepage_url()], ['label' => $pageTitle, 'url' => null], ]; $pageSubtitle = $pageSubtitle ?? null; $pageCompact = $pageCompact ?? config('site.page_header.compact', false); @endphp
{{-- Breadcrumb --}} @if(count($pageBreadcrumb) > 1) @endif @if($pageLabel) {{ $pageLabel }} @endif

{{ $pageTitle }}

@if($pageSubtitle)

{{ $pageSubtitle }}

@endif
@if(config('site.page_header.show_cta', true))
@if(config('site.page_header.show_phone', false) && config('site.contact.phone')) @endif @php $ctaTitle = config('site.page_header.cta_title', config('site.header.cta_button.title', __('Blog'))); $ctaUrl = config('site.page_header.cta_url', config('site.header.cta_button.url', '/contact')); @endphp {{ $ctaTitle }}
@endif