If you are asking if the panel can be in this location by code. I would say yes if you have the required work space in front of the panel. Would I put it there? No I've seen to many beds and chest of draws in front of the panel. Also I do not like the idea of the tub wall on the backside of the panel.
Al