title: DOMPDF loop does not render in blade template
body: <p>I have been trying to create a PDF file using DOMPDF with Laravel</p>
  <p>which can be found here:</p>
  <pre><code>https://github.com/dompdf/dompdf
  </code></pre>
  <p>Here is my simple controller code</p>
  <pre><code>$locations = [
            [
              'a' =&gt; 'US',
              'b' =&gt; 'ABC',
            ],
            [
              'a' =&gt; 'UNEWS',
              'b' =&gt; 'XYZ',
            ]
          ];
  
          
          PDF::setOptions([
            'dpi' =&gt; 150,
            'defaultFont' =&gt; 'sans-serif',
            'fontHeightRatio' =&gt; 1,
            'isPhpEnabled' =&gt; true,
          ]);
  
         $pdf = PDF::loadView('pdf.flyer', [
            'locations' =&gt; $locations
          ]);
  
          return $pdf-&gt;download('invoice.pdf');
  </code></pre>
  <p>and here is my blade code</p>
  <pre><code>@for ($i = 1; $i &lt;= count($locations); $i++)
               {{$i}} test
              @endfor
  
              @foreach($locations as $location)
              Loop output here
              @endforeach
  </code></pre>
  <p>I am having a strange problem, none of the loop output works for me. loop doesn't render at all. i have tried out every single thing. i don't seem to understand what is going on?</p>
  <p>If you need more information please let me know.</p>
  <p>Thank you</p>