Make (weld) a jig across the full length of the chassis, fix it to the chassis at structural points, replace battery.
The chassis should be repairable if it is still in-line, bit it will be quite some work.
I flipped over three times in my Opel Speedster (Lotus chassis), repaired the chassis...