@foreach ($listings as $key => $listing) @php if ($key == 'regular_listing') { $list_name = 'Regular Listings'; } elseif ($key == 'platinum_listing') { $list_name = 'Platinum Listings'; } elseif ($key == 'gold_listing') { $list_name = 'Gold Listings'; } elseif ($key == 'silver_listing') { $list_name = 'Silver Listings'; } elseif ($key == 'latest_listing') { $list_name = 'Latest Listings'; } elseif ($key == 'similar') { $list_name = 'Similar'; } elseif ($key == 'near_by') { $list_name = 'Near By'; } else { $list_name = 'Listings'; } @endphp
Multiple Regions
@else{{ getstateName($item->state) }}
@endif @if (count($citys) > 1)Multiple Cities
@else{{ $item->city == 1 ? 'Mutilple Cities' : getcityName($item->city) }}
@endif @endif{{ $item->user->full_name }}
{{ Carbon\Carbon::parse($item->created_at)->diffForHumans() }}