@php $workshopWhat = $workshopWhat ?? null; $workshopHow = $workshopHow ?? null; $whatPoints = $workshopWhat ? $workshopWhat->content->where('type', 'point')->sortBy('sort_order') : collect(); $whatSlides = $workshopWhat ? $workshopWhat->content->where('type', 'slide')->sortBy('sort_order') : collect(); $whatCta = $workshopWhat ? $workshopWhat->content->firstWhere('type', 'cta') : null; $howSteps = $workshopHow ? $workshopHow->content->where('type', 'step')->sortBy('sort_order')->values() : collect(); $whatTitle = $workshopWhat ? ___($workshopWhat, 'title') : ''; $whatKicker = $workshopWhat ? ___($workshopWhat, 'meta_keywords') : ''; $whatDescription = $workshopWhat ? ___($workshopWhat, 'description') : ''; $showWorkshopWhat = $workshopWhat && ($whatTitle || $whatKicker || $whatDescription || $whatPoints->count() || $whatSlides->count() || $whatCta); @endphp @if($showWorkshopWhat) @if($whatTitle || $whatKicker) @if($whatTitle) {{ $whatTitle }} @endif @if($whatKicker) {{ $whatKicker }} @endif @endif @if($whatDescription) {!! rich_html($whatDescription) !!} @endif @if($whatPoints->count()) @foreach($whatPoints as $point) {!! rich_html(___($point, 'description')) !!} @endforeach @endif @if($whatCta) {{ ___($whatCta, 'title') }} @endif @if($whatSlides->count()) @foreach($whatSlides as $slide) @php $slideSrc = $slide->image ? (str_starts_with($slide->image, 'http') || str_starts_with($slide->image, '/') ? $slide->image : '/storage/' . ltrim($slide->image, '/')) : ''; @endphp @if($slideSrc) @endif @endforeach @endif @endif @if($howSteps->count()) {{ $workshopHow ? ___($workshopHow, 'title') : __('public.home.workshop_tab_how') }} @if($workshopHow && ___($workshopHow, 'meta_keywords')) {{ ___($workshopHow, 'meta_keywords') }} @endif @include('pages.workshop.partials.how-steps', ['workshopHow' => $workshopHow]) @endif
{{ $whatKicker }}
{!! rich_html(___($point, 'description')) !!}
{{ ___($workshopHow, 'meta_keywords') }}