@props([ 'showCta' => true, ]) @php $beliefs = collect(preg_split('/\r\n|\r|\n/', content('home.philosophy.beliefs'))) ->map(fn (string $line) => trim($line)) ->filter() ->values(); $conclusion = content('home.philosophy.conclusion'); $badge = content('home.philosophy.badge'); $ctaLabel = content('home.philosophy.cta_label'); $infographic = content('home.philosophy.infographic'); @endphp

{{ content('home.philosophy.heading') }}

@if ($badge !== '')

{{ $badge }}

@endif
@if ($infographic !== '') {{-- Finished infographic supplied per language --}}
{{ content('home.philosophy.heading') }}
@elseif ($beliefs->isNotEmpty()) @endif @if ($infographic === '' && $conclusion !== '')

{{ $conclusion }}

@endif @if ($showCta && $ctaLabel !== '') @endif