title: Laravel Blade if statement with input button
body: <p>Does somebody know how to correcly create an input button using Laravel Blade? I needs to alternate between a active and inactive stated. That's why I'm using an if-statement.</p>
  
  <p>This is my code for creating a input button inside a tabledata <code>&lt;td&gt;</code>.</p>
  
  <pre><code>@if ({{ $customer-&gt;active }})
  
          &lt;input type="button" name="active" value="Active"&gt;
  
  @else   
  
          &lt;input type="button" name="active" value="Inactive"&gt;
  
  @endif
  </code></pre>
  
  <p>Error</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '&lt;' (View:...)</p>
  </blockquote>
  
  <p><strong>Result</strong> (After implementing solution)</p>
  
  <pre><code>&lt;td&gt;
          &lt;input type="button" id="active" name="active" 
          value="{{ $customer-&gt;active ? 'Active' : 'Inactive' }}"&gt;
  
  &lt;/td&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/PE2Rc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PE2Rc.png" alt="enter image description here"></a></p>