I need help. I am lost.

I am sitting here crying because my 7 year old daughter decided that she didn't want to go to school today. She decided she wasn't going to get dressed. She decided to scream and cry. Because she won't go, I have to miss work. This isn't the first time this has happened.. My girl used to be so good but now she tells me she hates me, she hits her dad, she yells at her little sister. She tells us she doesn't care about us or what we do for her. She lies so much now. I don't know what to do. This only happens at home, at school she is an "angel" her teachers have said. I feel so lost. Where did I go wrong? She won't listen to me. I brushed her hair and put it into a ponytail but it wasn't "tight enough" so she pulled it out and her curly hair became a puff ball but she said she didn't care. We live in an apartment and when she doesn't get what she wants she will scream and stomp and slam doors. I am lost and extremely hurt. I am pregnant and terrified that this is going to get worse. I want to call her school and see if there is a counselor she can speak to because this is bad and I know what I am typing does not even begin to describe her behavior. Last night she was screaming that her bath water wasn't hot enough. I told her I couldn't make it hotter. My younger daughter opened the bathroom door and I asked her to shut it. When she did, my older daughter started screaming about it being closed even though it had been closed almost the entire time. I have a video but I am unable to post. I feel like a failure.