@php $panel = $hero['panel'] ?? []; $chart = array_values(array_map('floatval', $panel['chart'] ?? [24, 36, 30, 48, 44, 62, 58, 74, 82, 78, 92])); $chart = count($chart) > 1 ? $chart : [0, 1]; $min = min($chart); $max = max($chart); $span = max($max - $min, 1); $lastIndex = count($chart) - 1; $points = []; foreach ($chart as $index => $value) { $x = $lastIndex > 0 ? ($index / $lastIndex) * 100 : 0; $y = 92 - (($value - $min) / $span) * 72; $points[] = round($x, 2).','.round($y, 2); } $line = implode(' ', $points); $area = '0,100 '.$line.' 100,100'; $heroStats = $hero['stats'] ?? []; $avatars = $hero['avatars'] ?? []; @endphp
@if(!empty($hero['badge'])) {{ $hero['badge'] }} @endif

{{ $hero['titleLead'] ?? '' }} @if(!empty($hero['titleAccent'])) {{ $hero['titleAccent'] }} @endif @if(!empty($hero['titleTail'])) {{ $hero['titleTail'] }} @endif

{{ $hero['subtitle'] ?? '' }}

@if(!empty($hero['primaryCta']['label'])) {{ $hero['primaryCta']['label'] }} @endif @if(!empty($hero['secondaryCta']['label'])) {{ $hero['secondaryCta']['label'] }} @endif

{{ $hero['trustText'] ?? '' }}

@if(count($heroStats))
@foreach($heroStats as $stat)
{{ $stat['label'] ?? '' }}
{{ $stat['value'] ?? '' }}{{ $stat['suffix'] ?? '' }}
@endforeach
@endif