Usar si en Laravel Blade
@if($user->status =='active')
<td>{{ $user->name }}</td>
@else
<td> Guest </td>
@endif
ssbrar
@if($user->status =='active')
<td>{{ $user->name }}</td>
@else
<td> Guest </td>
@endif
@if (foo)
// do something
@elseif (bar)
// do something else
@else
// do some other thing;
@endif
@if (count($records) === 1)
I have one record!
@elseif (count($records) > 1)
I have multiple records!
@else
I don't have any records!
@endif