// Check if hotel_type data exists for reservation #3
$res = App\Models\Reservation::with('rooms')->find(3);
if (!$res) {
    echo "Reservation #3 not found!\n";
    exit;
}

echo "Reservation #3 ({$res->reservation_code}):\n";
foreach ($res->rooms as $room) {
    echo "  Room ID: {$room->id}\n";
    echo "  Room Type: {$room->room_type}\n";
    echo "  Hotel Type: " . ($room->hotel_type ?? 'NULL') . "\n";
    echo "  ---\n";
}
