How to fix this? Suggestions?

Sha

Hi everyone! So when we bought our house this part was as is...drawers were missing. There’s exposed staples and parts that could leave splinters. We don’t leave my son unattended right now but eventually when he’s older we want him to be able to play in his room without concern. Trying to figure out how to fix this. Doors? Big shelves? Any ideas?