@extends('layouts.app') @section('content') @php $titre = ''; if (is_array($page->titre)) { $titre = $page->titre['fr'] ?? reset($page->titre); } else { $titre = $page->titre ?? ''; } @endphp {{-- ===================== HERO COVER ===================== --}}
@if($page && $page->cover) {{ $page->title ?? 'A propos de nous' }} @endif
{{-- ===================== BREADCRUMB ===================== --}}
{{-- ===================== SECTIONS ABOUT ===================== --}} @if($page->sections && $page->sections->count()) @foreach($page->sections as $section) @php $sectionTitle = $section->getTranslation('titre', $locale, false) ?: $section->getTranslation('titre', 'fr', false) ?: $section->getTranslation('titre', 'en', false); $sectionContent = $section->getTranslation('paragraphe', $locale, false) ?: $section->getTranslation('paragraphe', 'fr', false) ?: $section->getTranslation('paragraphe', 'en', false); $imagePosition = $section->image_position ?? 'right'; $images = is_array($section->image) ? $section->image : []; $mainImage = $images[0] ?? null; $smallImage = $images[1] ?? null; @endphp
@if($imagePosition === 'left') {{-- Images à gauche --}}
{{-- anneau décoratif --}}
{{-- étoile rose --}}
@if($mainImage) {{ $sectionTitle }} @endif @if($smallImage) {{ $sectionTitle }} @endif
{{-- Texte à droite --}}
{{-- bulle décorative --}}
{{-- petit plus --}}
@if($sectionTitle)
{{-- mini étoile --}}

{{ $sectionTitle }}

@endif @if($sectionContent)
{!! $sectionContent !!}
@endif
@else {{-- Texte à gauche --}}
{{-- bulle décorative --}}
{{-- petit plus --}}
@if($sectionTitle)
{{-- mini étoile --}}

{{ $sectionTitle }}

@endif @if($sectionContent)
{!! $sectionContent !!}
@endif
{{-- Images à droite --}}
{{-- anneau décoratif --}}
{{-- étoile rose à gauche hors image --}}
@if($mainImage) {{ $sectionTitle }} @endif @if($smallImage) {{ $sectionTitle }} @endif
@endif
@endforeach @endif
{{-- Vagues en haut --}}
{{ __('about.values') }}

{{ __('about.text') }}

{{-- Cards --}}
@foreach($values as $value)
@if($value->icone)
{{ $value->getTranslation('title', app()->getLocale()) }}
@endif

{{ $value->getTranslation('title', app()->getLocale()) }}

{{ $value->getTranslation('description', app()->getLocale()) }}

@endforeach
@endsection