Is it just me, or does this whole installation look like something that was meant to be "temporary" sometime around oh,....1978?? I think I'm seeing NM-B coming from the PVC conduit in the first pic also!
Seeing that this is obviously along a street also, I should assume the deadfront is missing from the subpanel? No ground bar, open KO's, missing parts, Romex outdoors, open J boxes...All out in public? Someone's looking to get sued! even arrested depending on what state this is!
Electricman2, the responsible party(ies) are letting you fix this crap, I hope!?!!
PS... Bet $1 that the original UF cable was less than 8 inches underground!