@php
$cols = max((int)(substr($shortcode->number_of_columns, -1)), 1);
$cols = min($cols, 6);
$rows = array_chunk($tabs, $cols);
@endphp
@foreach ($rows as $row)
@if ($row[0]['image'])
@foreach ($row as $item)
@if ($image = $item['image'])
{{ RvMedia::image($image, $item['caption'] ?: __('image'), attributes: ['class' => 'round-12']) }}
@if ($caption = $item['caption'])
{!! BaseHelper::clean($caption) !!}
@endif
@endif
@endforeach
@endif
@endforeach