Expressions (phrases, clauses, etc.), I-adjective (keiyoushi)
losing everything; suffering a total loss; coming to nothing; having lost the interest and the principal
Idiomatic expression
それじゃあ元も子もないじゃないか。Then that means I lost everything.
Also written 元も子も無い【もともこもない】