@props(['pageIdentifier', 'fallbackTitle' => null, 'fallbackSubtitle' => null]) @php $hero = page_hero($pageIdentifier); // If no specific hero found, create fallback using global settings if (!$hero) { $hero = \App\Models\PageHero::getFallback($pageIdentifier, $fallbackTitle, $fallbackSubtitle); } $title = $hero->title ?? $fallbackTitle ?? 'Welcome'; $subtitle = $hero->subtitle ?? $fallbackSubtitle ?? ''; @endphp
{{-- Background Image --}} @if($hero->background_image)
@else
@endif {{-- Overlay --}}
{{-- Content --}}

{{ $title }}

@if($subtitle)

{{ $subtitle }}

@endif {{-- CTA Buttons --}} @if($hero->cta_primary_text || $hero->cta_secondary_text)
@if($hero->cta_primary_text && $hero->cta_primary_url) {{ $hero->cta_primary_text }} @endif @if($hero->cta_secondary_text && $hero->cta_secondary_url) {{ $hero->cta_secondary_text }} @endif
@endif
{{-- Decorative Elements --}}