That photo tells us nothing
At a minimum we need the colours of the wires that are inside the black cover and better still the colours of the wires that were chewed through .
It is very rare for headlight wires to go under the floor
Usually they run along the top of the floor
Under the floor is the PTO wires, the brake switch wires , the seat switch wires & the reverse switch wires