long read but need help

long story, read if you have some advice to give me. 😊

okay. so. I'm married. I have a baby on the way. I have a 6 year old. so we are totally happy and stable and excited for this baby 😁

my 6 year old, her dad and I are not together, but we have split custody. right now, he lives about an hour away...and his car has been in the repair shop. so I currently have her on the weekdays for school, and he has her on the weekends. we dont really get along, so we dont talk very much. only the necessary communication.

so....my in laws are moving to a different state, 10 hours away. they just bought the most beautiful house that has a huge barn included. well, they have offered to turn the barn into an updated modern apartment for us! how amazing. how could we pass up on such an offer! so, that being said, our baby is due in March. our lease is up in August. so by August, we will be moving to that state to live with, or near my in laws.

I obviously have to tell my daughters dad. I plan to take her with us! and he can have her for every other Thanksgiving, and Christmas, spring break, and every summer.

what would you do? when would you tell him, how would you tell him, and if hes totally against it...the court has to get involved. so when would you start this whole process if you only had 9 months left!

please, serious advice only and if you dont have anything nice to say, just move on. I'm pregnant, I don't need any more stress, thank you!