Car is totaled, now what?

Car is totaled, now what?

I was rear ended by some dude on his phone who apparently had no insurance. I then found out that my partner only bought us liability even though we drive this financed BMW with 17k still owed! I even bought GAP insurance for this very situation but it was void because of his moronic choice. Anyhoo… I still owe 17k and the car is totaled according to the body shop ( it is a 2017 x3 328i with 120k mil s). Every other part of the car is perfect. But as you can see it is severely damaged on the back and right side. I now have no vehicle and I owe the money on this one. So I’m trying to figure out if there is any way to get a cheap job done to at least make it drivable? How would I find that person? Do I just try and sell it as is to a place like carbrain for the 6k they offered and pay the difference? Then buy something else? I hate to buy a new car if I could fix this one but the quotes I’m getting are so high I can’t seem to make it make sense. Any suggestions?

TYIA for any help.