At the beginning of the hearing on a petition filed pursuant to Article 16 (commencing with Section 650) of this chapter, the judge or clerk shall first read the petition to those present and upon request of the minor upon whose behalf the petition has been brought or upon the request of any parent, relative or guardian, the judge shall explain any term of allegation contained therein and the nature of the hearing, its procedures, and possible consequences. The judge shall advise those present that if the petition or petitions are sustained and the minor is ordered
to make restitution to the victim, or to pay fines or penalty assessments, the parent or guardian may be liable for the payment of restitution, fines, or penalty assessments. The judge shall ascertain whether the minor and his or her parent or guardian or adult relative, as the case may be, has been informed of the right of the minor to be represented by counsel, and if not, the judge shall advise the minor and such a person, if present, of the right to have counsel present and where applicable, of the right to appointed counsel. The court shall appoint counsel to represent the minor if he or she appears at the hearing without counsel, whether he or she is unable to afford counsel or not, unless there is an intelligent waiver of the right of counsel by the minor; and, in the absence of such a waiver, if the parent or guardian does not furnish counsel and the court determines that the parent or guardian has the ability to pay for counsel, the court shall appoint counsel at the expense of the parent or
guardian. The court shall continue the hearing for not to exceed seven days, as necessary to make an appointment of counsel, or to enable counsel to acquaint himself or herself with the case, or to determine whether the parent or guardian or adult relative is unable to afford counsel at his or her own expense, and shall continue the hearing as necessary to provide reasonable opportunity for the minor and the parent or guardian or adult relative to prepare for the hearing.