Correct all grammatical flaws in the paragraph:
Learning in schools, however, provides valuable opportunity for children to learn not only from teachers, but also from relationships between peers, and as a result, proves the way for being independent in the future.
Learning in schools, however, provides a valuable opportunity for children to learn not only from teachers but also from relationships between peers, and as a result, paves the way for being independent in the future.