@php $sections = $page->sections()->active()->orderBy('order')->get(); @endphp {{--

{{ $page->getTranslatedAttribute('title', app()->getLocale(), 'fr') }}

--}} @foreach ($sections as $section) @php // $content = filterStyleAttributes($section->getTranslatedAttribute('content', app()->getLocale(), 'fr')); $content = $section->content; @endphp {{-- @if ($page->slug == 'home') @section('css') @endsection

{{ $section->getTranslatedAttribute('title', app()->getLocale(), 'fr') }}

{!! $content !!}
{{ __('section.en_savoir_plus') }}
@else --}} @section('css') @endsection @if ($section->type == 'img-right')

{{ $section->getTranslatedAttribute('title', app()->getLocale(), 'fr') }}

{!! $content !!}

@endif @if ($section->type == 'img-left')

{{ $section->getTranslatedAttribute('title', app()->getLocale(), 'fr') }}

{!! $content !!}

@endif {{-- @endif --}} @endforeach