How does the concept of eternal judgment relate to the idea of rewards in heaven?

Eternal judgment and rewards in heaven