use if in laravel blade
snippet in php

laravel if syntax

user3785

@if (foo)
  // do something
@elseif (bar)
  // do something else
@else
  // do some other thing;
@endif

use if in laravel blade

user7326

@if($user->status =='active')         
      <td>{{ $user->name }}</td>         
@else
      <td> Guest </td>        
@endif