{{ $motel->name }}

@if($motel->address)
{{ $motel->address }}
@endif
{{--
--}}
@foreach($rooms as $room) @php $imageUrl = 'https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?w=400&h=300&fit=crop'; if (isset($room->images) && is_array($room->images) && count($room->images) > 0) { $img = $room->images[0]; if (!empty($img) && trim($img) !== '') { $imageUrl = str_starts_with($img, 'http') ? $img : asset('storage/' . ltrim($img, '/')); } } @endphp
Listing
Được khách yêu thích

{{ $motel->name }} - Phòng {{ $room->room_number }}

Tầng {{ $room->floor }} Sức chứa {{ $room->capacity }} người status === \App\Models\Room::STATUS_AVAILABLE) style="color: #16a34a;" @elseif($room->status === \App\Models\Room::STATUS_OCCUPIED) style="color: #dc2626;" @else style="color: #ca8a04;" @endif viewBox="0 0 20 20"> {{ $room->status_text ?? ucfirst($room->status) }}
₫{{ number_format(optional($room->roomPrices->sortByDesc('created_at')->first())?->price ?? 0, 0, ',', '.') }} cho 1 tháng
@php $averageRating = $motel->reviews()->completed()->whereNotNull('rating')->avg('rating'); $averageRating = number_format($averageRating, 2, ',', '.'); @endphp {{ $averageRating ?? 0 }}
@endforeach