@extends('layout.app') @section('content') @php($fmt = fn ($v) => number_format($v, 2))
Category: @if($property->categories->isNotEmpty()) {{ $property->categories->pluck('name')->join(' · ') }} @else None selected yet@if($canEdit) · Choose categories@endif @endif
@if($photos->isNotEmpty()) @endif{{ $property->address }}
{{ $property->city?->city_name }}, {{ $property->city?->district?->district_name }}
{{ $property->city?->district?->province?->province_name }}
@if($property->mapEmbedUrl()) @endif @if($property->mapUrl()) @elseif($property->location){{ $property->location }}
@elseNo map pin yet.@if($canEdit) Add one@endif
@endif{{ $property->propertyOwner?->name }}
{{ $property->propertyOwner?->email }}
{{ $property->propertyOwner?->phone }}
{{ $property->primaryContact->name }}
{{ $property->primaryContact->mobile }}
{{ $property->primaryContact->email ?: 'No email' }}
{{ $property->primaryContact->user ? 'Has a login account' : 'No login account' }}
@elseNot set
@endif{{ $property->effectiveCancellationDays() }} day(s) before check-in
Cancellations within {{ $property->effectiveCancellationDays() }} day(s) of check-in, and no-shows, are not refunded. @if($property->cancellation_days === null) (Platform default) @endif
{{ $amenities->isNotEmpty() ? $amenities->join(' · ') : 'None added' }}
Available = total − closed − booked; a room type with no complete USD + LKR rates today is closed.
@forelse($roomTypes as $item) @php($roomType = $item['roomType'])Meal plans today: {{ $item['mealPlans']->isNotEmpty() ? $item['mealPlans']->pluck('mealType')->join(', ') : 'None' }}
@if($item['amenities']->isNotEmpty())Room amenities: {{ $item['amenities']->join(' · ') }}
@endif @if($item['rates'])| Guests | Meal plan | USD | LKR |
|---|---|---|---|
| {{ $rate['occupancy']->occupancy_name }} | {{ $rate['mealType']->mealType }} | {{ $fmt($rate['usd']) }} | {{ $fmt($rate['lkr']) }} |
No room types are set up at this property.
@endforelse