Answers for "laravel if statement condition"

PHP
7

laravel if syntax

@if (foo)
  // do something
@elseif (bar)
  // do something else
@else
  // do some other thing;
@endif
Posted by: Guest on May-11-2020
0

if statement in laravel blade

@if($order->status == 'NEEDS REVISION')
                    <td>{{$order->status}}</td>
                @else
                    <td id="revision-status">{{$order->status}}</td>
                @endif
Posted by: Guest on September-08-2021

Code answers related to "laravel if statement condition"

Browse Popular Code Answers by Language