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.
This is my code for creating a input button inside a tabledata <td>.
@if ({{ $customer->active }})
<input type="button" name="active" value="Active">
@else
<input type="button" name="active" value="Inactive">
@endif
Error
Parse error: syntax error, unexpected '<' (View:...)
Result (After implementing solution)
<td>
<input type="button" id="active" name="active"
value="{{ $customer->active ? 'Active' : 'Inactive' }}">
</td>
