ldc-groupe/resources/views/components/front/pages/join-us/join-us.blade.php
2026-07-22 10:30:58 +02:00

51 lines
2.9 KiB
PHP

@if (!empty($joinUs))
<div data-anchor="{{ Str::ucfirst(Str::lower(data_get($joinUs, 'string_title', '')) . ' ' . Str::lower(data_get($joinUs, 'string_subtitle', ''))) }}"
id="rejoin_6">
<div class="breeders fw fw-container">
<div class="breeders__wrapper wrapper">
<x-front.sections.title title="{{ data_get($joinUs, 'string_title', '') }}"
subtitle="{{ data_get($joinUs, 'string_subtitle', '') }}" class="breeders__title"
secondaryClass="breeders__subtitle" />
<div class="textblock__container">
<div class="textblock__block">
<div class="breeders__text description textblock__info-description">
{!! data_get($joinUs, 'wysiwyg_content', '') !!}
</div>
@if (!empty(data_get($joinUs, 'list_cta.0.model_cta')) && !empty(data_get($joinUs, 'list_cta.0.reserved_model_cta')))
@php
$targetModel = \App\Models\PageConfig::getModelFromInputModelConfig(
data_get($joinUs, 'list_cta.0.model_cta'),
data_get($joinUs, 'list_cta.0.reserved_model_cta'),
);
$buttonUrl = \App\Helpers\RouteHelper::routeNameChecker(
"front.dynamic-pages.{$targetModel->id_key}",
);
@endphp
<a class="breeders__btn btn"
href="{{ $buttonUrl }}">{{ data_get($joinUs, 'list_cta.0.string_label_cta') }}</a>
@endif
</div>
</div>
<div class="breeders__videos videos-list">
@if (!empty($joinUs['list_videos']))
@foreach ($joinUs['list_videos'] as $vid)
<div class="video">
@php
$video = [
'type_video' => isset($vid['youtubeid_video']) ? 'youtube' : 'vimeo',
'video' => isset($vid['youtubeid_video'])
? $vid['youtubeid_video']
: data_get($vid, 'vimeoid_video', ''),
];
@endphp
<x-front.sections.video :video='$video' class="video__wrap" />
<div class="video__title">{{ data_get($vid, 'string_title', '') }}</div>
</div>
@endforeach
@endif
</div>
</div>
</div>
</div>
@endif