@props([ 'slides' => [], ]) @php $items = collect($slides) ->filter(fn ($row) => ! empty($row['image_url'])) ->values() ->map(fn (array $row) => [ 'id' => (int) ($row['id'] ?? 0), 'title' => (string) ($row['title'] ?? ''), 'subtitle' => (string) ($row['alt_text'] ?? ''), 'alt' => (string) ($row['alt_text'] ?? $row['title'] ?? ''), 'src' => (string) $row['image_url'], 'srcset' => $row['srcset'] ?? null, 'sizes' => $row['sizes'] ?? null, ]) ->all(); $heroStats = site_profile()->shows('hero_kpis') ? config('site.hero_stats', []) : []; $heroTitleFallback = site_profile()->label('hero_title', __('site.hero_home_title')); $heroSubtitleFallback = site_profile()->label('hero_subtitle', __('site.hero_home_subtitle')); @endphp @if (count($items) > 0)

{{ brand_name() }}

{{ count($items) > 0 ? $items[0]['title'] : $heroTitleFallback }}

{{ count($items) > 0 ? $items[0]['subtitle'] : $heroSubtitleFallback }}

@if (site_profile()->shows('hero_usps'))
  • {{ site_profile()->label('hero_usp_1', __('site.hero_usp_1')) }}
  • {{ site_profile()->label('hero_usp_2', __('site.hero_usp_2')) }}
  • {{ site_profile()->label('hero_usp_3', __('site.hero_usp_3')) }}
@endif @if (count($heroStats) > 0)
@foreach ($heroStats as $stat)

{{ $stat['value'] ?? '' }}

{{ __($stat['label_key'] ?? '') }}

@endforeach
@endif
@if (count($items) > 1) @endif
@endif