best way to repair this?

Buy a quarter panel skin and use the leftover metal to fix the A piller. Looks like the windshield is cracked so it has to come out anyway so be prepaired to find more rot. I hope you have a welder or know someone who has one. Good luck