(a) If the child is not released as provided in Title 5, section 2513, a detention hearing must be held before the court no later than forty-eight hours, excluding Sundays, after the child is placed in detention.
(b) Prompt notice of the detention hearing, stating the time, place and purpose of the hearing shall be given to the child, his parent or other person responsible for his care if they can be found. Counsel for the child, or parent or other person responsible for his care shall be entitled to a copy of the complaint prior to the hearing.
(c) At the commencement of the hearing the judge shall advise the judge shall advise the parties of the right to counsel, as provided in Title 5, section 2505, and shall appoint counsel if required. The judge shall also inform them of the contents of the complaint, or in the absence of a complaint the alleged delinquent act, and shall afford the child an opportunity to admit or deny the allegations in the complaint. He shall then hear from the Attorney General to determine whether the child should be placed or continued in detention care under the criteria in section 2514 of this title. The child and his parent, or other person responsible for his care, shall have a right to be heard on their own behalf.
(d) At the conclusion of the hearing, the judge shall:
(1) order detention care, setting forth in writing his reasons therefor, if the judge finds that the child's detention care is required under the criteria in section 2514; or
(2) order the child released if the judge finds that the child's detention is not required under such criteria.
(e) If a child is ordered released under paragraph (d)(2) of this section, the judge may impose one or more of the following conditions:
(1) place the child in custody of a parent, guardian, custodian or other responsible adult under their supervision, or under the supervision of an agency agreeing to supervise him;
(2) place restrictions on the child's travel, association, or place of abode during the period of his release; or
(3) impose any other conditions reasonably necessary to assure the appearance of the child at the next court hearing or his protection from harm, including a requirement that the child return to the physical custody of the parent, guardian, custodian or other responsible adult under paragraph (1) of this subsection after specified hours.
(f) An order releasing the child on any conditions specified in this section may at any time after the judicial hearing be amended to impose additional or different conditions of release or to return the child to custody for failure to conform to the conditions imposed.
(g) All relevant and material evidence helpful in determining the need for detention care may be admitted by the court even though not competent in a hearing on the complaint.
(h) If the child is not released and the parent, or other person responsible for his care, has not been notified and did not appear or waive appearance at the hearing, upon the filing of an affidavit from the parent, or other person responsible for his care, stating these facts, the court shall rehear the matter without unnecessary delay.
(i) In addition to the criteria set forth in section 2514, the judge must find there is a probable cause to believe the allegations are true for the child to be held in detention. In the absence of a finding of probable cause the judge shall order the child to be released.