Inline if statements...
{{ 1===1 ? 'say 1' : 'say 2' }}
https://stackoverflow.com/questions/25284344/ternary-in-laravel-blade
Blade statements require a newline after to work:
@if(1==1)
say 1
@else
say 2
@endif
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community