title: Laravel loop issue
body: <p>I need help with looping my product options, this is what i have now:</p>
  
  <p><a href="https://i.stack.imgur.com/lMfXl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lMfXl.png" alt="shoot"></a></p>
  
  <p>What I want is simply get 2 row's only one for <code>color</code> and another for <code>size</code> and in dropdown in front of each one have all items.</p>
  
  <p>here is my blade code:</p>
  
  <pre><code>&lt;tbody&gt;
    @foreach($product-&gt;suboptions as $option)
    &lt;tr&gt;
      &lt;td style="width: 150px;"&gt;{{ $option-&gt;option-&gt;title }}&lt;/td&gt;
      &lt;td class="text-left"&gt;
         &lt;select name="" id=""&gt;
           &lt;option value="{{$option-&gt;id}}"&gt;{{$option-&gt;title}} - {{ number_format($option-&gt;price, 0) }}&lt;/option&gt;
         &lt;/select&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    @endforeach
  &lt;/tbody&gt;
  </code></pre>
  
  <h1>UPDATE</h1>
  
  <p>my dd result of <code>{dd($product-&gt;suboptions)}}</code></p>
  
  <p><a href="https://i.stack.imgur.com/ZbpQe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZbpQe.png" alt="shoot2"></a></p>