Can dogs be depressed?? How to help?? Please

My soon to be ex husband has decided to pack all of things and leave. We have two dogs. Both are dogs that we had before we met. Of course, We moved in together and everything. The dogs have been together for 5 years. They grew such a close bond. My ex husband left 3 days ago and took his dog with him and my dog has been extremely down. He won’t eat. He goes outside and starts sniffing around everywhere then he’ll just sit. Once he comes inside the house he goes straight to my room and just lays in his bed. He has always been so energetic and playful but now he’s completely different. What do you think? Thanks for any advice or help