@if (!empty($ContentBody)) @php $groupedContent = collect($ContentBody)->groupBy('GroupSlider'); $SL01 = $groupedContent->get('SL01', []); $SL02 = $groupedContent->get('SL02', []); @endphp @foreach ($SL01 as $c) @if (!empty($c['Attachment'])) @php $desktopAttachments = $c['Attachment']; $matchingSL02 = collect($SL02)->firstWhere('Title', $c['Title']); $mobileAttachments = $matchingSL02['Attachment'] ?? $desktopAttachments; @endphp @foreach ($desktopAttachments as $index => $desktopAttachment)
@if (isset($mobileAttachments[$index])) @endif {{ $c['Title'] }}

{{ $c['Title'] }}

{!! strip_tags($c['Description']) !!}

@if ($c['URL']) @endif
@endforeach @endif @endforeach @else @foreach (['https://api-cms.ciptadrasoft.com/assets/emythd2lzkgngssi1729742771.webp'] as $image)
Hero Image

Fasilitas umum terpusat lebih nyaman dan bernilai

Anak-anak bermain dengan antusias di depan rumah, semoga kelak terlahir generasi terbaik dari lingkungan ini

@endforeach @endif