"My plan is to put foam board on the roof and then cover it with fiberglass, then add some pet tubing on top of that, and then solar panels on top of that, and then seal all of that with clear resin."
That design will lead to low photoelectric output from your solar panels as you'll see when you read up on solar panels.
Is all that going to go on top of your roof mounted water tanks?
Jack