You broke a gear, and it broke the case. AND, I think this is a Toyota replacement case with the oversized idler. That means there are precious few parts available to repair it.
One more reason to just line another case up before tearing the truck down.