laravel blade if condition inline code example
Example 1: laravel inline if
{{ $var == "hello" ? "Hi" : "Goodbye" }}
Example 2: use if in laravel blade
@if($user->status =='active')
<td>{{ $user->name }}</td>
@else
<td> Guest </td>
@endif