@extends('front.layouts.layout') @section('title', data_get($dynamicPageModel->content, 'list_seo.0.string_seo_title')) @section('description', data_get($dynamicPageModel->content, 'list_seo.0.textarea_seo_description')) @section('content') @php $content = $dynamicPageModel->content; $getSection = fn($key) => $content[$key][0] ?? null; $getAnchor = fn($section) => Str::slug($section['string_title'] ?? ''); @endphp {{-- COMMITMENTS LIST --}} @php $section = $getSection('list_section_our_commitments'); @endphp @if($section) @php $engagements = [ 'title' => $section['string_title'], 'subtitle' => $section['string_subtitle'], 'text' => $section['wysiwyg_description'], ]; @endphp @endif {{-- COMMITMENT N°1 --}} @php $section = $getSection('list_section_our_strategy'); @endphp @if ($section) @endif {{-- COMMITMENT N°2 --}} @php $section = $getSection('list_section_our_ecosystem'); @endphp @if ($section) @endif {{-- COMMITMENT N°3 --}} @php $section = $getSection('list_section_our_governance'); @endphp @if($section) @php // Anchor construction. $specificSection = $pageNousConnaitre->content['list_section_our_values']; $anchor = $specificSection ? '#' . \Illuminate\Support\Str::slug($specificSection[0]['string_title']) : ''; $targetModel = \App\Models\PageConfig::getModelFromInputModelConfig( $section['list_page_link'][0]['model_page'], $section['list_page_link'][0]['reserved_model_page'], ); $buttonUrl = sprintf("%s%s", \App\Helpers\RouteHelper::routeNameChecker("front.dynamic-pages.{$targetModel->id_key}"), $anchor); @endphp @endif {{-- COMMITMENT N°4 --}} @php $section = $getSection('list_section_business_ethics'); @endphp @if($section) @endif {{-- COMMITMENT N°5 --}} @php $section = $getSection('list_section_business_ethics'); $section = $section ? $section['list_block_simple'][0] : null; @endphp @if($section) @endif {{-- COMMITMENTS LIST --}} @if($pageNosEngagements->childPages->count())
@endif @endsection