Advice and participation in the proceedings in court