Its a nice car and will probably be written off, but it would be worth finding out if you can buy it back and get some quotes from good recommended panel beater/ spray shop, if you bought second hand bumpers, tailgate etc it would work out quite cheap when rejigged. It looks bad but once all the bumpers etc are removed a good panel beater will be able to pull the boot floor out, if that's all the hidden damage. Ok it will be cat c/d but done right it will be as good as new.