@php $autoplay = ($shortcode->autoplay ?? 'yes') === 'yes'; // Pet-care demo wraps the swiper in a cream `flat-spacing bg-main radius-20` // box on a `bare-section container-full` outer section. Opt-in via `bg_main=yes`. $useBgMain = ($shortcode->bg_main ?? 'no') === 'yes'; @endphp @if ($useBgMain)
@if (! empty($shortcode->title ?? '') || ! empty($shortcode->subtitle ?? ''))
@if (! empty($shortcode->title ?? ''))

{!! \Botble\Base\Facades\BaseHelper::clean($shortcode->title) !!}

@endif @if (! empty($shortcode->subtitle ?? ''))

{!! \Botble\Base\Facades\BaseHelper::clean($shortcode->subtitle) !!}

@endif
@endif
@endif
@foreach ($items as $index => $item) @php $rating = (int) ($item['rating'] ?? 5); $rating = max(0, min(5, $rating)); $name = $item['name'] ?? ''; $content = $item['content'] ?? ''; $role = $item['role'] ?? ''; $avatar = $item['avatar'] ?? null; $productImage = $item['product_image'] ?? null; $productName = $item['product_name'] ?? ''; $productPrice = $item['product_price'] ?? ''; $productUrl = $item['product_url'] ?? '#'; $delay = $index === 0 ? '' : '0.1s'; @endphp
{{-- testimonial-v01.style-3 = pet-care demo (image LEFT split, product mini-card RIGHT inside .tes-content). CSS lives in theme.css ~ html/styles.css line 9123. --}}
@if (! empty($avatar))
{!! RvMedia::image($avatar, $name, 'medium', false, ['width' => 285, 'height' => 380, 'loading' => 'lazy']) !!}
@endif
@if ($rating > 0)
@for ($i = 1; $i <= $rating; $i++) @endfor
@endif @if (! empty($name))

{!! BaseHelper::clean($name) !!}

{{ ! empty($role) ? $role : __('Verified Buyer') }}
@endif @if (! empty($content))

{!! BaseHelper::clean($content) !!}

@endif @if (! empty($productImage) || ! empty($productName))
@if (! empty($productImage))
{!! RvMedia::image($productImage, $productName, 'thumb', false, ['width' => 60, 'height' => 60, 'class' => 'aspect-ratio-1 object-fit-cover', 'loading' => 'lazy']) !!}
@endif
@if (! empty($productName)) {!! BaseHelper::clean($productName) !!} @endif @if (! empty($productPrice))

{!! BaseHelper::clean($productPrice) !!}

@endif
@endif
@endforeach
@if ($useBgMain)
@endif