diff --git a/app/Enums/StaticPageType.php b/app/Enums/StaticPageType.php index ce0664e..afb8f08 100644 --- a/app/Enums/StaticPageType.php +++ b/app/Enums/StaticPageType.php @@ -59,20 +59,22 @@ enum StaticPageType: int * Does the static page need to fill its 'content' column ? * * @return boolean + * @phpcs:disable Generic.Metrics.CyclomaticComplexity.TooHigh */ public function containsContent(): bool { + // @phpcs:enable return match ($this) { - self::contact, - self::legals, + self::contact => false, + self::legals => false, self::confidentiality => true, - self::home, - self::unveil, - self::we_hire, - self::we_commit, - self::we_move, - self::we_produce, - self::we_listen => false, + self::home => false, + self::unveil => false, + self::we_hire => false, + self::we_commit => false, + self::we_move => false, + self::we_produce => false, + self::we_listen => true, }; } } diff --git a/app/Http/Requests/Bo/StaticPages/UpdateStaticPageRequest.php b/app/Http/Requests/Bo/StaticPages/UpdateStaticPageRequest.php index ebb0746..ab3786b 100644 --- a/app/Http/Requests/Bo/StaticPages/UpdateStaticPageRequest.php +++ b/app/Http/Requests/Bo/StaticPages/UpdateStaticPageRequest.php @@ -26,7 +26,9 @@ class UpdateStaticPageRequest extends FormRequest public function prepareForValidation(): void { $this->merge([ - 'content' => Str::of($this->input('content'))->value() + 'content' => (empty(Str::of($this->input('content'))->value())) ? + null : + Str::of($this->input('content'))->value() ]); } @@ -37,12 +39,16 @@ class UpdateStaticPageRequest extends FormRequest */ public function rules(): array { - return [ + $rules = [ 'seo_title' => 'required|min:45|max:70', 'seo_description' => 'required|min:50|max:160', 'title' => 'required|min:3|max:255', - 'content' => 'present', + 'content' => 'sometimes|nullable', ]; + if (request()->route()->parameters()['static_page']->type->containsContent()) { + $rules = array_merge($rules, ['content' => 'required|string|min:15']); + } + return $rules; } /** diff --git a/app/Mail/SendConfirmationMail.php b/app/Mail/SendConfirmationMail.php index 63fb839..a7b8797 100644 --- a/app/Mail/SendConfirmationMail.php +++ b/app/Mail/SendConfirmationMail.php @@ -18,7 +18,7 @@ class SendConfirmationMail extends Mailable use SerializesModels; /** - * @var \App\Mail\Contact + * @var \stdClass */ private \stdClass $data; @@ -89,24 +89,3 @@ class SendConfirmationMail extends Mailable ); } } - -/** - * @property \App\Enums\Contact\ObjectEnum $type - * @property string|null $first_name - * @property string $last_name - * @property string|null $phone - * @property string $email - * @property string|null $address - * @property string|null $city - * @property string|null $postal_code - * @property string $message - * @property boolean $terms - * @property \Illuminate\Http\UploadedFile|null $file - * @property \App\Models\Product|null $product - * @property \Carbon\Carbon|null $expiration_date - * @property integer|null $batch_number - * @phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses - */ -class ContactConfirmation extends \stdClass -{ -} diff --git a/app/Mail/SendContactMail.php b/app/Mail/SendContactMail.php index f667e26..6d22619 100644 --- a/app/Mail/SendContactMail.php +++ b/app/Mail/SendContactMail.php @@ -20,7 +20,7 @@ class SendContactMail extends Mailable use SerializesModels; /** - * @var \App\Mail\Contact + * @var \stdClass */ private \stdClass $data; @@ -49,7 +49,6 @@ class SendContactMail extends Mailable */ private function sanitizeStringInputs(): void { - // @phpstan-ignore-next-line $this->data = (object)Arr::map((array)$this->data, function ($el) { if (is_string($el)) { $el = \htmlspecialchars(\strip_tags(Blade::render( @@ -109,24 +108,3 @@ class SendContactMail extends Mailable return $attachments; } } - -/** - * @property \App\Enums\Contact\ObjectEnum $type - * @property string|null $first_name - * @property string $last_name - * @property string|null $phone - * @property string $email - * @property string|null $address - * @property string|null $city - * @property string|null $postal_code - * @property string $message - * @property boolean $terms - * @property \Illuminate\Http\UploadedFile|null $file - * @property \App\Models\Product|null $product - * @property \Carbon\Carbon|null $expiration_date - * @property integer|null $batch_number - * @phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses - */ -class Contact extends \stdClass -{ -} diff --git a/app/Models/ActivityLog.php b/app/Models/ActivityLog.php index e421ecd..a49799f 100644 --- a/app/Models/ActivityLog.php +++ b/app/Models/ActivityLog.php @@ -13,7 +13,7 @@ use Illuminate\Support\Str; * @property string $model_id Id of the target model. * @property \App\Enums\ActivityLogs\ActivityLogsEventEnum $event Event of this activity (ActivityLogsEventEnum). * @property array $data Changes. - * @property-read \Illuminate\Support\Carbon $created_at Created date. + * @property \Illuminate\Support\Carbon $created_at Created date. * * @property-read \App\Models\User $user User BelongsTo relation. */ diff --git a/database/migrations/2023_10_19_094711_create_static_pages.php b/database/migrations/2023_10_19_094711_create_static_pages.php index 78fda28..04f0a9c 100644 --- a/database/migrations/2023_10_19_094711_create_static_pages.php +++ b/database/migrations/2023_10_19_094711_create_static_pages.php @@ -15,12 +15,12 @@ return new class extends Migration { Schema::create('static_pages', function (Blueprint $table) { $table->id(); - $table->unsignedTinyInteger('type')->unique()->comment('Page type (StaticPageEnum)'); - $table->string('seo_title')->comment('Seo title about 70 chars as recommended'); - $table->string('seo_description')->comment('Seo description about 160 chars as recommended'); - $table->string('title')->comment('Title for the page'); - $table->string('slug')->unique()->comment('Unique title slug'); - $table->text('content')->comment('WYSIWYG text content using ckeditor'); + $table->unsignedTinyInteger('type')->unique()->comment('Type of the static page (StaticPageEnum).'); + $table->string('seo_title')->comment('Seo title of the static page.'); + $table->string('seo_description')->comment('Seo description of the static page.'); + $table->string('title')->comment('Title of the static page.'); + $table->string('slug')->unique()->comment('Title slug of the static page.'); + $table->text('content')->nullable()->comment('Content of the static page (WYSIWYG).'); $table->timestamps(); }); } diff --git a/resources/sass/fo/pages/_unveil.scss b/resources/sass/fo/pages/_unveil.scss index 569fd63..affb0f9 100644 --- a/resources/sass/fo/pages/_unveil.scss +++ b/resources/sass/fo/pages/_unveil.scss @@ -104,7 +104,7 @@ transform: rotate(-15deg); @include media-breakpoint-up(lg) { - left: 0; + left: 2rem; } } diff --git a/resources/ts/fo/base/common.ts b/resources/ts/fo/base/common.ts index bfc669f..1d999e9 100644 --- a/resources/ts/fo/base/common.ts +++ b/resources/ts/fo/base/common.ts @@ -67,7 +67,7 @@ document.addEventListener("DOMContentLoaded", function () { "swiper-news": { modules: [Navigation, Keyboard], grabCursor: true, - slidesPerView: 2.3, + slidesPerView: 1.1, centeredSlides: true, spaceBetween: 10, navigation: { @@ -76,7 +76,15 @@ document.addEventListener("DOMContentLoaded", function () { }, keyboard: { enabled: true, - } + }, + breakpoints: { + 576: { + slidesPerView: 1.3, + }, + 768: { + slidesPerView: 2.3, + }, + }, }, "swiper-we-move": { modules: [Navigation, Keyboard], @@ -311,6 +319,16 @@ document.addEventListener("DOMContentLoaded", function () { element: htmlElt, swiper: swiper, }); + if (swiper.el.id === "swiper-teams") { + const btnPlayPause = document.querySelector(".swiper-pagination-playpause"); + btnPlayPause?.addEventListener("click", function () { + const svgs = btnPlayPause.querySelectorAll("svg"); + svgs?.forEach(svg => { + svg.classList.toggle("d-none"); + }); + (swiper.autoplay.paused) ? swiper.autoplay.start() : swiper.autoplay.pause(); + }); + } } // GoToTop Button diff --git a/resources/ts/fo/utilities/fontawesome.ts b/resources/ts/fo/utilities/fontawesome.ts index eef9b3c..0a1ccb0 100644 --- a/resources/ts/fo/utilities/fontawesome.ts +++ b/resources/ts/fo/utilities/fontawesome.ts @@ -10,7 +10,9 @@ import { faLocationDot, faMagnifyingGlass, faMinus, + faPause, faPaw, + faPlay, faPlus, faQuestionCircle, faUserGroup @@ -31,5 +33,7 @@ library.add(faUserGroup); library.add(faPaw); library.add(faMinus); library.add(faPlus); +library.add(faPlay); +library.add(faPause); dom.watch(); diff --git a/resources/views/bo/pages/static_pages/form.blade.php b/resources/views/bo/pages/static_pages/form.blade.php index d9c2abf..1371a2b 100644 --- a/resources/views/bo/pages/static_pages/form.blade.php +++ b/resources/views/bo/pages/static_pages/form.blade.php @@ -115,28 +115,30 @@ - {{-- CONTENT --}} -
-
- {{ Str::ucfirst(__('validation.attributes.content')) }} -
-
- @include('bo.partials.inputs.text-html', [ - 'id' => 'articleContent', - 'label' => __(':field :inter:model', [ - 'field' => Str::ucfirst(__('validation.attributes.content')), - 'inter' => __('validation.custom.of_the.female'), - 'model' => trans_choice('models.classes.static_page', 1), - ]), - 'name' => 'content', - 'model' => $staticPageModel ?? null, - 'required' => true, - 'helper' => __('crud.minicrud.text_warning'), - ]) + @if ($staticPageModel->type->containsContent()) + {{-- CONTENT --}} +
+
+ {{ Str::ucfirst(__('validation.attributes.content')) }} +
+
+ @include('bo.partials.inputs.text-html', [ + 'id' => 'articleContent', + 'label' => __(':field :inter:model', [ + 'field' => Str::ucfirst(__('validation.attributes.content')), + 'inter' => __('validation.custom.of_the.female'), + 'model' => trans_choice('models.classes.static_page', 1), + ]), + 'name' => 'content', + 'model' => $staticPageModel ?? null, + 'required' => true, + 'helper' => __('crud.minicrud.text_warning'), + ]) +
-
-
-
+ + + @endif

{{ __('* Champs obligatoires') }}

diff --git a/resources/views/fo/pages/commitments.blade.php b/resources/views/fo/pages/commitments.blade.php index 012fc3a..06e3693 100644 --- a/resources/views/fo/pages/commitments.blade.php +++ b/resources/views/fo/pages/commitments.blade.php @@ -18,21 +18,20 @@ @section('content')
{{-- AMBITION --}} -
-
-
-
-

{{ $ambitionSection->h2_title }}

- @if ($ambitionSection->text) -
- {!! clean($ambitionSection->text) !!} -
- @endif -
+
+
+
+

{{ $ambitionSection->h2_title }}

+ @if ($ambitionSection->text) +
+ {!! clean($ambitionSection->text) !!} +
+ @endif
-
-
- {{-- blade-formatter-disable --}} +
+
+
+ {{-- blade-formatter-disable --}} @php $commitNav = [ ['label' => __('Élever durablement'), 'link' => '#breeding', 'color' => 'tertiary'], @@ -41,25 +40,24 @@ ['label' => __('Bien nourrir'), 'link' => '#feed', 'color' => 'sixt']]; @endphp {{-- blade-formatter-enable --}} - @foreach ($commitNav as $key => $value) -
- + @foreach ($commitNav as $key => $value) +
+ - @endforeach -
- +
+ @endforeach
+
{{-- BREEDING --}} @@ -70,7 +68,7 @@

{{ $breedingSection->h2_title }}

@if ($breedingSection->text) -
+
{!! clean($breedingSection->text) !!}
@endif @@ -136,7 +134,7 @@
@if ($lifeSection->text) -
+
{!! clean($lifeSection->text) !!}
@endif @@ -167,7 +165,7 @@
@endif
-
+
{!! clean($lifeSection->data['bloc_numero2_content']['value']) !!}
@@ -299,7 +297,7 @@ alt="$earthSection->data['bloc_image']['alt']">
-
+
{!! clean($earthSection->data['bloc_numero2_content']['value']) !!}
@@ -331,7 +329,7 @@
@if ($feedSection->text) -
+
{!! clean($feedSection->text) !!}
@endif @@ -365,14 +363,14 @@ @endif
-
+
{!! clean($feedSection->data['bloc_numero2_content']['value']) !!}
-
+
{!! clean($feedSection->data['bloc_numero3_content']['value']) !!}
@@ -400,45 +398,41 @@
{{-- SLIDER TESTIMONIALS --}} -
-
-
-
-
-
-
- @foreach ($testimonialModels as $testimonial) -
- @include('fo.partials.testimonials.card', [ - 'picture' => [ - 'path' => $testimonial->picture, - 'alt' => $testimonial->picture_alt, - 'title' => $testimonial->picture_title, - ], - 'job' => $testimonial->job, - 'name' => $testimonial->name, - 'speach' => $testimonial->content, - 'bgClass' => 'bg-' . $testimonial->type->color(), - 'jobClass' => 'text-white', - 'nameClass' => 'text-white', - 'speachClass' => 'text-white', - ]) -
- @endforeach -
+
+
+
+
+
+
+ @foreach ($testimonialModels as $testimonial) +
+ @include('fo.partials.testimonials.card', [ + 'picture' => [ + 'path' => $testimonial->picture, + 'alt' => $testimonial->picture_alt, + 'title' => $testimonial->picture_title, + ], + 'job' => $testimonial->job, + 'name' => $testimonial->name, + 'speach' => $testimonial->content, + 'bgClass' => 'bg-' . $testimonial->type->color(), + 'jobClass' => 'text-white', + 'nameClass' => 'text-white', + 'speachClass' => 'text-white', + ]) +
+ @endforeach
- -
+ +
@@ -450,7 +444,7 @@ {{ $testimonialsSection->data['bloc_string_titre_h3_de_la_section_numero2']['value'] }} @if ($testimonialsSection->text) -
+
{!! clean($testimonialsSection->text) !!}
@endif diff --git a/resources/views/fo/pages/hire.blade.php b/resources/views/fo/pages/hire.blade.php index be3715f..d59c573 100644 --- a/resources/views/fo/pages/hire.blade.php +++ b/resources/views/fo/pages/hire.blade.php @@ -57,52 +57,54 @@
-
+
{!! clean($compagnyLifeSection->data['bloc_videos_content']['value']) !!}
-
-
- {{-- SWIPER VIDEO --}} -
-
- @foreach ($videoModels as $video) -
-
-
- @include('fo.modules.video-frame', [ - 'type' => 'youtube', - 'title' => __('Visionner la vidéo'), - 'videoId' => $video->video_id, - 'picture' => Vite::asset( - 'resources/assets/images/others/background_video.png'), - 'alt' => __('Video_about_who_we_are'), - 'linkNewTab' => false, - ]) -
-
- {{ __($video->place) }} :
{{ __($video->title) }} -
-
-
- @endforeach +
+
+
+ {{-- SWIPER VIDEO --}} +
+
+ @foreach ($videoModels as $video) +
+
+
+ @include('fo.modules.video-frame', [ + 'type' => 'youtube', + 'title' => __('Visionner la vidéo'), + 'videoId' => $video->video_id, + 'picture' => Vite::asset( + 'resources/assets/images/others/background_video.png'), + 'alt' => __('Video_about_who_we_are'), + 'linkNewTab' => false, + ]) +
+
+ {{ __($video->place) }} :
{{ __($video->title) }} +
+
+
+ @endforeach +
+ + +
+ - - -
-
@@ -117,7 +119,7 @@ {{ $formationSection->h2_title }}
-
+
{!! clean($formationSection->text) !!}
@@ -139,7 +141,7 @@
-
+

{{ $formationSection->data['bloc_string_titre_h3_de_la_section']['value'] }}

@@ -159,14 +161,14 @@ 'wysiwyg' => true, ])
-
+
{!! clean($formationSection->data['bloc_n2_content']['value']) !!}
-
+
{!! clean($formationSection->data['bloc_n3_content']['value']) !!}
@@ -185,39 +187,41 @@

