308 lines
19 KiB
PHP
308 lines
19 KiB
PHP
@extends('fo.layout')
|
|
|
|
@section('title', $staticPageModel->seo_title)
|
|
@section('description', $staticPageModel->seo_description)
|
|
@section('breadcrumb', request()->route()->getName())
|
|
|
|
@section('banner')
|
|
@include('fo.layouts.banner', [
|
|
'h1' => __($staticPageModel->title),
|
|
'asset' => asset($staticPageModel->picture),
|
|
'title' => __($staticPageModel->picture_title),
|
|
'alt' => __($staticPageModel->picture_alt),
|
|
'displayArrow' => true,
|
|
'buttonLink' => '#key-numbers',
|
|
])
|
|
@endsection
|
|
|
|
@section('content')
|
|
<section class="unveil">
|
|
@if ($navLinks->count())
|
|
<div class="sticky-navigation">
|
|
<div class="sticky-navigation-wrapper show row m-0 p-0">
|
|
@foreach ($navLinks as $link)
|
|
<div class="col-6 col-md-12 py-md-1 p-2">
|
|
<div class="rounded-5 shadow-sm h-100 bg-{{ $link->color->name }}-light">
|
|
<a class="d-flex justify-content-start align-items-center text-primary text-decoration-none p-sm-3 p-2 h-100"
|
|
data-bs-toggle="tooltip" href="#{{ $link->anchor }}"
|
|
title="{{ __('Accéder à la partie :name de la page', ['name' => $link->title]) }}">
|
|
<span class="badge rounded-pill d-block me-2 bg-{{ $link->color->name }}"></span>
|
|
<small>{{ $link->title }}</small>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
<button class="d-none d-md-block btn btn-primary rounded-pill mt-1 w-fit px-3"
|
|
title="{{ __('Afficher/Masquer le menu des ancres') }}">
|
|
<i class="fa-solid fa-plus d-none"></i>
|
|
<i class="fa-solid fa-minus"></i>
|
|
</button>
|
|
</div>
|
|
@endif
|
|
{{-- KEY NUMBERS --}}
|
|
<section class="key-numbers anchor-padding my-5" id="key-numbers">
|
|
<span id="sticky-displayer"></span>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h2 class="h2 fw-bold text-primary text-center">{{ $keySection->h2_title }}</h2>
|
|
</div>
|
|
</div>
|
|
<div class="row justify-content-center">
|
|
<div class="col-12 col-sm-6 col-lg-3 col-xl-2 my-4">
|
|
@include('fo.partials.key-number', [
|
|
'color' => 'sixt',
|
|
'value' => $keySection->data['bloc_key_sites']['value'],
|
|
'text' => 'sites',
|
|
'link' => '#sites',
|
|
])
|
|
</div>
|
|
<div class="col-12 col-sm-6 col-lg-3 col-xl-2 my-4">
|
|
@include('fo.partials.key-number', [
|
|
'color' => 'quad',
|
|
'value' => $keySection->data['bloc_key_especes']['value'],
|
|
'text' => 'espèces',
|
|
'link' => '#local',
|
|
])
|
|
</div>
|
|
<div class="col-12 col-sm-6 col-lg-3 col-xl-2 my-4">
|
|
@include('fo.partials.key-number', [
|
|
'color' => 'tertiary',
|
|
'value' => $keySection->data['bloc_key_ca']['value'],
|
|
'text' => 'millions de ca',
|
|
'link' => route('fo.produce.show') . '#local',
|
|
])
|
|
</div>
|
|
<div class="col-12 col-sm-6 col-lg-3 col-xl-2 my-4">
|
|
@include('fo.partials.key-number', [
|
|
'color' => 'quint',
|
|
'value' => $keySection->data['bloc_key_collaborateurs']['value'],
|
|
'text' => 'collaborateurs',
|
|
'link' => route('fo.hire.show'),
|
|
])
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container my-4">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="ck-content">
|
|
{!! clean($keySection->text) !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{-- MISSIONS --}}
|
|
<section class="missions border-top-curved-primary anchor-padding" id="missions">
|
|
<div class="text-bg-primary">
|
|
<div class="container">
|
|
<div class="row align-items-center">
|
|
<div class="col-12 mb-2 text-center">
|
|
<h2 class="h2 fw-bold">{{ $missionsSection->h2_title }}</h2>
|
|
@if ($missionsSection->text)
|
|
<div class="ck-content">
|
|
{!! clean($missionsSection->text) !!}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{-- LOCAL --}}
|
|
<section class="local border-top-curved-upper-primary anchor-padding mb-5" id="local">
|
|
<div class="container">
|
|
<div class="row align-items-center">
|
|
<div class="col-12 mb-2">
|
|
<h2 class="h2 fw-bold text-primary text-center">{{ $localSection->h2_title }}</h2>
|
|
@if ($localSection->text)
|
|
<div class="ck-content">
|
|
{!! clean($localSection->text) !!}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{-- SITES --}}
|
|
<section class="sites anchor-padding anchor-padding mb-5" id="sites">
|
|
<div class="container">
|
|
<div class="row text-bg-primary rounded-3 p-4">
|
|
<div class="col-12 col-lg-6">
|
|
<h2 class="h2 fw-bold text-center">{{ $siteSection->h2_title }}</h2>
|
|
@if ($siteSection->text)
|
|
<div class="ck-content">
|
|
{!! clean($siteSection->text) !!}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
<div class="col-12 col-lg-6 order-lg-first d-flex justify-content-center position-relative g-0">
|
|
@php
|
|
$carto = ['siteModelList' => $siteModelList];
|
|
if (!empty($viewBox)) {
|
|
$carto = $carto + compact('viewBox');
|
|
}
|
|
if (!empty($initialZoom)) {
|
|
$carto['initialZoom'] = $initialZoom;
|
|
}
|
|
@endphp
|
|
@include('fo.partials.carte', $carto)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{-- OUR HISTORY --}}
|
|
<section class="history pb-lg-5 mb-5 overflow-hidden" id="history">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h2 class="h2 fw-bold text-primary text-center">{{ $historySection->h2_title }}</h2>
|
|
@if ($historySection->text)
|
|
<div class="ck-content text-primary">
|
|
{!! clean($historySection->text) !!}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
{{-- HISTORICAL MILESTONES SWIPER --}}
|
|
<div class="col-12 position-relative">
|
|
@php
|
|
$colors = ['quint', 'secondary', 'sixt', 'quad'];
|
|
@endphp
|
|
<div class="carousel slide carousel-fade pb-lg-5 pb-0" id="historical-milestone-carousel">
|
|
<div class="d-lg-none">
|
|
<button id="carousel-btn-prev" class="swiper-button swiper-button-prev-custom year-prev d-lg-none z-2"
|
|
data-bs-target="#historical-milestone-carousel" data-bs-slide-to="">
|
|
<img src="{{ Vite::asset('resources/assets/images/misc/blue-arrow.svg') }}"
|
|
title="{{ __('Navigation du slider (gauche)') }}" alt="{{ __('flèche vers la gauche') }}">
|
|
</button>
|
|
<div class="carousel-indicators justify-content-between">
|
|
<div class="swiper swiper-year w-100 h-fit overflow-visible" id="swiper-year">
|
|
<div class="swiper-wrapper">
|
|
@foreach ($historicalMilestoneModels as $historicalMilestoneModel)
|
|
<div class="swiper-slide d-flex justify-content-center">
|
|
<button data-bs-target="#historical-milestone-carousel"
|
|
data-bs-slide-to="{{ $loop->index }}" type="button" aria-current="true"
|
|
aria-label="{{ __('Année') }} {{ $historicalMilestoneModel->year }}"
|
|
@class([
|
|
'position-relative',
|
|
"tilde-{$colors[$loop->index % 4]} active" => $loop->first,
|
|
'tilde-white' => !$loop->first,
|
|
])>
|
|
<p @class(['year-selector position-absolute fw-bold'])>{{ $historicalMilestoneModel->year }}
|
|
</p>
|
|
</button>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<button id="carousel-btn-next" class="swiper-button swiper-button-next-custom year-next d-lg-none z-2"
|
|
data-bs-target="#historical-milestone-carousel" data-bs-slide-to="">
|
|
<img src="{{ Vite::asset('resources/assets/images/misc/blue-arrow.svg') }}"
|
|
title="{{ __('Navigation du slider (droite)') }}" alt="{{ __('flèche vers la droite') }}">
|
|
</button>
|
|
</div>
|
|
<div class="d-none d-lg-block">
|
|
<div class="carousel-container justify-content-between">
|
|
<button id="carousel-btn-prev" class="swiper-button-prev-custom d-none d-lg-block z-2"
|
|
data-bs-target="#historical-milestone-carousel" data-bs-slide-to="">
|
|
<img src="{{ Vite::asset('resources/assets/images/misc/blue-arrow.svg') }}"
|
|
title="{{ __('Navigation du slider (gauche)') }}" alt="{{ __('flèche vers la gauche') }}">
|
|
</button>
|
|
<div class="custom-carousel-indicators justify-content-between" id="lg-carousel-indicators">
|
|
@foreach ($historicalMilestoneModels as $historicalMilestoneModel)
|
|
<button data-bs-target="#historical-milestone-carousel" data-bs-slide-to="{{ $loop->index }}"
|
|
type="button" aria-label="{{ __('Année') }} {{ $historicalMilestoneModel->year }}"
|
|
@if ($loop->first) aria-current="true" @endif @class([
|
|
'position-relative',
|
|
"tilde-{$colors[$loop->index % 4]} active" => $loop->first,
|
|
'tilde-white' => !$loop->first,
|
|
])>
|
|
<p @class([
|
|
'year-selector position-absolute fw-bold',
|
|
"text-{$colors[$loop->index % 4]}" => $loop->first,
|
|
])>
|
|
{{ $historicalMilestoneModel->year }}
|
|
</p>
|
|
</button>
|
|
@endforeach
|
|
</div>
|
|
<button id="carousel-btn-next" class="swiper-button-next-custom d-none d-lg-block z-2"
|
|
data-bs-target="#historical-milestone-carousel" data-bs-slide-to="">
|
|
<img src="{{ Vite::asset('resources/assets/images/misc/blue-arrow.svg') }}"
|
|
title="{{ __('Navigation du slider (droite)') }}" alt="{{ __('flèche vers la droite') }}">
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="carousel-inner pb-lg-5 overflow-visible pb-4">
|
|
@foreach ($historicalMilestoneModels as $historicalMilestoneModel)
|
|
<div @class(['carousel-item bg-body', 'active' => $loop->first])>
|
|
{{-- We needed to include this picture twice because bootstrap took the picture height in its calculation for the carousel height --}}
|
|
@if ($historicalMilestoneModel->picture)
|
|
<img class="position-absolute picture d-none d-lg-block"
|
|
src="{{ $historicalMilestoneModel->picture }}"
|
|
title="{{ $historicalMilestoneModel->picture_title }}"
|
|
alt="{{ $historicalMilestoneModel->picture_alt }}">
|
|
@endif
|
|
<div class="row justify-content-center justify-content-lg-end">
|
|
<div class="col-12 col-lg-6">
|
|
<p class="year fw-bold text-{{ $colors[$loop->index % 4] }} pb-lg-0 mb-5 pb-5 text-center">
|
|
{{ $historicalMilestoneModel->year }}
|
|
</p>
|
|
</div>
|
|
@if ($historicalMilestoneModel->picture)
|
|
<img class="position-relative picture d-lg-none" src="{{ $historicalMilestoneModel->picture }}"
|
|
title="{{ $historicalMilestoneModel->picture_title }}"
|
|
alt="{{ $historicalMilestoneModel->picture_alt }}">
|
|
@endif
|
|
<div class="col-12 col-lg-3 text-lg-start d-flex flex-column justify-content-end">
|
|
<div class="slide-content mx-lg-0 p-lg-0 mx-auto w-fit rounded p-3">
|
|
<p class="fw-bold fs-5">
|
|
{{ $historicalMilestoneModel->title }}
|
|
</p>
|
|
@if ($historicalMilestoneModel->text)
|
|
<p>
|
|
{{ $historicalMilestoneModel->text }}
|
|
</p>
|
|
@endif
|
|
</div>
|
|
@if ($historicalMilestoneModel->button_status)
|
|
<a class="btn btn-{{ $colors[$loop->index % 4] }} rounded-5 mt-3 text-inherit text-white"
|
|
href="{{ $historicalMilestoneModel->button_url }}"
|
|
@if ($historicalMilestoneModel->button_new_tab) target="_blank" @endif>
|
|
{{ $historicalMilestoneModel->button_label }}
|
|
</a>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{-- COMMITMENTS --}}
|
|
<section class="commitments pb-lg-5 container mb-5">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="text-bg-quint rounded-3 p-4">
|
|
<h2 class="h2 text-lg-center">{{ $commitmentSection->h2_title }}</h2>
|
|
@if ($commitmentSection->text)
|
|
<div class="ck-content">
|
|
{!! clean($commitmentSection->text) !!}
|
|
</div>
|
|
@endif
|
|
<div class="d-flex justify-content-center my-4">
|
|
<a class="btn btn-white text-quint rounded-5 fw-bold text-inherit" href="{{ route('fo.commit.show') }}"
|
|
title="{{ __('Accéder à la page \'On s\'engage\'') }}">{{ __('On s\'engage') }}</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
@endsection
|