@php $prefix = str_replace('_', '-', $section).'-item'; $rows = ($items[$section] ?? collect()); $showDescription = $showDescription ?? true; $showImage = $showImage ?? false; @endphp
{{ $label }}@if($showImage && !empty($imageSize)) ({{ $imageSize }})@endif @if($showImage) — click image to change @endif
@foreach($rows as $item)
@if($showImage)
@if(!empty($item->image)) @endif
@endif
@if($showDescription) @else @endif
@endforeach