1@if($user->status =='active')
2 <td>{{ $user->name }}</td>
3@else
4 <td> Guest </td>
5@endif
1@if (foo)
2 // do something
3@elseif (bar)
4 // do something else
5@else
6 // do some other thing;
7@endif
1@foreach ($users as $user)
2 <p>This is user {{ $user->id }}</p>
3@endforeach
4
5@forelse ($users as $user)
6 <li>{{ $user->name }}</li>
7@empty
8 <p>No users</p>
9@endforelse