This happened to mine last year - someone at work wasn’t looking where they were going and reversed into it hard enough to push the whole car sideways into the next parking space
I had it trailered to the alignment shop that always deals with my cars - still the same as previous setup… nothing bent or broken
New panel from BMW Germany, and a full respray and it’s better than previously
It’s hard to see how yours is a write-off…. But hopefully you’ll get something figured out soon - good luck