@php use Botble\Theme\Facades\Theme; $title = trim((string) ($config['title'] ?? '')); $images = array_filter( (array) ($config['images'] ?? []), fn ($item) => ! empty($item['image']) ); // Default card set (theme assets). Used when admin hasn't uploaded // custom payment icons yet — keeps the Safe Checkout block visible // out-of-the-box, mirrors html/product-detail.html demo. $defaultCards = [ ['url' => Theme::asset()->url('images/payment/visa.svg'), 'alt' => 'Visa'], ['url' => Theme::asset()->url('images/payment/master-card.svg'), 'alt' => 'Mastercard'], ['url' => Theme::asset()->url('images/payment/amex.svg'), 'alt' => 'American Express'], ['url' => Theme::asset()->url('images/payment/paypal.svg'), 'alt' => 'PayPal'], ['url' => Theme::asset()->url('images/payment/water.svg'), 'alt' => 'Diners Club'], ['url' => Theme::asset()->url('images/payment/discover.svg'), 'alt' => 'Discover'], ]; $useDefaults = empty($images); @endphp @if ($title !== '') {{-- Product detail "Guaranteed Safe Checkout" layout — matches html/product-detail.html. --}}

{{ $title }}

@elseif (! $useDefaults)
@foreach ($images as $item)
{!! RvMedia::image($item['image'], '', 'thumb', false, [], null, true) !!}
@endforeach
@endif