In cases involving judicial consent to apply for a work permit for a child, the juvenile court shall enter an order either granting, in whole or in part, consent to such application or withholding such consent as is appropriate to protect the health and welfare of the child.
In cases involving petitions filed by or on behalf of a child or such child's parent to obtain treatment, rehabilitation or other services required by law to be provided for such persons, the juvenile court or the circuit court may enter an order in accordance with § 16.1-278.
Va. Code § 16.1-278.13