$count = 3 @foreach($subcategoryProducts as $product) @if($count/3==0) <div class="row-fluid"> <ul class="thumbnails"> @endif <li class="span4"> <div class="thumbnail"> <a href="/product/{{$product->id}}" class="overlay"></a> <a class="zoomTool" href="/product/{{$product->id}}" title="add to cart"><span class="icon-search"></span> Szczegóły</a> <a href="/product/{{$product->id}}"><img src="{{$product->getImageURL()}}" alt=""></a> <div class="caption cntr"> <p>{{$product->name}}</p> <p><strong> {{$product->price}}</strong></p> <h4><a class="shopBtn" href="/koszyk/dodaj/{{$product->id}}" title="add to cart"> Dodaj do koszyka </a> </h4> <br class="clr"> </div> </div> </li> <?php $count++; ?> @if($count/3==0) </ul> </div> @endif @endforeach
Co robie zle? Dodam ze jest to na framework LARAVEL.