@forelse ($advertises as $advertise) @php $i = $loop->index; $pos = $i % 9; // Instagram-like pattern: // 0 => big-right (2x2 on right) // 1,2 => small tiles (will fill left) // 3,4,5 => normal row of 3 // 6 => big-left (2x2 on left) // 7,8 => small tiles (will fill right) $tileClass = 'col-span-1 row-span-1'; if ($pos === 0) { $tileClass = 'col-span-2 row-span-2 col-start-2'; // big on RIGHT } elseif ($pos === 6) { $tileClass = 'col-span-2 row-span-2 col-start-1'; // big on LEFT } @endphp @empty
{{ __('No advertisements found.') }}
@endforelse
@if ($endOfContent == false) @endif