@php $content = app(App\Services\Content\CancHomepage::class); $locale = app()->getLocale() === 'en' ? 'en' : 'fr'; $fallbackImage = App\Models\HomepageSetting::current()->heroBackgroundImageUrl(); $heroSeo = app(App\Services\Content\CancCms::class)->block('home.section.hero')?->metadata['seo'] ?? []; @endphp
@foreach($content->sections() as $section) @php $options = $content->publicMetadata($section); $component = $section->metadata['component'] ?? ''; $items = $content->items($component); $href = $content->contentHref($section); @endphp @switch($component) @case('hero')
{{ $section->localized('eyebrow') }}

{{ $section->localized('title') }} {{ $options['title_highlight_'.$locale] ?? '' }}@if(filled($options['title_suffix_'.$locale] ?? null)) {{ $options['title_suffix_'.$locale] }}@endif

@if($options['demo_enabled'] ?? true)@endif

{{ $section->localized('body') }}

@if($href){{ $section->localized('cta_label') }}@endif @if($content->secondaryHref($section)){{ $options['secondary_label_'.$locale] ?? __('canc.home.hero.cta_secondary') }}@endif
    @foreach($content->items('hero') as $assurance)
  • {{ $assurance->localized('title') }}@if($assurance->localized('body')){{ $assurance->localized('body') }}@endif
  • @endforeach
@break @case('metrics') @php($metrics = $content->metrics()) @php($metricMode = $options['metric_mode'] ?? 'automatic') @if($metrics->isNotEmpty())
@if($metricMode === 'objective')

{{ __('homepage.ui.objectives_title') }}

@endif @foreach($metrics as $metric)
{{ $metric['value'] }}{{ $metric['block']->localized('title') }}
@endforeach @if($metricMode === 'objective')

{{ __('homepage.ui.objectives_note') }}

@endif
@endif @break @case('assurances') @if($items->isNotEmpty())
@foreach($items as $item)
{{ $item->localized('title') }}{{ $item->localized('body') }}
@endforeach
@endif @break @case('steps') @case('benefits') @case('products')
@foreach($items as $index => $item)
@if($component === 'steps' && !$loop->last)@endif
@endforeach
@break @case('mobility') @php($traffic = $content->mobilitySummary())
@if($content->imageUrl($section)){{ $section->localized('image_alt') ?: __('canc.home_composition.traffic_illustration') }}@else@endif
{{ __('canc.home_composition.community') }}

{{ $section->localized('title') }}

{{ $section->localized('body') }}

{{ !$traffic['available'] ? __('canc.home_composition.reports_unavailable') : ($traffic['count'] > 0 ? __('canc.home_composition.live_reports', ['count'=>$traffic['count']]) : __('canc.home_composition.empty_reports')) }}
@if($href)@endif
@break @case('audiences')
@foreach($items as $item)@php($itemHref = $content->contentHref($item))@endforeach
@break @case('ecosystem')
{{ $section->localized('eyebrow') }}

{{ $section->localized('title') }}

{{ $section->localized('body') }}

@foreach($items as $item)
@if($content->imageUrl($item)){{ $item->localized('image_alt') ?: __('home_composition.sector_image', ['sector' => $item->localized('title')]) }}@else@endif

{{ $item->localized('title') }}

@endforeach
{{ __('home_composition.sector_note') }}
@break @case('trust') @php($logos = $content->trustLogos()) @if($logos->isNotEmpty())@endif @break @case('developers')

{{ $section->localized('title') }}

{{ $section->localized('body') }}

    @foreach($items as $item)
  • {{ $item->localized('title') }}
  • @endforeach
@if($href){{ $section->localized('cta_label') }}@endif
@break @case('final_cta')
{{ $section->localized('eyebrow') }}

{{ $section->localized('title') }}

{{ $section->localized('body') }}

@if($href){{ $section->localized('cta_label') }}@endif
    @foreach($items as $item)
  • {{ $item->localized('title') }}
  • @endforeach
@break @endswitch @endforeach