@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 }}
({{ 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