title: Nested statements in Laravel blade templating
body: <p>I have the following statement(s) in my PHP and I need to make them <code>bladey</code>:</p>
  
  <pre><code>&lt;?php
  
      if($project-&gt;nodes()-&gt;count()) {
  
          foreach($project-&gt;nodes()-&gt;get() as $node) {
  
              if($node-&gt;nodeable instanceof \App\Image) {
  
                  // do something
  
              } else {
  
                  // do something else
  
              }
  
          }
  
      }
  
  ?&gt;
  </code></pre>
  
  <p>Is there a way to make it more <code>blade-friendly</code>? Or sometimes I just have to switch back to old school PHP templating like so? :)</p>