Where the relief valve is doesnt always mean thats the inlet. So NEVER use that as a guide.
Based on your PDF, yes I'd say bottom is inlet from pump.
But does this backhoe have its own pump? or are you hooking it to remotes?
If you get them backwards, you will likely blow out the spool seals where the spools come out of the casting. And not rated for full system pressure. Same thing happens if someone tries to run something PB but uses tank port instead.
Might need to take hoses off, or get a mirror or something, but most valves have letters cast into the body to indicate which port is which. P for Pressure (pump inlet), and T for Tank (return) are the normal markings.