laravel blade for if

32

@if($user->status =='active')         
      <td>{{ $user->name }}</td>         
@else
      <td> Guest </td>        
@endif
@forelse ($users as $user)
    <li>{{ $user->name }}</li>
@empty
    <p>No users</p>
@endforelse

Comments

Submit
0 Comments