title: Laravel blade array foreach loop
body: <p>I'm trying to acces to the parameters of an array, and not been able to.
  I get an array through this eloquent statement:</p>
  
  <pre><code>$plazas = DB::table('clase_schedule')-&gt;select(['schedule_id', DB::raw('SUM(capMax)')])-&gt;groupBy('schedule_id')-&gt;get();
  </code></pre>
  
  <p>What returns me this array:</p>
  
  <pre><code>array:2 [▼
    0 =&gt; {#465 ▼
      +"schedule_id": "2"
      +"SUM(capMax)": "221"
    }
    1 =&gt; {#464 ▼
      +"schedule_id": "3"
      +"SUM(capMax)": "12"
    }
  ]
  </code></pre>
  
  <p>I've tryed serveral things to acces to the schedule_id and SUM(capMax) values, but nothin.</p>
  
  <pre><code>@foreach($plazas as $id =&gt; $id)
  {{$id[0]}}&lt;br/&gt;
  @endforeach
  </code></pre>
  
  <p>With that i get the return value of 
      0
      1</p>