title: Adding multiple div to a foreach loop - Laravel
body: <p>I am new to Laravel. I am trying a loop through a multiple div and struck in between. I want to wrap a div with multiple columns in it.</p>
  
  <pre><code>@foreach($products as $product)
  &lt;div&gt;
     &lt;div class="row"&gt;
         @foreach($products as $product)
          &lt;div class="col-md-4"&gt;
            {{image}} 
          &lt;/div&gt;
  
         @endforeach
     &lt;/div&gt;
  &lt;/div&gt;
  @endforeach
  </code></pre>
  
  <p>It's not printing the expected output. my expected output should be like.</p>
  
  <pre><code>&lt;div&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-4"&gt;image1&lt;/div&gt;
          &lt;div class="col-md-4"&gt;image2&lt;/div&gt;
          &lt;div class="col-md-4"&gt;image3&lt;/div&gt;
       &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-4"&gt;image4&lt;/div&gt;
          &lt;div class="col-md-4"&gt;image5&lt;/div&gt;
          &lt;div class="col-md-4"&gt;image6&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I print div properly with the above formate?</p>