@if($listing->images && count($listing->images) > 0)
{{ $listing->title }}
@else
{{ $listing->title }}
@endif
/
{{ $listing->title }}
{{ $listing->rentalType->name }} {{ $listing->location->name }} @if($listing->host->vacation_mode) Host on Vacation @endif

{{ $listing->title }}

@if($listing->reviews_count > 0)
@for($i = 1; $i <= 5; $i++) @if($i <= round($listing->reviews_avg_rating)) @else @endif @endfor {{ number_format($listing->reviews_avg_rating, 1) }} ({{ $listing->reviews_count }} {{ $listing->reviews_count === 1 ? 'review' : 'reviews' }})
@endif
Up to {{ $listing->capacity }} guests

Description

{!! nl2br(e($listing->description)) !!}
@if($listing->amenities && count($listing->amenities) > 0)

Amenities

@foreach($listing->amenities as $amenity)
{{ $amenity }}
@endforeach
@endif @if($listing->discountTiers && $listing->discountTiers->count() > 0)

Special Discounts

Save more when you book for multiple days!

@foreach($listing->discountTiers as $tier)

Minimum: @if($tier->max_days) {{ $tier->min_days }}-{{ $tier->max_days }} days @else {{ $tier->min_days }}+ days @endif

{{ number_format($tier->discount_value, 0) }}% OFF

@endforeach
@endif @if($listing->addOns && $listing->addOns->count() > 0)

Available Add-ons

Enhance your experience with these optional extras

@foreach($listing->addOns as $addOn)

{{ $addOn->name }}

{{ $addOn->description }}

RM {{ number_format($addOn->pivot->custom_price ?? $addOn->price, 2) }} {{ $addOn->getPricingTypeLabel() }}
@endforeach
@endif
RM {{ number_format($listing->price_per_day, 2) }}
per day
@if($listing->host->vacation_mode)

Host Currently on Vacation

This listing is temporarily unavailable for booking. The host will return soon!

@else @auth @else Login to Book @endauth @endif
{{ strtoupper(substr($listing->host->name, 0, 1)) }}

Hosted by {{ $listing->host->name }}

@php $hostBadge = $listing->host->highest_badge ?? $listing->host->activeBadges()->first(); @endphp @if($hostBadge) @php $badgeConfig = \App\Models\BadgeConfig::where('badge_type', $hostBadge->badge_type)->first(); @endphp {{ $badgeConfig->icon ?? '🏅' }} {{ $badgeConfig->name ?? $hostBadge->display_name }} @endif
@php $hostListings = $listing->host->listings; $totalReviews = \App\Models\Review::whereIn('listing_id', $hostListings->pluck('id'))->count(); $avgRating = \App\Models\Review::whereIn('listing_id', $hostListings->pluck('id'))->avg('rating'); @endphp @if($totalReviews > 0)
{{ number_format($avgRating, 1) }}
({{ $totalReviews }} {{ $totalReviews === 1 ? 'review' : 'reviews' }})
@endif

Member since {{ $listing->host->created_at->format('Y') }}

@if($listing->host->vacation_mode)
On Vacation
@endif
@if($listing->reviews_count > 0)

Guest Reviews ({{ $listing->reviews_count }})

@for($i = 1; $i <= 5; $i++) @if($i <= round($listing->reviews_avg_rating)) @else @endif @endfor {{ number_format($listing->reviews_avg_rating, 1) }} out of 5

Showing {{ $reviews->count() }} of {{ $listing->reviews_count }} reviews

@foreach($reviews as $review)
{{ strtoupper(substr($review->user->name, 0, 1)) }}

{{ $review->user->name }}

{{ $review->created_at->format('M d, Y') }}

@for($i = 1; $i <= 5; $i++) @if($i <= $review->rating) @else @endif @endfor

{{ $review->comment }}

@if($review->images && count($review->images) > 0)
@foreach($review->images as $index => $image)
Review image
@endforeach
/
@if(count($review->images) > 1) @endif
Review image
@if(count($review->images) > 1) @endif
@endif
@endforeach
@if($reviews->hasPages())
{{ $reviews->links() }}
@endif
@endif