@php /** * Mirrors html/home-electronics.html ยง8 (lines 4305-4501): two-column layout * with `sw-thumb` lifestyle image swiper LEFT (520x520) + `sw-main-thumb` * testimonial cards RIGHT (testimonial-v01 style-5 with stars, author block, * br-line, Verified Buyer badge, quote, product showcase). Bottom: line * pagination + nav prev/next arrows. * * Falls back to plugin Testimonial records when shortcode tabs missing. * Each item may carry: thumb (large lifestyle img), product_image, product_name, * product_price, product_url. When omitted, falls back to avatar. */ $autoplay = ($shortcode->autoplay ?? 'yes') === 'yes'; @endphp {{-- .section-testimonial-thumbs star color + spacing rules live in assets/sass/component/_inline-migrated.scss. --}} @if (! empty($items))
@foreach ($items as $item) @php $thumb = $item['thumb'] ?? $item['avatar'] ?? null; @endphp
{!! RvMedia::image($thumb, $item['name'] ?? '', '', false, ['width' => 520, 'height' => 520, 'class' => 'w-100 h-100', 'style' => 'object-fit:cover;', 'loading' => 'lazy']) !!}
@endforeach
@foreach ($items as $item) @php $rating = (int) ($item['rating'] ?? 5); @endphp
@if ($rating > 0)
@for ($i = 1; $i <= 5; $i++) @endfor
@endif
@if (! empty($item['name']))
{!! BaseHelper::clean($item['name']) !!}
@endif
{{ __('Verified Buyer') }}
@if (! empty($item['content']))

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

@endif @if (! empty($item['product_image']) || ! empty($item['product_name']))
@if (! empty($item['product_image']))
{!! RvMedia::image($item['product_image'], $item['product_name'] ?? '', 'thumb', false, ['width' => 60, 'height' => 60, 'class' => 'w-100 h-100', 'style' => 'object-fit:cover;', 'loading' => 'lazy']) !!}
@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
@endif