title: How can I add operator ternary in class on the view laravel blade?
body: <p>I try like this :</p>
  
  <pre><code>@for($i = 0; $i &lt; 5; $i++) 
  ...
      &lt;div class="image ($i==0) ? 'image-main' : ''"&gt;
  ...
  @endfor
  </code></pre>
  
  <p>But it does not work.</p>
  
  <p>It seems the way of writing is incorrect.</p>
  
  <p>How can I solve this problem?</p>