Hi @Phil Futureproof
Sorry, but this forum is a free support service for issues and bugs, not to receive free theme development.
As a tip, the function get_sub_field
will NOT WORK in the context that you have coded. That function only works within a has_sub_field loop, not a foreach loop.
Please read the docs
Thanks
E