To me, the two are not interchangeable. In the first example, "everything to be had," the word "had" functions like a synonym to the aforementioned word "gained." In order to make sense in this context, it needs to stay in the past tense.
Since "everything we are to have" is in the future, it doesn't have the same meaning or sound correct here.