Ingram duel battery system & some unpluged wires
Looks to me you have several items needing attention from the photos (which only tell part of the story). A word of caution, disconnect ALL your batteries before working on this and only if you feel competent to do so.
Firstly I can't see from the photo if the solenoid shown is fixed down or just floating about. If not, it needs fixing down with plenty of space between the terminals and any metalwork/bodywork.
Secondly, there seems to be a big cable missing from the large bolt terminal on the solenoid. This should be fairly obvious to find and reconnect after tracing where it goes, making sure it hasn't come to any harm, got damaged insulation etc.
Thirdly, the black link wire with yellow terminals at the ends looks poorly crimped into the yellow terminals. This is untidy at best and may be a poor connection at worst. It needs replacing withs properly made link with correctly fitting and crimped terminals.
If any of this is beyond what you are happy with, seek the help of someone like an auto electrician or at least someone who knows safe electrical practice. Apologies but this HAS to be done safely and being new here I don't know your capabilities.
Lastly, this may not be the whole picture here.
Good luck with it but above all ensure safety.
Regards
Richard