@php $workshopIncluded = $workshopIncluded ?? null; $includedItems = $workshopIncluded ? $workshopIncluded->content->where('type', 'item')->sortBy('sort_order') : collect(); $includedCta = $workshopIncluded ? $workshopIncluded->content->firstWhere('type', 'cta') : null; $includedIntro = $workshopIncluded ? ___($workshopIncluded, 'description') : ''; @endphp @if($includedIntro || $includedItems->count() || $includedCta)
@if($includedIntro)

{!! rich_html($includedIntro) !!}

@endif @if($includedItems->count()) @endif @if($includedCta) {{ ___($includedCta, 'title') }} @endif
@endif