I would like to output posts in order provided by this image (every 3 posts)
here is my blade code:
<section class="blog_area p_120">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="blog_left_sidebar">
@foreach ($raksti as $raksts)
<article class="blog_style1">
<div class="blog_img">
<img class="img-fluid" src="" alt="">
</div>
<div class="blog_text">
<div class="blog_text_inner">
<div class="cat">
<a class="cat_btn" href="#"></a>
<i class="fa fa-calendar" aria-hidden="true"></i>
<i class="fa fa-comments-o" aria-hidden="true"></i> 05
</div>
<a href="#">
<h4></h4>
</a>
<p></p>
<a class="blog_btn" href="#">Lasīt vairāk</a>
</div>
</div>
</article>
@endforeach
</div>
</div>
</div>
</div>
</section>
For those small blocks the "article" tag have class ="blog_style1 small"
I guess that there need to work with a "for" loop, so can anyone help me to achieve this task and explain a little how that works?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire