@php
$items = $data['items'] ?? [];
$columns = (int) ($options['columns'] ?? 5);
$color = $options['color'] ?? 'light';
$padding = $options['padding'] ?? 'md';
$colSize = (int) (12 / max(1, $columns));
@endphp
<section class="page-block-logos py-{{ $padding }} {{ pb_bg_class($color) }}">
    <div class="container">
        @if(! empty($data['title']))<h3 class="text-center text-muted mb-4">{{ $data['title'] }}</h3>@endif
        <div class="row align-items-center g-4">
            @foreach($items as $item)
                <div class="col-md-{{ $colSize }} text-center">
                    @if(! empty($item['logo']))
                        @if(! empty($item['link']))<a href="{{ $item['link'] }}" target="_blank" rel="noopener">@endif
                        <img src="{{ asset('storage/' . $item['logo']) }}" alt="{{ $item['alt'] ?? '' }}" class="img-fluid" style="max-height:48px;">
                        @if(! empty($item['link']))</a>@endif
                    @endif
                </div>
            @endforeach
        </div>
    </div>
</section>
