My son insisted on helping to put the bed back in the upright position and SNAP the left hinge has broken

I know I can get replacement hinges, but it is fitting them! Will I have to remove the side cupboards?
Has anyone else been in this position ?
Thank you for reading this
Hazel (T25)
x