@php $perRow = (int) ($shortcode->items_per_row ?: 4); $perRow = max(1, min(6, $perRow)); $colClass = match ($perRow) { 1 => 'col-12', 2 => 'col-md-6', 3 => 'col-lg-4 col-md-6', 4 => 'col-lg-3 col-md-6', default => 'col-lg-2 col-md-4 col-6', }; @endphp
@foreach ($collections as $collection)
{!! \Botble\Media\Facades\RvMedia::image( $collection->image, $collection->name, 'medium', false, ['class' => 'w-100 h-auto'] ) !!}

{{ $collection->name }}

@if (! empty($collection->description))

{{ \Illuminate\Support\Str::limit(strip_tags($collection->description), 80) }}

@endif
@endforeach