@if(count($practitionerHealthFunds)) @foreach ($practitionerHealthFunds as $val) {{ $val->healthcodes->name ?? "" }} {{ $val->provider_number ?? "" }} @if($practitionerLocation->count()>=2) @if($val->location =="All") {{ "All locations" }} @else {{ getLocationAddress($val->locations->address ?? "") }} @endif @endif @endforeach @else You have not added any health fund provider numbers @endif