Answers for "how to use if condition inside @each blade in laravel 8"

PHP
2

use if in laravel blade

@if($user->status =='active')         
      <td>{{ $user->name }}</td>         
@else
      <td> Guest </td>        
@endif
Posted by: Guest on August-15-2020

Code answers related to "how to use if condition inside @each blade in laravel 8"

Browse Popular Code Answers by Language