@if(empty($upcomingStays))
@else
@foreach($upcomingStays as $stay)
CHECK-IN
{{ isset($stay['checkIn']) ? date('d M Y', strtotime($stay['checkIn'])) : 'N/A' }}
CHECK-OUT
{{ isset($stay['checkOut']) ? date('d M Y', strtotime($stay['checkOut'])) : 'N/A' }}
Room Type
{{ $stay['roomType'] ?? ($stay['rooms'][0]['roomName'] ?? 'Executive Room') }}
Total Amount
{{ isset($stay['totalAmountSpent']) && is_numeric($stay['totalAmountSpent']) ? '₹' . number_format($stay['totalAmountSpent'], 2) : 'N/A' }}
Special Requests:
{{ !empty($stay['specialRequests']) ? $stay['specialRequests'] : 'No special requests' }}
@endforeach
@endif
@if(empty($previousStays))
@else
@foreach($previousStays as $stay)
CHECK-IN
{{ isset($stay['checkIn']) ? date('d M Y', strtotime($stay['checkIn'])) : 'N/A' }}
CHECK-OUT
{{ isset($stay['checkOut']) ? date('d M Y', strtotime($stay['checkOut'])) : 'N/A' }}
Amount Spent
{{ isset($stay['totalAmountSpent']) && is_numeric($stay['totalAmountSpent']) ? '₹' . number_format($stay['totalAmountSpent'], 2) : 'N/A' }}
Pay By Loyalty Points
@if(isset($stay['loyaltyPointsUsed']) && $stay['loyaltyPointsUsed'] !== null)
{{ $stay['loyaltyPointsUsed'] }} pts
@else
Pending
@endif
Loyalty Points Earned
@if(isset($stay['loyaltyPointsEarned']) && $stay['loyaltyPointsEarned'] !== null)
{{ $stay['loyaltyPointsEarned'] }} pts
@else
Pending
@endif
@endforeach
@endif