@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * Mirrors html/home-organic.html lines 2510-2649 (`testimonial-v01 style-def style-4 type-2`). * 3-up swiper. Each slide: image TOP (410x273) + 5★ + quote + author with Verified * checkmark + 60x60 product mini-card with name + price. * * Item enrichment (avatar from testimonial.image; product fields from featured product * pool) is performed in `partials/shortcodes/testimonials/index.blade.php` for any style * matching this allowlist entry. */ $autoplay = ($shortcode->autoplay ?? 'yes') === 'yes'; // container_class: demo §7 (L2511) uses `container-2` (wider than default `container`). $allowedContainers = ['container', 'container-2', 'container-full']; $rawContainer = $shortcode->container_class ?? 'container'; $containerClass = in_array($rawContainer, $allowedContainers, true) ? $rawContainer : 'container'; @endphp
@foreach ($items as $i => $item) @php $rating = (int) ($item['rating'] ?? 5); @endphp
0) data-wow-delay="0.{{ $i }}s" @endif> @if (! empty($item['avatar']))
{!! RvMedia::image($item['avatar'], $item['name'] ?? '', 'medium', false, ['loading' => 'lazy', 'width' => 410, 'height' => 273]) !!}
@endif
@if ($rating > 0)
@for ($s = 1; $s <= 5; $s++) @endfor
@endif @if (! empty($item['content']))

{!! BaseHelper::clean($item['content']) !!}

@endif

{{ BaseHelper::clean($item['name'] ?? '') }}

@if (! empty($item['product_image']) || ! empty($item['product_name']))
@if (! empty($item['product_image']))
{!! RvMedia::image($item['product_image'], $item['product_name'] ?? '', 'thumb', false, ['loading' => 'lazy', 'width' => 60, 'height' => 60]) !!}
@endif
@if (! empty($item['product_name'])) {{ BaseHelper::clean($item['product_name']) }} @endif @if (! empty($item['product_price']))

{!! BaseHelper::clean($item['product_price']) !!}

@endif
@endif
@endforeach