@if and @endif inlavrale blade code example
Example: laravel if syntax
@if (foo)
// do something
@elseif (bar)
// do something else
@else
// do some other thing;
@endif
@if (foo)
// do something
@elseif (bar)
// do something else
@else
// do some other thing;
@endif