Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

if statement in laravel blade

      @if($order->status == 'NEEDS REVISION')
                    <td>{{$order->status}}</td>
                @else
                    <td id="revision-status">{{$order->status}}</td>
                @endif
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #statement #laravel #blade
ADD COMMENT
Topic
Name
4+4 =