99 lines
3.3 KiB
PHP
99 lines
3.3 KiB
PHP
@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
|
|
<x-front.commitments.wrapper
|
|
:id="$getAnchor($section)"
|
|
:engagements="$engagements"
|
|
/>
|
|
@endif
|
|
|
|
{{-- COMMITMENT N°1 --}}
|
|
@php $section = $getSection('list_section_our_strategy'); @endphp
|
|
@if ($section)
|
|
<x-front.pages.commitments.commitment-1
|
|
:id="$getAnchor($section)"
|
|
:engagement="$section"
|
|
/>
|
|
@endif
|
|
|
|
{{-- COMMITMENT N°2 --}}
|
|
@php $section = $getSection('list_section_our_ecosystem'); @endphp
|
|
@if ($section)
|
|
<x-front.pages.commitments.commitment-2
|
|
:id="$getAnchor($section)"
|
|
:ecosystem="$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
|
|
<x-front.pages.commitments.commitment-3
|
|
:id="$getAnchor($section)"
|
|
:governance="$section"
|
|
:buttonUrl="$buttonUrl"
|
|
/>
|
|
@endif
|
|
|
|
{{-- COMMITMENT N°4 --}}
|
|
@php $section = $getSection('list_section_business_ethics'); @endphp
|
|
@if($section)
|
|
<x-front.pages.commitments.commitment-4
|
|
:id="$getAnchor($section)"
|
|
:business="$section"
|
|
/>
|
|
@endif
|
|
|
|
{{-- COMMITMENT N°5 --}}
|
|
@php
|
|
$section = $getSection('list_section_business_ethics');
|
|
$section = $section ? $section['list_block_simple'][0] : null;
|
|
@endphp
|
|
@if($section)
|
|
<x-front.pages.commitments.commitment-5
|
|
:id="$getAnchor($section)"
|
|
:content="$section"
|
|
/>
|
|
@endif
|
|
|
|
{{-- COMMITMENTS LIST --}}
|
|
@if($pageNosEngagements->childPages->count())
|
|
<div class="gray-bg">
|
|
<div class="engagements fw fw-container">
|
|
<div class="engagements__wrapper wrapper">
|
|
<x-front.commitments.list />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endsection
|