@php $style = $data['style'] ?? 'light'; $bg = $url($data['background_image'] ?? null); $isImage = $style === 'image' && $bg !== ''; $isDark = $style === 'dark' || $isImage; $centered = ! empty($data['centered']); $compact = ! empty($data['compact']); $title = $data['title'] ?? ''; $crumbs = ! empty($data['show_breadcrumbs']) ? [['label' => 'Home', 'url' => url('/')], ['label' => $pageTitle ?: $title]] : []; $hasActions = filled($data['primary_text'] ?? null) || filled($data['secondary_text'] ?? null); @endphp
$isDark, 'pb-page-hero--image' => $isImage, 'pb-page-hero--compact' => $compact, 'pb-page-hero--center' => $centered, $vis, ]) {{ $attrs }}> @if($isImage) @elseif($isDark) @endif
@if(count($crumbs)) @endif
@if(filled($data['eyebrow'] ?? null))

{{ $data['eyebrow'] }}

@endif

{{ $title }}

@if(filled($data['subtitle'] ?? null))

{{ $data['subtitle'] }}

@endif @if($hasActions)
@if(filled($data['primary_text'] ?? null)) {{ $data['primary_text'] }} @endif @if(filled($data['secondary_text'] ?? null)) {{ $data['secondary_text'] }} @endif
@endif