(a) If the court finds that there was such a denial or infringement of the constitutional or statutory rights of the juvenile so as to render the commitment void or voidable, the court shall vacate and set aside the judgment or order a delayed appeal as hereinafter provided, and shall enter an appropriate order and any supplementary orders that may be necessary and proper.
(b) Costs shall be taxed as in criminal cases.
(c) Upon the final disposition of every petition, the court shall enter a final order, and, except where the proceedings for delayed appeal are allowed, shall set forth in the order or a written memorandum of the case all of the grounds presented and shall state the findings of fact and conclusions of law with regard to each ground.
(d) Where the petitioner has court-appointed counsel, the court may require petitioner's counsel to file a verified statement of dates and times counsel has consulted with petitioner, and this statement shall become part of the record.