I am trying to display images through a loop. I can only display one file type like .jpg. I would like to display two or three file types.
Any ideas on how to do it will be good thanks
@foreach($data as $row)
<?php //This code is to display the products next to each other so it looks great
$count++;
if ($count == 6 )
{
$count = 0;
echo '</div>';
echo '<br/>';
echo '<div class="row">';
echo '<div class="col-md-2">';
}
else
{
echo '<div class="col-md-2">';
}
?>
<img class="img-rounded" height="140" width="140" src="/images/catalog/{{$row->sku}}.jpg">
<br/>
<a href="/product/view/{{$row->id}}">{{$row->name}}</a>
<br/>
<br/>
<a class="btn btn-primary" href="/product/view/{{$row->id}}">View</a>
</div>
@endforeach
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1hWZRdS
via IFTTT
Aucun commentaire:
Enregistrer un commentaire