1@if($user->status =='active')
2 <td>{{ $user->name }}</td>
3@else
4 <td> Guest </td>
5@endif
1//LARAVEL - BLADE:
2
3@guest
4 // The user is not authenticated...
5@endguest
6
7@auth
8 // The user is authenticated...
9@endauth
1@forelse ($users as $user)
2 <li>{{ $user->name }}</li>
3@empty
4 <p>No users</p>
5@endforelse
1@if (count($records) === 1)
2 I have one record!
3@elseif (count($records) > 1)
4 I have multiple records!
5@else
6 I don't have any records!
7@endif
1@if ($dummy == 1) we have 1 record@elseif ($dummy ==10) we have 10 record@else No record found.@endif
1 @if($order->status == 'NEEDS REVISION')
2 <td>{{$order->status}}</td>
3 @else
4 <td id="revision-status">{{$order->status}}</td>
5 @endif