title: Laravel looping through array in blade
body: <p>I have the following array:</p>
  
  <pre><code>$days = [
      ['dow' =&gt; 1, 'day' =&gt; 'Monday'],
      ['dow' =&gt; 2, 'day' =&gt; 'Tuesday'],
      ['dow' =&gt; 3, 'day' =&gt; 'Wednesday'],
      ['dow' =&gt; 4, 'day' =&gt; 'Thursday'],
      ['dow' =&gt; 5, 'day' =&gt; 'Friday'],
      ['dow' =&gt; 6, 'day' =&gt; 'Saturday'],
      ['dow' =&gt; 7, 'day' =&gt; 'Sunday'],
  ];
  </code></pre>
  
  <p>I'm trying to loop through it in my blade template as follows:</p>
  
  <pre><code> @foreach ($days as $day)
         &lt;label&gt;{{$day['day']}}&lt;/label&gt;
         {!! Form::text('day_of_wk[$day['dow']].start_time', null, ['class' =&gt; 'form-control'])!!}
    @endforeach
  </code></pre>
  
  <p>But I get error: <code>syntax error, unexpected 'dow' (T_STRING)</code></p>
  
  <p>How can I add the <code>$day['dow']</code> value in my day_of_wk[] input array?</p>