title: Laravel blade - Add a class if a condition is met
body: <p>This is simple but I can't seem to be able to do it with blade and I usually go back to php for this but, since I can't declare a new php variable with blade (without printing it, that is) how should I change a simple class name if a certain condition is met? Take this example of a link, I just want to add the class "active" if $hostess->active=1</p>
  
  <pre><code> {{ HTML::linkRoute('hostesses.index', 'Archived', $params, array('class' =&gt; 'btn btn-default')) }}
  </code></pre>
  
  <p>I know how to do this with php, but how would it be done with blade?</p>