Laravel – php checking if null with @if inside @foreach loop
I'm tring to check if null with @if for data in show.blade <li id="step6"><strong>Schritt 6<br>@foreach($dbQuery as $query){{$query->sixth_step}}@endforeach</strong></li> if sixth_step is null to remove the <li> list item element tried the following but not working @foreach($dbQuery as $query){{$query->sixth_step}} if({{$query->sixth_step}} !=null) <li…