How do we value our cars?

I have about 9-10k into my car so I am well below the value set but the repair cost spit balled by a shop was 10-12k. I am worried they are going to total it and leave me with not enough to fix it myself if it comes to that.