The Valley Stream mother accused of shooting up heroin in her parked car with her 5-year-old daughter in the back seat told cops, “I’m sorry; I’m sorry. I just had a relapse. I was in rehab,” according to court documents.

Heather Dajani, 25, had the needle “still injected into her left arm” when police arrived after a passer-by saw the mom shooting up inside her parked 2004 Nissan and called 911, the documents said.

The responding Nassau police officer, according to the documents, said he found a second needle in the driver’s side door compartment; an orange straw with a brownish white substance inside believed to be heroin on top of the driver’s door handle; marijuana; a partial glass pipe containing a white powdery substance believed to be crack cocaine inside the center console; and 21 prescription pain pills believed to be the nerve pain medication, pregabalin.

Dajani was ordered held by Nassau District Court Judge Darlene Harris on $2,000 bond or $1,000 cash bail at her arraignment Wednesday.

The judge also issued a stay-away order, barring Dajani from contact with her daughter while she’s under the influence.

Nassau Assistant District Attorney Charles Dunn had asked the judge for a $7,500 bail and said Dajani had a previous felony conviction and had twice failed to appear in court.

advertisement | advertise on newsday

Dajani is charged with endangering the welfare of a child, three counts of seventh-degree possession of a controlled substance, and possession of a hypodermic needle and marijuana in connection with her Tuesday night arrest in the 700 block of Franklin Avenue in Franklin Square.

In a supporting deposition, the witness who called 911, Michael Borges, 18, said he walked by Dajani’s car and saw a woman in a red shirt and gray sweatpants in the driver’s seat with a “hypodermic needle stuck in her upper left arm and there was blood dripping from it.”

He said he saw the young child, called 911 and waited for police to arrive.

Dajani’s Legal Aid Society attorney said in court that his client has a “whole lot of family support” and was trying to get into a detox program.

Dajani is currently unemployed, the lawyer said, but she previously worked as a bartender at an Astoria, Queens, diner.

The lawyer objected to the stay-away order, saying: “I don’t believe that this child needs the protection of the court.”