@extends('fo.layout') @section('title', $staticPageModel->seo_title) @section('description', $staticPageModel->seo_description) @section('breadcrumb', request()->route()->getName()) @section('banner') @include('fo.layouts.banner', [ 'h1' => __($staticPageModel->title), 'asset' => Vite::asset('resources/assets/images/banners/home_reworked.jpg'), 'title' => __('Paysage d\'un champs de blé au soleil couchant avec une lisière en fond de tableau'), 'alt' => __('Image de fond'), 'displayArrow' => true, 'buttonLink' => '#breeding', ]) @endsection @section('content')
{{-- AMBITION --}}

{{ $ambitionSection->h2_title }}

@if ($ambitionSection->text)
{!! clean($ambitionSection->text) !!}
@endif
{{-- blade-formatter-disable --}} @php $commitNav = [ ['label' => __('Élever durablement'), 'link' => '#breeding', 'color' => 'tertiary'], ['label' => __('Mieux vivre'), 'link' => '#life', 'color' => 'quad'], ['label' => __('Respecter la terre'), 'link' => '#earth', 'color' => 'quint'], ['label' => __('Bien nourrir'), 'link' => '#feed', 'color' => 'sixt']]; @endphp {{-- blade-formatter-enable --}} @foreach ($commitNav as $key => $value) @endforeach
{{-- BREEDING --}}

{{ $breedingSection->h2_title }}

@if ($breedingSection->text)
{!! clean($breedingSection->text) !!}
@endif
@include('fo.partials.key-number', [ 'color' => 'tertiary', 'value' => sprintf('%d%%', $breedingSection->data['bloc_key_nombre']['value']), 'text' => clean($breedingSection->data['bloc_text_accompagnant_le_nombre_content']['value']), 'wysiwyg' => true, 'position' => 'right', ])
{!! clean($breedingSection->data['bloc_images_content']['value']) !!} @if ($breedingSection->data['bloc_button_on_temoigne_engagements']['value']) {{ __('On témoigne') }} @endif
{{ __('Illustration représentant un éleveur et ses volailles') }}
{{-- FIXME: le document synthèse BO prévoyait un WYSIWYG, le doc de fonctionnalité et la créa demandent des images avec légendes ainsi qu'une vidéo ... Ils seraient donc à rentrer dans le WYSIWYG --}}
{{-- {!! clean($breedingSection->data['bloc_images_content']['value']) !!} --}}

ceci est un paragraphe de remplacement

{{-- LIFE --}}

{{ $lifeSection->h2_title }}

{{ __('Illustration représentant la communacation dasn un groupe') }}
@if ($lifeSection->text)
{!! clean($lifeSection->text) !!}
@endif
@include('fo.partials.key-number', [ 'color' => 'quad', 'value' => sprintf('%d%%', $lifeSection->data['bloc_key_nombre_n1']['value']), 'text' => clean($lifeSection->data['bloc_text_accompagnant_le_nombre_n1_content']['value']), 'wysiwyg' => true, 'position' => 'right', ])
@include('fo.partials.key-number', [ 'color' => 'quad', 'value' => sprintf('%d%%', $lifeSection->data['bloc_key_nombre_n2']['value']), 'text' => clean($lifeSection->data['bloc_text_accompagnant_le_nombre_n2_content']['value']), 'wysiwyg' => true, 'position' => 'left', ])
@if ($lifeSection->data['bloc_button_on_temoigne_engagements']['value']) @endif {{-- FIXME: partie remerciement à compléter --}}
{!! clean($lifeSection->data['bloc_numero2_content']['value']) !!}
@if ($lifeSection->data['bloc_button_on_bouge']['value']) @endif
{{-- EARTH --}}

{{ $earthSection->h2_title }}

@if ($earthSection->text)
{!! clean($earthSection->text) !!}
@endif
@include('fo.partials.key-number', [ 'color' => 'quint', 'value' => sprintf('%d%%', $earthSection->data['bloc_key_nombre_n1']['value']), 'text' => clean($earthSection->data['bloc_text_accompagnant_le_nombre_n1_content']['value']), 'wysiwyg' => true, 'position' => 'right', ])
@include('fo.partials.key-number', [ 'color' => 'quint', 'value' => sprintf('%d%%', $earthSection->data['bloc_key_nombre_n2']['value']), 'text' => clean($earthSection->data['bloc_text_accompagnant_le_nombre_n2_content']['value']), 'wysiwyg' => true, 'position' => 'left', ])
@if ($earthSection->data['bloc_button_on_temoigne_engagements']['value']) @endif
{{ __('Illustration représentant la nature avec des arbres et des champs') }}
$earthSection->data['bloc_image']['alt']
{!! clean($earthSection->data['bloc_numero2_content']['value']) !!}
{{-- FIXME: sliders (image/text) à compléter ici --}}
{{-- FEED --}}

{{ $feedSection->h2_title }}

{{ __('Illustration d\'une femme et d\'un enfant mangeant un délicieux repas') }}
@if ($feedSection->text)
{!! clean($feedSection->text) !!}
@endif
@include('fo.partials.key-number', [ 'color' => 'sixt', 'value' => sprintf('%d%%', $feedSection->data['bloc_key_nombre_n1']['value']), 'text' => clean($feedSection->data['bloc_text_accompagnant_le_nombre_n1_content']['value']), 'wysiwyg' => true, 'position' => 'right', ])
@include('fo.partials.key-number', [ 'color' => 'sixt', 'value' => sprintf('%d%%', $feedSection->data['bloc_key_nombre_n2']['value']), 'text' => clean($feedSection->data['bloc_text_accompagnant_le_nombre_n2_content']['value']), 'wysiwyg' => true, 'position' => 'left', ])
{{-- @if ($feedSection->data['bloc_button_on_temoigne_engagements']['value']) --}} {{-- @endif --}}
{!! clean($feedSection->data['bloc_numero2_content']['value']) !!}
{!! clean($feedSection->data['bloc_numero3_content']['value']) !!}
{{-- @if ($feedSection->data['bloc_button_on_produit']['value']) --}} {{-- @endif --}}
{{-- TESTIMONIALS --}}

{{ $testimonialsSection->h2_title }}

{{ $testimonialsSection->data['bloc_string_titre_h3_de_la_section_numero1']['value'] }}

{{-- SLIDER TESTIMONIALS --}}
{{-- FIXME: Dans le doc fonctionnalité, il est dit que la coulur de fond change en fonction du type de témoignage. Dans la créa, c'est seulement la couleur du job qui change. Qu'est-ce qu'on fait ? --}} @foreach ($testimonialModels as $testimonial)
@include('fo.partials.testimonials.card', [ 'picture' => [ 'path' => $testimonial->picture, 'alt' => $testimonial->picture_alt, 'title' => $testimonial->picture_title, ], 'job' => $testimonial->job, 'name' => $testimonial->name, 'speach' => Str::limit($testimonial->content, 200), 'bgClass' => 'bg-' . $testimonial->type->color(), 'jobClass' => 'text-white', 'nameClass' => 'text-white', 'speachClass' => 'text-white', ])
@endforeach
{{ __('flèche vers la gauche') }}

{{ $testimonialsSection->data['bloc_string_titre_h3_de_la_section_numero2']['value'] }}

@if ($testimonialsSection->text)
{{-- FIXME: un lien est prévu dans la créa et pas dans le bo, il peut être inséré via le WYSIWYG --}} {!! clean($testimonialsSection->text) !!}
@endif
@endsection