@foreach ($breadcrumbs as $breadcrumb)
diff --git a/resources/views/front/pages/accueil.blade.php b/resources/views/front/pages/accueil.blade.php
new file mode 100644
index 00000000..d9eeb7ee
--- /dev/null
+++ b/resources/views/front/pages/accueil.blade.php
@@ -0,0 +1,130 @@
+@extends('front.layouts.layout')
+
+@section('title', $dynamicPageModel->content['list_seo_fields'][0]['string_seo_title'])
+@section('description', $dynamicPageModel->content['list_seo_fields'][0]['textarea_seo_description'])
+
+@section('content')
+{{-- VIDEO --}}
+@if (isset($dynamicPageModel->content['list_section_presentation']))
+ @php
+ $video = [
+ 'show_block' => true,
+ 'title' => $dynamicPageModel->content['list_section_presentation'][0]['string_title'],
+ 'subtitle' => [
+ 'text' => $dynamicPageModel->content['list_section_presentation'][0]['string_subtitle'],
+ 'cursive' => true,
+ ],
+ 'video' => isset($dynamicPageModel->content['list_section_presentation'][0]['youtubeid_video'])
+ ? $dynamicPageModel->content['list_section_presentation'][0]['youtubeid_video']
+ : $dynamicPageModel->content['list_section_presentation'][0]['vimeoid_video'],
+ 'type_video' => isset($dynamicPageModel->content['list_section_presentation'][0]['youtubeid_video']) ? 'youtube' : 'vimeo',
+ 'texte' => ''
+ ];
+ @endphp
+
+@endif
+
+{{-- ENGAGEMENTS --}}
+@if(isset($pageNosEngagements))
+ @php
+ $engagements = [
+ 'title' => $pageNosEngagements->title,
+ 'subtitle' => '',
+ 'text' => $dynamicPageModel->content['list_section_our_commitments'][0]['wysiwyg_content'],
+ 'button' => [
+ 'title' => $pageNosEngagements->title,
+ 'url' => \App\Helpers\RouteHelper::routeNameChecker("front.dynamic-pages.$pageNosEngagements->id_key"),
+ 'target' => '',
+ ],
+ ];
+ @endphp
+
+@endif
+
+{{-- KEY FIGURES --}}
+@if(isset($pageNousConnaitre))
+
+@endif
+
+{{-- VALUES --}}
+@if(isset($pageNousConnaitre))
+
+@endif
+
+{{-- TEXT BLOCK --}}
+@php
+ $blocks = [
+ 'hide_block' => false,
+ 'title' => $dynamicPageModel->content['list_section_together'][0]['string_title'],
+ 'subtitle' => [
+ 'text' => $dynamicPageModel->content['list_section_together'][0]['string_subtitle'],
+ 'cursive' => true,
+ ],
+ 'bg' => true,
+ 'list' => [],
+ ];
+ foreach($dynamicPageModel->content['list_section_together'][0]['list_content_block'] as $keyContent => $content) {
+ $positionMedium = intval($content['list_medium'][0]['position_medium']);
+ array_push($blocks['list'], [
+ 'title' => $content['string_title'] ?? null,
+ 'text' => $content['wysiwyg_description'],
+ 'quote' => 0,
+ 'swap_position' => $positionMedium === \App\Enums\ElementPositionEnum::showbottom->value()
+ ? true
+ : $positionMedium === \App\Enums\ElementPositionEnum::showright->value(),
+ 'in_row' => $positionMedium === \App\Enums\ElementPositionEnum::showbottom->value(),
+ 'floated' => 0,
+ 'align_center' => 1,
+ 'borders_desktop' => [
+ 'left' => true,
+ 'right' => true,
+ 'top' => true,
+ 'bottom' => true,
+ ],
+ 'borders_mobile' => [
+ 'left' => true,
+ 'right' => true,
+ 'top' => true,
+ 'bottom' => true,
+ ],
+ 'image' => [
+ [
+ 'url' => $content['list_medium'][0]['image_picture'],
+ 'alt' => $content['list_medium'][0]['string_alt'],
+ ],
+ ],
+ 'button' => [
+ 'title' => $content['list_button'][0]['string_label'],
+ 'url' => $content['list_button'][0]['url_link'],
+ 'target' => '_blank',
+ ],
+ 'button_icon' => 'btn__icon_arrow-right',
+ ]);
+ }
+@endphp
+
+
+{{-- BRANDS --}}
+@php
+ $brands = [];
+ if (
+ isset($pageNosMarques)
+ && isset($pageNosMarques->content['list_our_big_brands'])
+ && isset($pageNosMarques->content['list_our_big_brands'][0]['list_brands'])
+ ) {
+ foreach ($pageNosMarques->content['list_our_big_brands'][0]['list_brands'] as $key => $logo) {
+ array_push($brands, [
+ 'image' => [
+ 'url' => asset($logo['list_logo'][0]['image_brand_logo']),
+ ],
+ 'link' => \App\Helpers\RouteHelper::routeNameChecker('front.dynamic-pages.nos-marques'),
+ ]);
+ }
+ }
+@endphp
+@if(isset($pageNosMarques) && !empty($brands))
+
+@endif
+
+@endsection
diff --git a/resources/views/front/pages/error.blade.php b/resources/views/front/pages/error.blade.php
index dd49c7cc..71927380 100644
--- a/resources/views/front/pages/error.blade.php
+++ b/resources/views/front/pages/error.blade.php
@@ -6,7 +6,7 @@
@section('content')
{{ sprintf("%s - %s", $status, trans("errors.$status.title")) }}
{{ trans("errors.$status.description") }}
-
- Revenir à la page d'accueil
+
+ {{ trans("front.back_to_homepage") }}
@endsection
diff --git a/resources/views/front/pages/home.blade.php b/resources/views/front/pages/home.blade.php
deleted file mode 100644
index ac36fcdf..00000000
--- a/resources/views/front/pages/home.blade.php
+++ /dev/null
@@ -1,674 +0,0 @@
-@extends('front.layouts.layout')
-
-@section('title', 'Accueil - LDC Le Groupe LDC, groupe agroalimentaire responsable')
-@section('description', 'LDC, un groupe responsable parmi les leaders européens de la volaille et du traiteur,
-ancré dans les territoires et reconnu pour la qualité de ses produits.')
-
-@section('content')
-
-@php
- global $mob;
- $mob = false;
-
- $hero = [
- [
- 'title' => 'BIENVENUE CHEZ LDC',
- 'subtitle' => 'LDC, un Groupe familial parmi les leaders européens de la volaille et du traiteur',
- 'text' => '',
- 'button' => '',
- 'video_?' => true,
- 'video_file' => '/assets/uploads/2023/06/Publicité-marque-LDC.mp4',
- 'image' => '/assets/uploads/2020/02/homepage_hero.jpg',
- 'image_borders' => [
- 'desktop' => [
- 'left' => true,
- 'right' => true,
- 'top' => true,
- 'bottom' => true,
- ], 'mobile' => [
- 'left' => false,
- 'right' => false,
- 'top' => false,
- 'bottom' => true,
- ],
- ],
- ],
- ];
-@endphp
-
-
-
-
-{{-- VIDEO --}}
-@php
- $video = [
- 'show_block' => true,
- 'title' => 'Présentation',
- 'subtitle' => [
- 'text' => 'Du Groupe LDC',
- 'cursive' => true,
- ],
- 'video' => 't6w2stRvDH8',
- 'type_video' => 'youtube',
- 'texte' => ''
- ];
-@endphp
-
-
-{{-- ENGAGEMENTS --}}
-@php
- $engagements = [
- 'title' => 'Nos engagements',
- 'subtitle' => '', 'text' => 'Ancré dans les territoires, soucieux de préserver les filières locales et de
- valoriser l’origine nationale, LDC s’organise pour répondre avec pragmatisme aux enjeux de demain via 4 engagements
- prioritaires : Élever Durablement, Mieux Vivre Ensemble, Respecter la Terre, Bien Nourrir.',
- 'button' => [
- 'title' => 'Nos engagements',
- 'url' => \App\Helpers\RouteHelper::routeNameChecker('front.dynamic-pages.nos-engagements'),
- 'target' => '',
- ],
- ];
-@endphp
-
-
-{{-- KEY FIGURES --}}
-
-
-{{-- VALUES --}}
-
-
-{{-- TEXT BLOCK --}}
-@php
- $text_block = [
- 'hide_block' => false,
- 'title' => 'Ensemble',
- 'subtitle' => [
- 'text' => 'Cultivons notre avenir',
- 'cursive' => true,
- ],
- 'bg' => true,
- 'list' => [
- [
- 'swap_position' => true,
- 'in_row' => false,
- 'floated' => false,
- 'align_center' => false,
- 'quote' => false,
- 'quote_author' => '',
- 'title' => 'Vous souhaitez exercer vos talents ? Rejoignez-nous !',
- 'text' => 'Vous avez le goût de l’initiative et souhaitez intégrer une entreprise qui vous
- fasse confiance ?
- Vous recherchez une entreprise conviviale, engagée et innovante qui vous encourage à exprimer vos
- idées et à partager ce qui vous anime ?
- Rejoignez-nous !',
- 'button' => [
- 'title' => 'Nous rejoindre',
- 'url' => 'https://recrutement.ldc.fr/fr/annonces',
- 'target' => '_blank',
- ],
- 'button_icon' => 'btn__icon_arrow-right',
- 'image' => [
- [
- 'ID' => 14287,
- 'id' => 14287,
- 'title' => 'REJOIGNEZ-NOUS_2025',
- 'filename' => 'REJOIGNEZ-NOUS_2025.jpg',
- 'filesize' => 0,
- 'url' => '/assets/uploads/2025/01/REJOIGNEZ-NOUS_2025.jpg',
- 'link' => '/rejoignez-nous_2025/',
- 'alt' => 'Rejoignez-nous : nous recrutons !',
- 'author' => '8',
- 'description' => 'Rejoignez-nous : nous recrutons !',
- 'caption' => 'Rejoignez-nous : nous recrutons !',
- 'name' => 'rejoignez-nous_2025',
- 'status' => 'inherit',
- 'uploaded_to' => 0,
- 'date' => '2025-01-07 14:27:24',
- 'modified' => '2025-01-07 14:28:13',
- 'menu_order' => 0,
- 'mime_type' => 'image/jpeg',
- 'type' => 'image',
- 'subtype' => 'jpeg',
- 'icon' => '/wp/wp-includes/images/media/default.png',
- 'width' => 600,
- 'height' => 400,
- 'sizes' => [
- 'thumbnail' => '/assets/uploads/2025/01/REJOIGNEZ-NOUS_2025-150x150.jpg',
- 'thumbnail-width' => 150,
- 'thumbnail-height' => 150,
- 'medium' => '/assets/uploads/2025/01/REJOIGNEZ-NOUS_2025-300x200.jpg',
- 'medium-width' => 300,
- 'medium-height' => 200,
- 'medium_large' => '/assets/uploads/2025/01/REJOIGNEZ-NOUS_2025.jpg',
- 'medium_large-width' => 600,
- 'medium_large-height' => 400,
- 'large' => '/assets/uploads/2025/01/REJOIGNEZ-NOUS_2025.jpg',
- 'large-width' => 600,
- 'large-height' => 400,
- '1536x1536' => '/assets/uploads/2025/01/REJOIGNEZ-NOUS_2025.jpg',
- '1536x1536-width' => 600,
- '1536x1536-height' => 400,
- '2048x2048' => '/assets/uploads/2025/01/REJOIGNEZ-NOUS_2025.jpg',
- '2048x2048-width' => 600,
- '2048x2048-height' => 400,
- 'post-thumbnail' => '/assets/uploads/2025/01/REJOIGNEZ-NOUS_2025-360x240.jpg',
- 'post-thumbnail-width' => 360,
- 'post-thumbnail-height' => 240,
- 'alm-thumbnail' => '/assets/uploads/2025/01/REJOIGNEZ-NOUS_2025-150x150.jpg',
- 'alm-thumbnail-width' => 150,
- 'alm-thumbnail-height' => 150,
- ],
- ],
- ],
- 'image_description' => '',
- 'video' => NULL,
- 'borders_desktop' => [
- 'left' => true,
- 'right' => true,
- 'top' => true,
- 'bottom' => true,
- ],
- 'borders_mobile' => [
- 'left' => true,
- 'right' => true,
- 'top' => true,
- 'bottom' => true,
- ],
- ],
- [
- 'swap_position' => false,
- 'in_row' => false,
- 'floated' => false,
- 'align_center' => false,
- 'quote' => false,
- 'quote_author' => '',
- 'title' => 'Éleveurs, rejoignez-nous !',
- 'text' => 'Nos éleveurs sont des femmes et des hommes responsables et passionnés par leur travail et
- leurs animaux, avec lesquels le Groupe LDC entretient une relation de confiance depuis près de 50 ans.
- Nos éleveurs respectent les différents cahiers des charges et leurs engagements (respect des animaux
- et de l’environnement, transparence, contrôles par des organismes tiers…], et le Groupe protège leur
- revenu via la contractualisation (fixation des prix, sécurisation des approvisionnements et débouchés)
- et l’accompagnement technique (conseil par des spécialistes de l’élevage, formations, audits qualité…).
- Pour développer durablement l’élevage, le Groupe s’appuie historiquement sur les démarches sous signes
- officiels de qualité (Label Rouge, Appellation d’origine contrôlée, Agriculture Biologique) pour les
- volailles élevées en plein-air, sur la Certification Conformité Produit, et depuis 2017 sur notre
- démarche éthique « Nature d’Eleveurs » pour les volailles certifiées et les volailles du quotidien.',
- 'button' => [
- 'title' => 'Nous rejoindre en tant qu\'éleveur',
- 'url' => 'https://www.ldc.fr/nous-contacter/nous-rejoindre-en-tant-queleveur/',
- 'target' => '_blank',
- ],
- 'button_icon' => 'btn__icon_arrow-right',
- 'image' => [
- [
- 'ID' => 6779,
- 'id' => 6779,
- 'title' => 'ELEVEURS-REJOIGNEZ-NOUS2',
- 'filename' => 'ELEVEURS-REJOIGNEZ-NOUS2.jpg',
- 'filesize' => 0,
- 'url' => '/assets/uploads/2020/10/ELEVEURS-REJOIGNEZ-NOUS2.jpg',
- 'link' => '/accueil/eleveurs-rejoignez-nous2/',
- 'alt' => 'Une éleveuse et sa volaille dans son jardin.',
- 'author' => '8',
- 'description' => 'Une éleveuse et sa volaille dans son jardin.',
- 'caption' => 'ELEVEURS-REJOIGNEZ-NOUS2',
- 'name' => 'eleveurs-rejoignez-nous2',
- 'status' => 'inherit',
- 'uploaded_to' => 339,
- 'date' => '2020-10-21 13:04:12',
- 'modified' => '2020-10-21 13:05:07',
- 'menu_order' => 0,
- 'mime_type' => 'image/jpeg',
- 'type' => 'image',
- 'subtype' => 'jpeg',
- 'icon' => '/wp/wp-includes/images/media/default.png',
- 'width' => 500,
- 'height' => 281,
- 'sizes' => [
- 'thumbnail' => '/assets/uploads/2020/10/ELEVEURS-REJOIGNEZ-NOUS2-150x150.jpg',
- 'thumbnail-width' => 150,
- 'thumbnail-height' => 150,
- 'medium' => '/assets/uploads/2020/10/ELEVEURS-REJOIGNEZ-NOUS2-300x169.jpg',
- 'medium-width' => 300,
- 'medium-height' => 169,
- 'medium_large' => '/assets/uploads/2020/10/ELEVEURS-REJOIGNEZ-NOUS2.jpg',
- 'medium_large-width' => 500,
- 'medium_large-height' => 281,
- 'large' => '/assets/uploads/2020/10/ELEVEURS-REJOIGNEZ-NOUS2.jpg',
- 'large-width' => 500,
- 'large-height' => 281,
- '1536x1536' => '/assets/uploads/2020/10/ELEVEURS-REJOIGNEZ-NOUS2.jpg',
- '1536x1536-width' => 500,
- '1536x1536-height' => 281,
- '2048x2048' => '/assets/uploads/2020/10/ELEVEURS-REJOIGNEZ-NOUS2.jpg',
- '2048x2048-width' => 500,
- '2048x2048-height' => 281,
- 'post-thumbnail' => '/assets/uploads/2020/10/ELEVEURS-REJOIGNEZ-NOUS2-412x232.jpg',
- 'post-thumbnail-width' => 412,
- 'post-thumbnail-height' => 232,
- 'alm-thumbnail' => '/assets/uploads/2020/10/ELEVEURS-REJOIGNEZ-NOUS2-150x150.jpg',
- 'alm-thumbnail-width' => 150,
- 'alm-thumbnail-height' => 150,
- ],
- ],
- ],
- 'image_description' => '',
- 'video' => NULL,
- 'borders_desktop' => [
- 'left' => true,
- 'right' => true,
- 'top' => true,
- 'bottom' => true,
- ],
- 'borders_mobile' => [
- 'left' => true,
- 'right' => true,
- 'top' => true,
- 'bottom' => true,
- ],
- ],
- ],
- ];
-
-@endphp
-
-
-
-{{-- BRANDS --}}
-@php
- $brands = [
- [
- 'image' => [
- 'ID' => 10154,
- 'id' => 10154,
- 'title' => 'Lg-site-web-ldc-255x255',
- 'filename' => 'Lg-site-web-ldc-255x255-1.png',
- 'filesize' => 0,
- 'url' => '/assets/uploads/2021/05/Lg-site-web-ldc-255x255-1.png',
- 'link' => '/lg-site-web-ldc-255x255/',
- 'alt' => '',
- 'author' => '8',
- 'description' => '',
- 'caption' => '',
- 'name' => 'lg-site-web-ldc-255x255',
- 'status' => 'inherit',
- 'uploaded_to' => 0,
- 'date' => '2021-05-10 12:27:55',
- 'modified' => '2021-05-10 12:27:55',
- 'menu_order' => 0,
- 'mime_type' => 'image/png',
- 'type' => 'image',
- 'subtype' => 'png',
- 'icon' => '/wp/wp-includes/images/media/default.png',
- 'width' => 255,
- 'height' => 255,
- 'sizes' => [
- 'thumbnail' => '/assets/uploads/2021/05/Lg-site-web-ldc-255x255-1-150x150.png',
- 'thumbnail-width' => 150,
- 'thumbnail-height' => 150,
- 'medium' => '/assets/uploads/2021/05/Lg-site-web-ldc-255x255-1.png',
- 'medium-width' => 255,
- 'medium-height' => 255,
- 'medium_large' => '/assets/uploads/2021/05/Lg-site-web-ldc-255x255-1.png',
- 'medium_large-width' => 255,
- 'medium_large-height' => 255,
- 'large' => '/assets/uploads/2021/05/Lg-site-web-ldc-255x255-1.png',
- 'large-width' => 255,
- 'large-height' => 255,
- '1536x1536' => '/assets/uploads/2021/05/Lg-site-web-ldc-255x255-1.png',
- '1536x1536-width' => 255,
- '1536x1536-height' => 255,
- '2048x2048' => '/assets/uploads/2021/05/Lg-site-web-ldc-255x255-1.png',
- '2048x2048-width' => 255,
- '2048x2048-height' => 255,
- 'post-thumbnail' => '/assets/uploads/2021/05/Lg-site-web-ldc-255x255-1-240x240.png',
- 'post-thumbnail-width' => 240,
- 'post-thumbnail-height' => 240,
- 'alm-thumbnail' => '/assets/uploads/2021/05/Lg-site-web-ldc-255x255-1-150x150.png',
- 'alm-thumbnail-width' => 150,
- 'alm-thumbnail-height' => 150,
- ],
- ],
- 'link' => '/nos-marques/#brand_1_1',
- ],
- [
- 'image' => [
- 'ID' => 5507,
- 'id' => 5507,
- 'title' => 'LOUE-2020',
- 'filename' => 'LOUE-2020.png',
- 'filesize' => 0,
- 'url' => '/assets/uploads/2020/06/LOUE-2020.png',
- 'link' => '/loue-2020/',
- 'alt' => '',
- 'author' => '7',
- 'description' => '',
- 'caption' => '',
- 'name' => 'loue-2020',
- 'status' => 'inherit',
- 'uploaded_to' => 0,
- 'date' => '2020-06-25 12:15:31',
- 'modified' => '2020-06-25 12:15:31',
- 'menu_order' => 0,
- 'mime_type' => 'image/png',
- 'type' => 'image',
- 'subtype' => 'png',
- 'icon' => '/wp/wp-includes/images/media/default.png',
- 'width' => 255,
- 'height' => 255,
- 'sizes' => [
- 'thumbnail' => '/assets/uploads/2020/06/LOUE-2020-150x150.png',
- 'thumbnail-width' => 150,
- 'thumbnail-height' => 150,
- 'medium' => '/assets/uploads/2020/06/LOUE-2020.png',
- 'medium-width' => 255,
- 'medium-height' => 255,
- 'medium_large' => '/assets/uploads/2020/06/LOUE-2020.png',
- 'medium_large-width' => 255,
- 'medium_large-height' => 255,
- 'large' => '/assets/uploads/2020/06/LOUE-2020.png',
- 'large-width' => 255,
- 'large-height' => 255,
- '1536x1536' => '/assets/uploads/2020/06/LOUE-2020.png',
- '1536x1536-width' => 255,
- '1536x1536-height' => 255,
- '2048x2048' => '/assets/uploads/2020/06/LOUE-2020.png',
- '2048x2048-width' => 255,
- '2048x2048-height' => 255,
- 'post-thumbnail' => '/assets/uploads/2020/06/LOUE-2020-240x240.png',
- 'post-thumbnail-width' => 240,
- 'post-thumbnail-height' => 240,
- 'alm-thumbnail' => '/assets/uploads/2020/06/LOUE-2020-150x150.png',
- 'alm-thumbnail-width' => 150,
- 'alm-thumbnail-height' => 150,
- ],
- ],
- 'link' => '/nos-marques/#brand_1_2',
- ],
- [
- 'image' => [
- 'ID' => 505,
- 'id' => 505,
- 'title' => 'brand-3',
- 'filename' => 'brand-3-2.png',
- 'filesize' => 0,
- 'url' => '/assets/uploads/2020/02/brand-3-2.png',
- 'link' => '/nos-marques/brand-3-3/',
- 'alt' => '',
- 'author' => '20',
- 'description' => '',
- 'caption' => '',
- 'name' => 'brand-3-3',
- 'status' => 'inherit',
- 'uploaded_to' => 175,
- 'date' => '2020-02-20 11:55:52',
- 'modified' => '2020-02-20 11:55:52',
- 'menu_order' => 0,
- 'mime_type' => 'image/png',
- 'type' => 'image',
- 'subtype' => 'png',
- 'icon' => '/wp/wp-includes/images/media/default.png',
- 'width' => 255,
- 'height' => 255,
- 'sizes' => [
- 'thumbnail' => '/assets/uploads/2020/02/brand-3-2-150x150.png',
- 'thumbnail-width' => 150,
- 'thumbnail-height' => 150,
- 'medium' => '/assets/uploads/2020/02/brand-3-2.png',
- 'medium-width' => 255,
- 'medium-height' => 255,
- 'medium_large' => '/assets/uploads/2020/02/brand-3-2.png',
- 'medium_large-width' => 255,
- 'medium_large-height' => 255,
- 'large' => '/assets/uploads/2020/02/brand-3-2.png',
- 'large-width' => 255,
- 'large-height' => 255,
- '1536x1536' => '/assets/uploads/2020/02/brand-3-2.png',
- '1536x1536-width' => 255,
- '1536x1536-height' => 255,
- '2048x2048' => '/assets/uploads/2020/02/brand-3-2.png',
- '2048x2048-width' => 255,
- '2048x2048-height' => 255,
- 'post-thumbnail' => '/assets/uploads/2020/02/brand-3-2-240x240.png',
- 'post-thumbnail-width' => 240,
- 'post-thumbnail-height' => 240,
- 'alm-thumbnail' => '/assets/uploads/2020/02/brand-3-2-150x150.png',
- 'alm-thumbnail-width' => 150,
- 'alm-thumbnail-height' => 150,
- ],
- ],
- 'link' => '/nos-marques/#brand_1_3',
- ],
- [
- 'image' => [
- 'ID' => 506,
- 'id' => 506,
- 'title' => 'brand-4',
- 'filename' => 'brand-4-2.png',
- 'filesize' => 0,
- 'url' => '/assets/uploads/2020/02/brand-4-2.png',
- 'link' => '/nos-marques/brand-4-3/',
- 'alt' => '',
- 'author' => '20',
- 'description' => '',
- 'caption' => '',
- 'name' => 'brand-4-3',
- 'status' => 'inherit',
- 'uploaded_to' => 175,
- 'date' => '2020-02-20 11:55:52',
- 'modified' => '2020-02-20 11:55:52',
- 'menu_order' => 0,
- 'mime_type' => 'image/png',
- 'type' => 'image',
- 'subtype' => 'png',
- 'icon' => '/wp/wp-includes/images/media/default.png',
- 'width' => 255,
- 'height' => 255,
- 'sizes' => [
- 'thumbnail' => '/assets/uploads/2020/02/brand-4-2-150x150.png',
- 'thumbnail-width' => 150,
- 'thumbnail-height' => 150,
- 'medium' => '/assets/uploads/2020/02/brand-4-2.png',
- 'medium-width' => 255,
- 'medium-height' => 255,
- 'medium_large' => '/assets/uploads/2020/02/brand-4-2.png',
- 'medium_large-width' => 255,
- 'medium_large-height' => 255,
- 'large' => '/assets/uploads/2020/02/brand-4-2.png',
- 'large-width' => 255,
- 'large-height' => 255,
- '1536x1536' => '/assets/uploads/2020/02/brand-4-2.png',
- '1536x1536-width' => 255,
- '1536x1536-height' => 255,
- '2048x2048' => '/assets/uploads/2020/02/brand-4-2.png',
- '2048x2048-width' => 255,
- '2048x2048-height' => 255,
- 'post-thumbnail' => '/assets/uploads/2020/02/brand-4-2-240x240.png',
- 'post-thumbnail-width' => 240,
- 'post-thumbnail-height' => 240,
- 'alm-thumbnail' => '/assets/uploads/2020/02/brand-4-2-150x150.png',
- 'alm-thumbnail-width' => 150,
- 'alm-thumbnail-height' => 150,
- ],
- ],
- 'link' => '/nos-marques/#brand_1_4',
- ],
- [
- 'image' => [
- 'ID' => 5503,
- 'id' => 5503,
- 'title' => 'MAITRE_COQ_255x255',
- 'filename' => 'MAITRE_COQ_255x255.png',
- 'filesize' => 0,
- 'url' => '/assets/uploads/2020/06/MAITRE_COQ_255x255.png',
- 'link' => '/type/arrive-plateforme-logistique-les-essarts/maitre_coq_255x255/',
- 'alt' => '',
- 'author' => '7',
- 'description' => '',
- 'caption' => '',
- 'name' => 'maitre_coq_255x255',
- 'status' => 'inherit',
- 'uploaded_to' => 1373,
- 'date' => '2020-06-25 12:15:30',
- 'modified' => '2021-03-04 13:36:10',
- 'menu_order' => 0,
- 'mime_type' => 'image/png',
- 'type' => 'image',
- 'subtype' => 'png',
- 'icon' => '/wp/wp-includes/images/media/default.png',
- 'width' => 255,
- 'height' => 255,
- 'sizes' => [
- 'thumbnail' => '/assets/uploads/2020/06/MAITRE_COQ_255x255-150x150.png',
- 'thumbnail-width' => 150,
- 'thumbnail-height' => 150,
- 'medium' => '/assets/uploads/2020/06/MAITRE_COQ_255x255.png',
- 'medium-width' => 255,
- 'medium-height' => 255,
- 'medium_large' => '/assets/uploads/2020/06/MAITRE_COQ_255x255.png',
- 'medium_large-width' => 255,
- 'medium_large-height' => 255,
- 'large' => '/assets/uploads/2020/06/MAITRE_COQ_255x255.png',
- 'large-width' => 255,
- 'large-height' => 255,
- '1536x1536' => '/assets/uploads/2020/06/MAITRE_COQ_255x255.png',
- '1536x1536-width' => 255,
- '1536x1536-height' => 255,
- '2048x2048' => '/assets/uploads/2020/06/MAITRE_COQ_255x255.png',
- '2048x2048-width' => 255,
- '2048x2048-height' => 255,
- 'post-thumbnail' => '/assets/uploads/2020/06/MAITRE_COQ_255x255-240x240.png',
- 'post-thumbnail-width' => 240,
- 'post-thumbnail-height' => 240,
- 'alm-thumbnail' => '/assets/uploads/2020/06/MAITRE_COQ_255x255-150x150.png',
- 'alm-thumbnail-width' => 150,
- 'alm-thumbnail-height' => 150,
- ],
- ],
- 'link' => '/nos-marques/#brand_1_5',
- ],
- [
- 'image' => [
- 'ID' => 508,
- 'id' => 508,
- 'title' => 'brand-6',
- 'filename' => 'brand-6-2.png',
- 'filesize' => 0,
- 'url' => '/assets/uploads/2020/02/brand-6-2.png',
- 'link' => '/nos-marques/brand-6-3/',
- 'alt' => '',
- 'author' => '20',
- 'description' => '',
- 'caption' => '',
- 'name' => 'brand-6-3',
- 'status' => 'inherit',
- 'uploaded_to' => 175,
- 'date' => '2020-02-20 11:55:53',
- 'modified' => '2020-02-20 11:55:53',
- 'menu_order' => 0,
- 'mime_type' => 'image/png',
- 'type' => 'image',
- 'subtype' => 'png',
- 'icon' => '/wp/wp-includes/images/media/default.png',
- 'width' => 255,
- 'height' => 255,
- 'sizes' => [
- 'thumbnail' => '/assets/uploads/2020/02/brand-6-2-150x150.png',
- 'thumbnail-width' => 150,
- 'thumbnail-height' => 150,
- 'medium' => '/assets/uploads/2020/02/brand-6-2.png',
- 'medium-width' => 255,
- 'medium-height' => 255,
- 'medium_large' => '/assets/uploads/2020/02/brand-6-2.png',
- 'medium_large-width' => 255,
- 'medium_large-height' => 255,
- 'large' => '/assets/uploads/2020/02/brand-6-2.png',
- 'large-width' => 255,
- 'large-height' => 255,
- '1536x1536' => '/assets/uploads/2020/02/brand-6-2.png',
- '1536x1536-width' => 255,
- '1536x1536-height' => 255,
- '2048x2048' => '/assets/uploads/2020/02/brand-6-2.png',
- '2048x2048-width' => 255,
- '2048x2048-height' => 255,
- 'post-thumbnail' => '/assets/uploads/2020/02/brand-6-2-240x240.png',
- 'post-thumbnail-width' => 240,
- 'post-thumbnail-height' => 240,
- 'alm-thumbnail' => '/assets/uploads/2020/02/brand-6-2-150x150.png',
- 'alm-thumbnail-width' => 150,
- 'alm-thumbnail-height' => 150,
- ],
- ],
- 'link' => '/nos-marques/#brand_2_1',
- ],
- [
- 'image' => [
- 'ID' => 12529,
- 'id' => 12529,
- 'title' => 'logo-matines-255x255',
- 'filename' => 'logo-matines-255x255-1.gif',
- 'filesize' => 0,
- 'url' => '/assets/uploads/2023/04/logo-matines-255x255-1.gif',
- 'link' => '/logo-matines-255x255/',
- 'alt' => 'Logo de la marque Matines',
- 'author' => '8',
- 'description' => 'Logo de la marque Matines',
- 'caption' => 'Logo de la marque Matines',
- 'name' => 'logo-matines-255x255',
- 'status' => 'inherit',
- 'uploaded_to' => 0,
- 'date' => '2023-04-28 12:15:44',
- 'modified' => '2023-04-28 12:15:59',
- 'menu_order' => 0,
- 'mime_type' => 'image/gif',
- 'type' => 'image',
- 'subtype' => 'gif',
- 'icon' => '/wp/wp-includes/images/media/default.png',
- 'width' => 255,
- 'height' => 255,
- 'sizes' => [
- 'thumbnail' => '/assets/uploads/2023/04/logo-matines-255x255-1-150x150.gif',
- 'thumbnail-width' => 150,
- 'thumbnail-height' => 150,
- 'medium' => '/assets/uploads/2023/04/logo-matines-255x255-1.gif',
- 'medium-width' => 255,
- 'medium-height' => 255,
- 'medium_large' => '/assets/uploads/2023/04/logo-matines-255x255-1.gif',
- 'medium_large-width' => 255,
- 'medium_large-height' => 255,
- 'large' => '/assets/uploads/2023/04/logo-matines-255x255-1.gif',
- 'large-width' => 255,
- 'large-height' => 255,
- '1536x1536' => '/assets/uploads/2023/04/logo-matines-255x255-1.gif',
- '1536x1536-width' => 255,
- '1536x1536-height' => 255,
- '2048x2048' => '/assets/uploads/2023/04/logo-matines-255x255-1.gif',
- '2048x2048-width' => 255,
- '2048x2048-height' => 255,
- 'post-thumbnail' => '/assets/uploads/2023/04/logo-matines-255x255-1-240x240.gif',
- 'post-thumbnail-width' => 240,
- 'post-thumbnail-height' => 240,
- 'alm-thumbnail' => '/assets/uploads/2023/04/logo-matines-255x255-1-150x150.gif',
- 'alm-thumbnail-width' => 150,
- 'alm-thumbnail-height' => 150,
- ],
- ],
- 'link' => '',
- ],
- ];
- $includeBladeName = $mob ? 'front.brands-icons.brands-icons-mobile' : 'front.brands-icons.brands-icons';
-@endphp
-
-
-
-@endsection
diff --git a/resources/views/front/pages/notre-engagement.blade.php b/resources/views/front/pages/notre-engagement.blade.php
index e3977d9c..8accfdbf 100644
--- a/resources/views/front/pages/notre-engagement.blade.php
+++ b/resources/views/front/pages/notre-engagement.blade.php
@@ -106,6 +106,7 @@
'image' => [
'url' => asset($logo['list_logo'][0]['image_brand_logo']),
],
+ 'link' => \App\Helpers\RouteHelper::routeNameChecker('front.dynamic-pages.nos-marques'),
]);
}
}
diff --git a/routes/breadcrumbs-front.php b/routes/breadcrumbs-front.php
index f0c5ec55..c022d7d6 100644
--- a/routes/breadcrumbs-front.php
+++ b/routes/breadcrumbs-front.php
@@ -10,26 +10,34 @@ use Diglactic\Breadcrumbs\Generator;
use Illuminate\Support\Str;
use Mcamara\LaravelLocalization\Facades\LaravelLocalization;
+$currentLocale = app()->getLocale();
$supportedLocales = LaravelLocalization::getSupportedLanguagesKeys();
// * HOMEPAGE.
-Breadcrumbs::for('front.homepage', function (Generator $trail) {
- $trail->push(
- Str::ucfirst(trans('front.homepage')),
- route('front.homepage')
- );
-});
-
+$pageHome = DynamicPage::getModelsCached()
+ ->where('status', PageStatusEnum::published)
+ ->where('id_key', 'accueil')
+ ->first();
+if ($pageHome && !request()->routeIs("front.dynamic-pages.accueil.$currentLocale")) {
+ foreach ($supportedLocales as $key => $locale) {
+ Breadcrumbs::for("front.dynamic-pages.accueil.$locale", function (Generator $trail) use ($pageHome) {
+ $trail->push($pageHome->title, RouteHelper::routeNameChecker('front.dynamic-pages.accueil'));
+ });
+ }
+}
// * CONTACT PAGE
-Breadcrumbs::for('front.contact.index', function (Generator $trail) {
- $trail->parent('front.homepage');
+Breadcrumbs::for('front.contact.index', function (Generator $trail) use ($pageHome, $currentLocale) {
+ if ($pageHome) {
+ $trail->parent("front.dynamic-pages.accueil.$currentLocale");
+ }
$trail->push(
Str::of(trans('front.contact.index'))->ucfirst(),
route('front.contact.index')
);
});
+// * CONTACT PAGE
Breadcrumbs::for('front.contact.show', function (Generator $trail) {
$trail->parent('front.contact.index');
$slug = \request()->route()->parameters['slug'];
@@ -45,8 +53,10 @@ Breadcrumbs::for('front.contact.show', function (Generator $trail) {
});
// * SEARCH PAGE
-Breadcrumbs::for('front.search', function (Generator $trail) {
- $trail->parent('front.homepage');
+Breadcrumbs::for('front.search', function (Generator $trail) use ($pageHome, $currentLocale) {
+ if ($pageHome) {
+ $trail->parent("front.dynamic-pages.accueil.$currentLocale");
+ }
$trail->push(
Str::of(trans('front.search'))->ucfirst(),
route('front.search')
@@ -59,14 +69,15 @@ $pageEspacePresse = DynamicPage::getModelsCached()
->where('id_key', 'espace-presse')
->first();
if ($pageEspacePresse) {
- Breadcrumbs::for('front.dynamic-pages.espace-presse.fr', function (Generator $trail) use ($pageEspacePresse) {
- $trail->parent('front.homepage');
- $trail->push($pageEspacePresse->title);
- });
- Breadcrumbs::for('front.dynamic-pages.espace-presse.en', function (Generator $trail) use ($pageEspacePresse) {
- $trail->parent('front.homepage');
- $trail->push($pageEspacePresse->title);
- });
+ foreach ($supportedLocales as $key => $locale) {
+ Breadcrumbs::for("front.dynamic-pages.espace-presse.$locale", function (Generator $trail) use ($pageEspacePresse, $pageHome, $locale) {
+ if ($pageHome) {
+ $trail->parent("front.dynamic-pages.accueil.$locale");
+ }
+ $trail->parent("front.dynamic-pages.accueil");
+ $trail->push($pageEspacePresse->title);
+ });
+ }
}
// * ENGAGEMENTS PAGES.
@@ -76,8 +87,10 @@ $pageOurCommitments = DynamicPage::getModelsCached()
->first();
if ($pageOurCommitments) {
foreach ($supportedLocales as $key => $locale) {
- Breadcrumbs::for("front.dynamic-pages.nos-engagements.$locale", function (Generator $trail) use ($pageOurCommitments) {
- $trail->parent('front.homepage');
+ Breadcrumbs::for("front.dynamic-pages.nos-engagements.$locale", function (Generator $trail) use ($pageOurCommitments, $pageHome, $locale) {
+ if ($pageHome) {
+ $trail->parent("front.dynamic-pages.accueil.$locale");
+ }
$trail->push($pageOurCommitments->title, RouteHelper::routeNameChecker('front.dynamic-pages.nos-engagements'));
});
foreach ($pageOurCommitments->childPages as $key => $childPage) {
@@ -96,8 +109,10 @@ $pageKnowUs = DynamicPage::getModelsCached()
->first();
if ($pageKnowUs) {
foreach ($supportedLocales as $key => $locale) {
- Breadcrumbs::for("front.dynamic-pages.nous-connaitre.$locale", function (Generator $trail) use ($pageKnowUs) {
- $trail->parent('front.homepage');
+ Breadcrumbs::for("front.dynamic-pages.nous-connaitre.$locale", function (Generator $trail) use ($pageKnowUs, $pageHome, $locale) {
+ if ($pageHome) {
+ $trail->parent("front.dynamic-pages.accueil.$locale");
+ }
$trail->push($pageKnowUs->title);
});
}
@@ -109,14 +124,14 @@ $pageNosMarques = DynamicPage::getModelsCached()
->where('id_key', 'nos-marques')
->first();
if ($pageNosMarques) {
- Breadcrumbs::for('front.dynamic-pages.nos-marques.fr', function (Generator $trail) use ($pageNosMarques) {
- $trail->parent('front.homepage');
- $trail->push($pageNosMarques->title);
- });
- Breadcrumbs::for('front.dynamic-pages.nos-marques.en', function (Generator $trail) use ($pageNosMarques) {
- $trail->parent('front.homepage');
- $trail->push($pageNosMarques->title);
- });
+ foreach ($supportedLocales as $key => $locale) {
+ Breadcrumbs::for("front.dynamic-pages.nos-marques.$locale", function (Generator $trail) use ($pageNosMarques, $pageHome, $locale) {
+ if ($pageHome) {
+ $trail->parent("front.dynamic-pages.accueil.$locale");
+ }
+ $trail->push($pageNosMarques->title);
+ });
+ }
}
// * JOIN US.
@@ -125,14 +140,14 @@ $pageNousRejoindre = DynamicPage::getModelsCached()
->where('id_key', 'nous-rejoindre')
->first();
if ($pageNousRejoindre) {
- Breadcrumbs::for('front.dynamic-pages.nous-rejoindre.fr', function (Generator $trail) use ($pageNousRejoindre) {
- $trail->parent('front.homepage');
- $trail->push($pageNousRejoindre->title);
- });
- Breadcrumbs::for('front.dynamic-pages.nous-rejoindre.en', function (Generator $trail) use ($pageNousRejoindre) {
- $trail->parent('front.homepage');
- $trail->push($pageNousRejoindre->title);
- });
+ foreach ($supportedLocales as $key => $locale) {
+ Breadcrumbs::for("front.dynamic-pages.nous-rejoindre.$locale", function (Generator $trail) use ($pageNousRejoindre, $pageHome, $locale) {
+ if ($pageHome) {
+ $trail->parent("front.dynamic-pages.accueil.$locale");
+ }
+ $trail->push($pageNousRejoindre->title);
+ });
+ }
}
// * OUR JOBS.
@@ -141,14 +156,14 @@ $pageNosMetiers = DynamicPage::getModelsCached()
->where('id_key', 'nos-metiers')
->first();
if ($pageNosMetiers) {
- Breadcrumbs::for('front.dynamic-pages.nos-metiers.fr', function (Generator $trail) use ($pageNosMetiers) {
- $trail->parent('front.homepage');
- $trail->push($pageNosMetiers->title);
- });
- Breadcrumbs::for('front.dynamic-pages.nos-metiers.en', function (Generator $trail) use ($pageNosMetiers) {
- $trail->parent('front.homepage');
- $trail->push($pageNosMetiers->title);
- });
+ foreach ($supportedLocales as $key => $locale) {
+ Breadcrumbs::for("front.dynamic-pages.nos-metiers.$locale", function (Generator $trail) use ($pageNosMetiers, $pageHome, $locale) {
+ if ($pageHome) {
+ $trail->parent("front.dynamic-pages.accueil.$locale");
+ }
+ $trail->push($pageNosMetiers->title);
+ });
+ }
}
// * NEWS.
@@ -158,8 +173,10 @@ $pageNews = DynamicPage::getModelsCached()
->first();
if ($pageNews) {
foreach ($supportedLocales as $key => $locale) {
- Breadcrumbs::for("front.dynamic-pages.actualites.$locale", function (Generator $trail) use ($pageNews) {
- $trail->parent('front.homepage');
+ Breadcrumbs::for("front.dynamic-pages.actualites.$locale", function (Generator $trail) use ($pageNews, $pageHome, $currentLocale) {
+ if ($pageHome) {
+ $trail->parent("front.dynamic-pages.accueil.$currentLocale");
+ }
$trail->push($pageNews->title, RouteHelper::routeNameChecker('front.dynamic-pages.actualites'));
});
}
@@ -174,10 +191,11 @@ if ($pageNews) {
});
}
-
// * FINANCE.
-Breadcrumbs::for('front.finance', function (Generator $trail) {
- $trail->parent('front.homepage');
+Breadcrumbs::for('front.finance', function (Generator $trail) use ($pageHome, $currentLocale) {
+ if ($pageHome) {
+ $trail->parent("front.dynamic-pages.accueil.$currentLocale");
+ }
$trail->push(
Str::of(trans('front.finance'))->ucfirst(),
route('front.finance')
diff --git a/routes/web-front.php b/routes/web-front.php
index 042f47ce..ac47103f 100644
--- a/routes/web-front.php
+++ b/routes/web-front.php
@@ -17,8 +17,6 @@ Route::group(
]
],
function () {
- Route::get('/', [HomeController::class, 'homepage'])->name('homepage');
-
Route::name('contact.')->controller(ContactController::class)->group(function () {
Route::get(LaravelLocalization::transRoute('routes.contact_index'), 'index')->name('index');
Route::get(LaravelLocalization::transRoute('routes.contact'), 'show')->defaults('contactPage', 'contactPage')->name('show');
@@ -37,8 +35,6 @@ Route::group(
Route::get(LaravelLocalization::transRoute('routes.news'), [NewsController::class, 'show'])->name('news.show');
-
-
Route::get('/politique-de-confidentialite', function () {
$page = [
'seo_title' => 'LDC Charte de confidentialité',