Answers for "if condition in html laravel"

PHP
5

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
0

laravel inline if else if

{{$var == 'hello' ? 'Hi' : ($var == 'bye' ? 'Goodbye' : 'another option')}}
Posted by: Guest on May-21-2021

Code answers related to "if condition in html laravel"

Browse Popular Code Answers by Language