PHP (Laravel) loop - every n-th entry : <p>Haven't found what I was looking for specifically. I only find questions where people break the loop, in my case I do not want to break it. I simply want to insert something special every n-th time.</p>

<p>I have a database with projects, and I want to display them in a grid. I simply loop every row from the database to display it in the grid. But now the client wants to show a customer's quote though out the grid. Mor specifically like this: show 3 projects, place 1 quote, repeat...</p>

<p><a href="https://i.stack.imgur.com/ct4ak.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ct4ak.jpg" alt="enter image description here"></a></p>

<p>Obviously the 4th item in the loop is very different from the other ones, so I cannot store them in the samen database table. The 'projects' have image and title (among many other things), the quote simply has a name and body. </p>

<p>How would you guys make this as dynamic as possible? Since the client has a CMS where he can add new projects. </p>