{{ $testimonialSection->h2_title }}

{{ $testimonialSection->data['bloc_string_titre_h3_de_la_section']['value'] }}

-
-
-
-
- @foreach ($testimonialModels as $testimonial) -
- @include('fo.partials.testimonials.card', [ - 'job' => $testimonial->job, - 'name' => $testimonial->name, - 'speach' => $testimonial->content, - 'picture' => [ - 'path' => $testimonial->picture, - 'title' => $testimonial->picture_title, - 'alt' => $testimonial->picture_alt, - ], - 'bgClass' => 'bg-white', - 'jobClass' => 'text-quint', - 'nameClass' => 'text-primary fw-semibold', - 'speachClass' => 'text-primary', - 'filter' => 'filter-quote', - ]) -
- @endforeach +
+
+
+
+
+ @foreach ($testimonialModels as $testimonial) +
+ @include('fo.partials.testimonials.card', [ + 'job' => $testimonial->job, + 'name' => $testimonial->name, + 'speach' => $testimonial->content, + 'picture' => [ + 'path' => $testimonial->picture, + 'title' => $testimonial->picture_title, + 'alt' => $testimonial->picture_alt, + ], + 'bgClass' => 'bg-white', + 'jobClass' => 'text-quint', + 'nameClass' => 'text-primary fw-semibold', + 'speachClass' => 'text-primary', + 'filter' => 'filter-quote', + ]) +
+ @endforeach +
+ +
- -
@@ -237,7 +241,7 @@
-
+
{!! clean($paritySection->data['bloc_contenu_n1_content']['value']) !!}
@@ -251,7 +255,7 @@

{{ $paritySection->data['bloc_image_n1']['title'] }}

-
+
{!! clean($paritySection->data['bloc_contenu_n2_content']['value']) !!}
@@ -269,7 +273,7 @@

{{ $paritySection->data['bloc_image_n2']['title'] }}

-
+
{!! clean($paritySection->data['bloc_contenu_n3_content']['value']) !!}
@@ -289,47 +293,44 @@
-
-
-
-

{{ $findSection->data['bloc_string_titre_h3_de_la_section']['value'] }}

-
-
-
- {!! clean($findSection->data['bloc_contenu_n1_content']['value']) !!} -
+
+
+

{{ $findSection->data['bloc_string_titre_h3_de_la_section']['value'] }}

+
+
+
+ {!! clean($findSection->data['bloc_contenu_n1_content']['value']) !!}
-
-
- {{ $findSection->data['bloc_image']['alt'] }} -
+
+
+
+ {{ $findSection->data['bloc_image']['alt'] }}
-
-
- {{ __('Nos offres: ') }} -
- - -
-
- {!! clean($findSection->data['bloc_contenu_n2_content']['value']) !!} -
+
+
+
+ {{ __('Nos offres: ') }} +
+ + +
+
+ {!! clean($findSection->data['bloc_contenu_n2_content']['value']) !!}
diff --git a/resources/views/fo/pages/home.blade.php b/resources/views/fo/pages/home.blade.php index 3c411e8..4b5acfa 100644 --- a/resources/views/fo/pages/home.blade.php +++ b/resources/views/fo/pages/home.blade.php @@ -35,7 +35,7 @@
@if ($missionSection->text) -
+
{!! clean($missionSection->text) !!}
@endif @@ -143,7 +143,7 @@
-
+
@php $homeTeamData = [ @@ -158,8 +158,14 @@
@endforeach
-
+
+
+
+
@@ -248,7 +254,7 @@
{{-- STRIP --}} @if ($stripModels->isNotEmpty()) -
+
@foreach ($stripModels as $stripModel) @include('fo.partials.strips.strip-item') diff --git a/resources/views/fo/pages/legals.blade.php b/resources/views/fo/pages/legals.blade.php index fc15bdb..7f748b7 100644 --- a/resources/views/fo/pages/legals.blade.php +++ b/resources/views/fo/pages/legals.blade.php @@ -7,14 +7,10 @@ @section('content')
-
+

{{ __($staticPageModel->title) }}

-
-
-
-
-
+
{!! clean($staticPageModel->content) !!}
diff --git a/resources/views/fo/pages/news/index.blade.php b/resources/views/fo/pages/news/index.blade.php index 3dbe601..df429b2 100644 --- a/resources/views/fo/pages/news/index.blade.php +++ b/resources/views/fo/pages/news/index.blade.php @@ -27,7 +27,7 @@ {!! clean($lifeSection->text) !!}
@endif -
+
@foreach ($newsModels as $news) @include('fo.pages.news.card') @endforeach @@ -56,29 +56,31 @@
-
-
-
-
- @foreach ($newsModels as $news) -
- @include('fo.pages.news.card') -
- @endforeach +
+
+
+
+
+ @foreach ($newsModels as $news) +
+ @include('fo.pages.news.card') +
+ @endforeach +
+ +
- - -
-
-
- {{ $newsModels->links() }} +
+
+ {{ $newsModels->links() }} +
@@ -86,19 +88,23 @@
{{-- CORPORATE LIFE --}}
-
-
-

{{ $commitmentSection->h2_title }}

- @if ($commitmentSection->text) -
- {!! clean($commitmentSection->text) !!} +
+
+
+
+

{{ $commitmentSection->h2_title }}

+ @if ($commitmentSection->text) +
+ {!! clean($commitmentSection->text) !!} +
+ @endif +
- @endif -
diff --git a/resources/views/fo/pages/news/show.blade.php b/resources/views/fo/pages/news/show.blade.php index f30d559..9d37448 100644 --- a/resources/views/fo/pages/news/show.blade.php +++ b/resources/views/fo/pages/news/show.blade.php @@ -12,17 +12,20 @@ {{ __('Retour') }}
-
+
+
+
+

{{ str($news->publish_at->locale('fr_FR')->isoFormat('D MMMM Y'))->upper() }} +

+
+
-
-

{{ str($news->publish_at->locale('fr_FR')->isoFormat('D MMMM Y'))->upper() }}

-
-

+

{{ $news->title }}

-
+
{!! clean($news->content) !!} @@ -34,7 +37,7 @@
-
+
diff --git a/resources/views/fo/pages/site.blade.php b/resources/views/fo/pages/site.blade.php index efc010c..977a03c 100644 --- a/resources/views/fo/pages/site.blade.php +++ b/resources/views/fo/pages/site.blade.php @@ -6,23 +6,19 @@ @section('content')
-
-
-
-

{{ $siteModel->employees }} {{ __('personnes') }}

+
+

{{ $siteModel->employees }} {{ __('personnes') }} +

-
+
-

+

{{ implode( ', ', collect($siteModel->pictos)->map(function ($picto) { @@ -210,7 +206,7 @@

-
{!! clean($siteModel->highlights) !!}
+
{!! clean($siteModel->highlights) !!}
diff --git a/resources/views/fo/pages/unveil.blade.php b/resources/views/fo/pages/unveil.blade.php index 9d5807c..f70a76c 100644 --- a/resources/views/fo/pages/unveil.blade.php +++ b/resources/views/fo/pages/unveil.blade.php @@ -18,46 +18,44 @@ @section('content')
{{-- KEY NUMBERS --}} -
-
-
-
-

{{ $keySection->h2_title }}

-
+
+
+
+

{{ $keySection->h2_title }}

-
-
- @include('fo.partials.key-number', [ - 'color' => 'sixt', - 'value' => $keySection->data['bloc_key_sites']['value'], - 'text' => 'sites', - 'link' => '#sites', - ]) -
-
- @include('fo.partials.key-number', [ - 'color' => 'quad', - 'value' => $keySection->data['bloc_key_especes']['value'], - 'text' => 'espèces', - 'link' => '#local', - ]) -
-
- @include('fo.partials.key-number', [ - 'color' => 'tertiary', - 'value' => $keySection->data['bloc_key_ca']['value'], - 'text' => 'millions de ca', - 'link' => route('fo.produce.show') . '#local', - ]) -
-
- @include('fo.partials.key-number', [ - 'color' => 'quint', - 'value' => $keySection->data['bloc_key_collaborateurs']['value'], - 'text' => 'collaborateurs', - 'link' => route('fo.hire.show'), - ]) -
+
+
+
+ @include('fo.partials.key-number', [ + 'color' => 'sixt', + 'value' => $keySection->data['bloc_key_sites']['value'], + 'text' => 'sites', + 'link' => '#sites', + ]) +
+
+ @include('fo.partials.key-number', [ + 'color' => 'quad', + 'value' => $keySection->data['bloc_key_especes']['value'], + 'text' => 'espèces', + 'link' => '#local', + ]) +
+
+ @include('fo.partials.key-number', [ + 'color' => 'tertiary', + 'value' => $keySection->data['bloc_key_ca']['value'], + 'text' => 'millions de ca', + 'link' => route('fo.produce.show') . '#local', + ]) +
+
+ @include('fo.partials.key-number', [ + 'color' => 'quint', + 'value' => $keySection->data['bloc_key_collaborateurs']['value'], + 'text' => 'collaborateurs', + 'link' => route('fo.hire.show'), + ])
@@ -178,7 +176,6 @@ @endforeach
-
{{-- COMMITMENTS --}} -
-