It doesn't look that difficult to fix, honestly. Frames are made of steel and steel bends. That's why it's bent in the first place. So it can be bent back. The side panel and fender can be replaced, along with taillight and headlight, blinker, front bumper, filler panel, and the grille.
A competent frame man could have that fixed in a matter of hours, if not less. I've not even seen the frame damage.
When my Blazer was rear ended, the frame bent between the two leaf spring mounting points on one side. I had it back in a couple of hours with no other work done except spray canning the area of the bend because it caused the paint there to crack and flake off.
State Farm wouldn't offer to fix it if it wasn't. If the repairs are less than the cost to total the vehicle, they will repair it.
Same thing on repairing it. If the cost to repair sheetmetal is less than the cost to replace the panel with new metal, the panel, i.e. the fender, will get repaired.
You'd be surprised. My '01 Blazer with almost 250k miles was valued at $4k.
I paid that for it in 2004 with 102k miles on it. So when they offered me that as compensation when I blew the engine during a flood, I took it. Bought the truck back for $400, GM reman'd longblock for $1900 and I'm back in business with a reman'd engine with 0 miles and a warranty and money in my pocket. The insurance company even still lets me insure it under full coverage because it was a mechanical failure that caused the total loss, not body and structural damage.