I use this blade code at the moment: ... @if($i == 0) @endif @ ... If you're using laravel 5.3 there is a $loop variable available inside blade foreach loops. ... this in your controller @for($i = 0; $i < $products->count(); $i )
Just some moments, sm-0 @iMGSRC.RU
I use this blade code at the moment: ... @if($i == 0) @endif @ ... If you're using laravel 5.3 there is a $loop variable available inside blade foreach loops. ... this in your controller @for($i = 0; $i < $products->count(); $i++) 3925e8d270
Comments