88 lines
2.9 KiB
PHP
88 lines
2.9 KiB
PHP
@extends('front.layouts.layout')
|
|
|
|
@section('title', data_get($dynamicPageModel->content, 'string_seo_title'))
|
|
@section('description', data_get($dynamicPageModel->content, '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
|
|
|
|
{{-- KEY FIGURES --}}
|
|
@php $section = $getSection('list_section_key_figures'); @endphp
|
|
@if($section)
|
|
<x-front.key-figures
|
|
:id="$getAnchor($section)"
|
|
:keyFigures="$section"
|
|
/>
|
|
@endif
|
|
|
|
{{-- HISTORICAL --}}
|
|
@php $section = $getSection('list_section_our_history'); @endphp
|
|
@if($section)
|
|
<x-front.pages.know-us.historical
|
|
:id="$getAnchor($section)"
|
|
:ourHistory="$section"
|
|
/>
|
|
@endif
|
|
|
|
{{-- PROJECT --}}
|
|
@php
|
|
$section = $getSection('list_section_our_project');
|
|
$ourProject = $section ? [
|
|
'title' => $section['string_title'],
|
|
'subtitle' => $section['string_subtitle'],
|
|
'text' => $section['wysiwyg_content'],
|
|
] : null;
|
|
@endphp
|
|
@if($section)
|
|
<x-front.commitments.wrapper
|
|
:id="$getAnchor($section)"
|
|
:engagements="$ourProject"
|
|
/>
|
|
@endif
|
|
|
|
{{-- VALUES --}}
|
|
@php $section = $getSection('list_section_our_values'); @endphp
|
|
@if($section)
|
|
<x-front.values
|
|
:id="$getAnchor($section)"
|
|
:title="$section['string_title']"
|
|
:list="$section['list_values']"
|
|
/>
|
|
@endif
|
|
|
|
{{-- GOVERNANCE --}}
|
|
@php $section = $getSection('list_section_our_governance'); @endphp
|
|
@if($section)
|
|
<x-front.pages.know-us.our-governance
|
|
:id="$getAnchor($section)"
|
|
:governance="$section"
|
|
/>
|
|
@endif
|
|
|
|
{{-- ORGANIZATION --}}
|
|
@php $section = $getSection('list_section_our_organization'); @endphp
|
|
@if($section)
|
|
<x-front.pages.know-us.our-organisation
|
|
:id="$getAnchor($section)"
|
|
:organization="$section"
|
|
:childPages="$dynamicPageModel->childPages"
|
|
/>
|
|
@endif
|
|
|
|
{{-- IMPLANTATIONS --}}
|
|
@php $section = $getSection('list_section_our_implantations'); @endphp
|
|
@if($section)
|
|
<!-- Charger l'API Google Maps -->
|
|
<script nonce="{{ $nonce ?? '' }}" async src="https://maps.googleapis.com/maps/api/js?key={{ config('services.google.maps') }}&callback=initMap&language={{ app()->getLocale() }}"></script>
|
|
<script nonce="{{ $nonce ?? '' }}" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/OverlappingMarkerSpiderfier/1.0.3/oms.min.js"></script>
|
|
<x-front.pages.know-us.our-implantations
|
|
:id="$getAnchor($section)"
|
|
:implantations="$section"
|
|
/>
|
|
@endif
|
|
@endsection
|