{{-- Hero Section with Background Image Expects $section and $content. Content fields: - background_image_url (required) - background_image_alt (optional, defaults to section title) - overlay_color (optional, e.g., 'bg-black') - overlay_opacity (optional, e.g., 'opacity-50') - title (required) - title_tag (optional, defaults to 'h1') - title_color (optional, defaults to 'text-white') - subtitle (optional) - subtitle_color (optional, defaults to 'text-gray-200') - content_align (optional, 'text-center', 'text-start', 'text-end', defaults to 'text-center') - button_text (optional) - button_link (optional) - button_class (optional, e.g., 'bg-yellow-400 hover:bg-yellow-500 text-gray-900') - secondary_button_text (optional) - secondary_button_link (optional) - secondary_button_class (optional, e.g., 'border-2 border-gray-300 hover:bg-gray-100 hover:text-purple-700 text-white') - min_height (optional, e.g., 'min-h-[70vh]', defaults to 'min-h-[60vh] md:min-h-[75vh]') --}} @php $titleTag = $content['title_tag'] ?? 'h1'; $titleColor = $content['title_color'] ?? 'text-white'; $subtitleColor = $content['subtitle_color'] ?? 'text-gray-200 dark:text-gray-300'; $contentAlign = $content['content_align'] ?? 'text-center'; $minHeight = $content['min_height'] ?? 'min-h-[60vh] md:min-h-[75vh]'; @endphp
@if(!empty($content['background_image_url'])) {{ $content['background_image_alt'] ?? $section->title ?? 'Hero background' }} @endif
<{{ $titleTag }} class="text-4xl sm:text-5xl md:text-6xl font-extrabold mb-6 leading-tight {{ $titleColor }}">{{ $content['title'] }} @if(!empty($content['subtitle']))

{{ $content['subtitle'] }}

@endif
@if(!empty($content['button_text']) && !empty($content['button_link'])) {{ $content['button_text'] }} @endif @if(!empty($content['secondary_button_text']) && !empty($content['secondary_button_link'])) {{ $content['secondary_button_text'] }} @endif