Sorry this happened to you, thats a repair that's nastier than it looks. Quite often, the door never closes or feels quite "right" after the repair and it never gets resolved. Your vehicle needs a frame pull and squaring, windshield removal before the pull, plus a lot more including what discovered after teardown as mentioned in another comment. However, from the photo, I think the "A" pillar needs replacement. Body repairs are $$. Start shopping, your car is totalled.
Even if the 'A pillar can be fixed, my guess is the repars would be in the $8k range give or take. Not sure what the miles are on your E but if its average for a 2010 around 120k it has a market value of about $10k. Insurance companies total out around 75% value (used to be wholesale value) but it varies. MIght be a blessing, I wish my 2011 had been totalled.

. It was a relatively tough sell and the price I got 2 years ago for such a nice 44k mile vehicle was disappointing.
Good luck and please report back with the estimate and outcome.