if statement in head of html laravel blade code example
Example: use if in laravel blade
@if($user->status =='active')
<td>{{ $user->name }}</td>
@else
<td> Guest </td>
@endif
@if($user->status =='active')
<td>{{ $user->name }}</td>
@else
<td> Guest </td>
@endif