JE1 / WENN 1 / 18

Nearly a decade after Britney Spears' public meltdown, court documents state drugs were a factor in the singer's troubled life circa 2007 and 2008.

The new information comes courtesy of Sam Lutfi, the former friend and manager who's been accused of manipulating her for his own gain. Lutfi has been trying to recoup what he claims is his fair share of the $800,000 a month she was earning when he took her on as his client as part of a verbal agreement that mandated she pay him and stay clean in return for his management assistance. Lutfi claims she did neither of those things and that he's owed money for the time he spent managing her prior to her psychiatric commitment in 2008, according to multiple reports.

With his lawyers preparing to depose Britney in the case, her team filed documents from 2015 in an attempt to keep him out of the room during the deposition, TMZ reports.

In those documents, judges for the California Court of Appeals state she struggled with substance abuse to the point that she slept in a parking lot on the day her sons were taken away from her in 2007.

"She spent a night in a parking lot, then called Sam and told him he was one of the few people she trusted," the documents state, according to Metro. "That night, he moved into her home. With the exception of a brief period in December 2007, Sam lived in Britney's home until February 1, 2008."

Lutfi claims he and Spears had a verbal contract agreeing she would pay him 15 percent of her earnings and stay clean in return for his management, according to the Hollywood Reporter. He says he kept up his end of the deal but was never paid.

"We must determine whether Sam's inconsistent testimony as to the start date, the right to terminate, and calculation of his fees shows insufficient clarity of material terms to enforce the alleged contract as a matter of law," judges write in the documents.

"We find that it does not. As set forth above, it is a factual question for the jury to determine whether an oral contract was formed between Sam and Britney, and if so, to interpret the material terms of that contract."

The relationship between Spears and Lutfi has landed in court for other reasons, too, over the years.

In Spears' mother's memoir, "Through the Storm," she alleged Lutfi drugged Spears and prevented her from communicating with her family, among other manipulative acts. Lutfi tried to sue Spears' mom for defamation, but that case was subsequently dismissed.