progress, but the same issue, stuck on a foreach

tomorrow night will have to work on it morea