@php $total = count($coupons); @endphp @foreach($coupons as $k => $coupon)
@if (($k + 1) % 3 === 0 && $total > 3)
@endif @endforeach