title: Looping through nested array in Laravel Blade template
body: <p>I have the following code :</p>
  
  <pre><code>@foreach($data['daily'] as $date =&gt; $dailyData)
      &lt;tr&gt;
          &lt;td&gt;{{$date}}&lt;/td&gt;
          @foreach($dailyData as $key =&gt; $value)
              &lt;td&gt;
                  &lt;span&gt;{{$value}}&lt;/span&gt;
                  &lt;strong&gt;{{$data['another_index'][$date][$key]}}&lt;/strong&gt;
              &lt;/td&gt;
          @endforeach
      &lt;/tr&gt;
  @endforeach
  </code></pre>
  
  <p>This is returning me an error </p>
  
  <pre><code>[ErrorException]
  Undefined index: date
  </code></pre>
  
  <p>When the code is executed. Actually I have values there in <code>another_index</code> and I am able to print it. </p>
  
  <p>Thanks in advance for the help. </p>
  
  <pre><code>[another_index] =&gt; Array
          (
              [2016-03-15] =&gt; Array
                  (
                      [key] =&gt; 100.00%
                      [key1] =&gt; 0.00%
                      [key2] =&gt; 0.00%
                  )
  
              [2016-03-14] =&gt; Array
                  (
                      [key] =&gt; 10.00%
                      [key1] =&gt; 20.00%
                      [key2] =&gt; 30.00%
                  )
  </code></pre>