Chief justice has submitted his resignation: law advisor