if else statement in laravel blade
snippet in php

laravel if syntax

user9246

@if (foo)
  // do something
@elseif (bar)
  // do something else
@else
  // do some other thing;
@endif

if else statement in laravel blade

user1324

@if ($dummy == 1)    we have 1 record@elseif ($dummy ==10)    we have 10 record@else    No record found.@endif