@if (count($featured_contents) < 1 && count($currentPageData) < 1)

{{ __('NO LISTING FOUND') }}

@else
@foreach ($featured_contents as $listing_content)
{{ optional($listing_content)->title }} @if (Auth::guard('web')->check()) @php $user_id = Auth::guard('web')->user()->id; $checkWishList = checkWishList($listing_content->id, $user_id); @endphp @else @php $checkWishList = false; @endphp @endif
@php if ($listing_content->vendor_id == 0) { $vendorInfo = App\Models\Admin::first(); $userName = 'admin'; } else { $vendorInfo = App\Models\Vendor::findorfail($listing_content->vendor_id); $userName = $vendorInfo->username; } @endphp @php $categorySlug = App\Models\ListingCategory::findorfail($listing_content->category_id); @endphp {{ $listing_content->category_name }}
{{ optional($listing_content)->title }}
({{ number_format($listing_content->average_rating, 2) }}) {{ totalListingReview($listing_content->id) }} {{ __('Reviews') }}
@php $city = null; $State = null; $country = null; if ($listing_content->city_id) { $city = App\Models\Location\City::Where('id', $listing_content->city_id)->first()->name; } if ($listing_content->state_id) { $State = App\Models\Location\State::Where('id', $listing_content->state_id)->first()->name; } if ($listing_content->country_id) { $country = App\Models\Location\Country::Where('id', $listing_content->country_id)->first()->name; } @endphp {{ @$city }} @if (@$State) ,{{ $State }} @endif @if (@$country) ,{{ @$country }} @endif @if ($listing_content->max_price && $listing_content->min_price)
{{ __('From') }}
{{ symbolPrice($listing_content->min_price) }} - {{ symbolPrice($listing_content->max_price) }}
@endif
@endforeach @foreach ($currentPageData as $listing_content)
{{ optional($listing_content)->title }} @if (Auth::guard('web')->check()) @php $user_id = Auth::guard('web')->user()->id; $checkWishList = checkWishList($listing_content->id, $user_id); @endphp @else @php $checkWishList = false; @endphp @endif
@php if ($listing_content->vendor_id == 0) { $vendorInfo = App\Models\Admin::first(); $userName = 'admin'; } else { $vendorInfo = App\Models\Vendor::findorfail($listing_content->vendor_id); $userName = $vendorInfo->username; } @endphp @php $categorySlug = App\Models\ListingCategory::findorfail($listing_content->category_id); @endphp {{ $listing_content->category_name }}
{{ optional($listing_content)->title }}
({{ number_format($listing_content->average_rating, 2) }}) {{ totalListingReview($listing_content->id) }} {{ __('Reviews') }}
@php $city = null; $State = null; $country = null; if ($listing_content->city_id) { $city = App\Models\Location\City::Where('id', $listing_content->city_id)->first()->name; } if ($listing_content->state_id) { $State = App\Models\Location\State::Where('id', $listing_content->state_id)->first()->name; } if ($listing_content->country_id) { $country = App\Models\Location\Country::Where('id', $listing_content->country_id)->first()->name; } @endphp {{ @$city }} @if (@$State) ,{{ $State }} @endif @if (@$country) ,{{ @$country }} @endif @if ($listing_content->max_price && $listing_content->min_price)
{{ __('From') }}
{{ symbolPrice($listing_content->min_price) }} - {{ symbolPrice($listing_content->max_price) }}
@endif
@endforeach
@if ($listing_contents->count() / $perPage > 1) @endif @endif