status == 1): ?>
title); ?>
); ?>)
city)->first()->name;
$country_name = App\Models\Country::where('id', $listing->country)->first()->name;
?>
id)->where('user_id', '!=', $listing->user_id)->where('type', 'hotel')->where('reply_id', null)->count();
$total_ratings = App\Models\Review::where('listing_id', $listing->id)->where('user_id', '!=', $listing->user_id)->where('type', 'hotel')->where('reply_id', null)->sum('rating');
$average_rating = $reviews_count > 0 ? $total_ratings / $reviews_count : 0;
?>
()