Let me know if you can make sense of it - it looks like a bit of a cluster.
The controller is upside down in the image, so pin 1 is on the right and 8 is on the right.
Also, the neutral and ground are not in the same nut, even though it looks like they are in the picture.