sortByDesc('created_at')->take(8); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $hotelList): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
image) ?? [];
$image = isset($images[0]) ? $images[0] : null;
$countryName = App\Models\Country::where('id', $hotelList->country)->first();
$cityName = App\Models\City::where('id', $hotelList->city)->first();
$claimStatus = App\Models\ClaimedListing::where('listing_id', $hotelList->id)->where('listing_type', 'hotel')->first();
?>
id, $hotelList->type);
?>
is_popular); ?>
status == 1): ?>
title); ?>
name); ?>, name); ?>
id)->where('user_id', '!=', $hotelList->user_id)->where('type', 'hotel')->where('reply_id', null)->count();
$total_ratings = App\Models\Review::where('listing_id', $hotelList->id)->where('user_id', '!=', $hotelList->user_id)->where('type', 'hotel')->where('reply_id', null)->sum('rating');
$average_rating = $reviews_count > 0 ? $total_ratings / $reviews_count : 0;
?>
()
feature) && is_array(json_decode($hotelList->feature))) {
$features = json_decode($hotelList->feature);
foreach ($features as $key => $item) {
$feature = App\Models\Amenities::where('id', $item)->first();
if ($key < 2) {
echo '- ' . $feature->name . '
';
}
}
$more_amenities = count(json_decode($hotelList->feature));
if ($more_amenities > 4) {
echo "- +" . ($more_amenities - 4) . ' ' . get_phrase('More') . '
';
}
}
?>
popLoop(); $loop = $__env->getLastLoop(); ?>
sortByDesc('created_at')->take(8); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $restaurantList): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
image) ?? [];
$image = isset($resturentImage[0]) ? $resturentImage[0] : null;
$countryNameR = App\Models\Country::where('id', $restaurantList->country)->first();
$cityNameR = App\Models\City::where('id', $restaurantList->city)->first();
$claimStatus = App\Models\ClaimedListing::where('listing_id', $restaurantList->id)->where('listing_type', 'restaurant')->first();
?>
popLoop(); $loop = $__env->getLastLoop(); ?>
sortByDesc('created_at')->take(8); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $beautyList): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
image) ?? [];
$image = isset($beautyListImage[0]) ? $beautyListImage[0] : null;
$countryNameB = App\Models\Country::where('id', $beautyList->country)->first();
$cityNameB = App\Models\City::where('id', $beautyList->city)->first();
$claimStatus = App\Models\ClaimedListing::where('listing_id', $beautyList->id)->where('listing_type', 'beauty')->first();
?>
is_popular); ?>
id, $beautyList->type);
?>
id)->where('user_id', '!=', $beautyList->user_id)->where('type', 'beauty')->where('reply_id', null)->count();
$total_ratings = App\Models\Review::where('listing_id', $beautyList->id)->where('user_id', '!=', $beautyList->user_id)->where('type', 'beauty')->where('reply_id', null)->sum('rating');
$average_rating = $reviews_count > 0 ? $total_ratings / $reviews_count : 0;
?>
()
id, 'BeautyListing') === 'Open'): ?>
popLoop(); $loop = $__env->getLastLoop(); ?>
sortByDesc('created_at')->take(8); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $realEsate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
image) ?? [];
$image = isset($realEsateImage[0]) ? $realEsateImage[0] : null;
$countryNameReal = App\Models\Country::where('id', $realEsate->country)->first();
$cityNameReal = App\Models\City::where('id', $realEsate->city)->first();
$claimStatus = App\Models\ClaimedListing::where('listing_id', $realEsate->id)->where('listing_type', 'real-estate')->first();
?>
status); ?>
id, $realEsate->type);
?>
name); ?>, name); ?>
bed); ?>
bath); ?>
size); ?>
discount)): ?>
discount)); ?>
price)); ?>
price)): ?>
price)); ?>
popLoop(); $loop = $__env->getLastLoop(); ?>
sortByDesc('created_at')->take(8); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $carList): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
image) ?? [];
$image = isset($carImage[0]) ? $carImage[0] : null;
$countryNameCar = App\Models\Country::where('id', $carList->country)->first();
$cityNameCar = App\Models\City::where('id', $carList->city)->first();
$fuelType = App\Models\Amenities::where('id', $carList->fuel_type)->first();
$engineSize = App\Models\Amenities::where('id', $carList->engine_size)->first();
$claimStatus = App\Models\ClaimedListing::where('listing_id', $carList->id)->where('listing_type', 'car')->first();
?>
is_popular); ?>
id, $carList->type);
?>
-
name); ?>
-
mileage); ?>
-
name); ?>
discount_price)): ?>
discount_price)); ?>
price)); ?>
price)): ?>
price)); ?>
popLoop(); $loop = $__env->getLastLoop(); ?>
groupBy('type');
?>
addLoop($__currentLoopData); foreach($__currentLoopData as $type => $listingsByType): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
sortByDesc('created_at')->take(8); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $listing): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
image) ?? [];
$image = isset($dynamicImage[0]) ? $dynamicImage[0] : null;
$countryNamed = App\Models\Country::where('id', $listing->country)->first();
$cityNamed = App\Models\City::where('id', $listing->city)->first();
$claimStatus = App\Models\ClaimedListing::where('listing_id', $listing->id)->where('listing_type', $listing->type)->first();
?>
id, $listing->type);
?>
is_popular); ?>
status == 1): ?>
title); ?>
name); ?>, name); ?>
id)->where('user_id', '!=', $listing->user_id)->where('type', $listing->type)->where('reply_id', null)->count();
$total_ratings = App\Models\Review::where('listing_id', $listing->id)->where('user_id', '!=', $listing->user_id)->where('type', $listing->type)->where('reply_id', null)->sum('rating');
$average_rating = $reviews_count > 0 ? $total_ratings / $reviews_count : 0;
?>
()
feature) && is_array(json_decode($listing->feature))) {
$features = json_decode($listing->feature);
foreach ($features as $key => $item) {
$feature = App\Models\Amenities::where('id', $item)->first();
if ($key < 2) {
echo '- ' . $feature->name . '
';
}
}
$more_amenities = count(json_decode($listing->feature));
if ($more_amenities > 4) {
echo "- +" . ($more_amenities - 4) . ' ' . get_phrase('More') . '
';
}
}
?>
popLoop(); $loop = $__env->getLastLoop(); ?>
popLoop(); $loop = $__env->getLastLoop(); ?>