Brad Pitt and Angelina Jolie had a 10-year run as a Hollywood power couple. Now their divorce is all but finalized. (Photo: Bang ShowBiz)

Brad Pitt and Angelina Jolie, one of Hollyood’s biggest power couples, have resolved the last and biggest issue in their divorce–custody of their kids–and are ready to finalize their divorce 18 months after their separation.

It looks like Brad, 54, got his way on custody. He wanted a joint-arrangement for Maddox, 16, Pax, 14, Zahara, 13, Shiloh, 11, and twins Vivienne and Knox, 9. Jolie wanted full custody. Brad would have had visitation rights.

The couple announced their separation in September 2016 after marrying in 2014, although they had nearly a decade-long relationship. They started dating in 2005.

“The terms of the divorce are now agreed. They are being finalized by both legal teams, but will be filed within weeks. It’s a huge turnaround from where the marriage ended, especially given the claims Angelina made against Brad, but they are now on pretty good terms,” a source told London’s The Sun tabloid.

“Both decided it was crucial for the children that they had a respectful relationship,” the source added.

“The key thing is that they agree to custody sharing, with Brad having access and working with Angelina on logistic issues about work and travel. There were rumors the divorce was being called off, but that’s not the case.”

Brad is reportedly going to therapy every week following the bitter split. Angelina accused him of having problems with anger management and alcohol. The source said:

“He goes to therapy every week and is mostly interested in learning and bettering himself as a man and father.Brad doesn’t go out much with the kids or leave the house. But Brad would definitely like to spend more time with them than he does. He prefers to keep things very private and safe. It’s his sanctuary and just being there is where he finds peace. He has projects around the house and is always making things or changing things around.”

Pitt has acknowledged his drinking problem.

“I can’t remember a day since I got out of college when I wasn’t boozing or had a spliff, or something. Something. And you realize that a lot of it is, um – cigarettes, you know, pacifiers. And I’m running from feelings. I’m really, really happy to be done with all of that. I mean I stopped everything except boozing when I started my family. But even this last year, you know – things I wasn’t dealing with. I was boozing too much. It’s just become a problem.”