circuit diagram is on the left.
A resistor network allows eight switches to be
connected to the input side. A LED is connected to the 5V line to
indicate power on. Because the GPIO 18 line can also be used for pulse
width modulation, it is brought out separately. A link will connect it
to the Darlington driver instead of GPIO25, should this be required.
suggested PCB layout is below.