Is there a method to show only courses the user is not enrolled on?

HI,

I want to find a method to display only the courses the user is not enrolled on (or has already completed).

For example - viewing /courses/ shows all available courses with a "Details" button.

It does not reflect whether the user is already taking this course or has already completed it.

/courses-dashboard/ shows the courses the user is enrolled in and active in.

I would like to be able to use a shortcode to display a page with all the courses still to be taken by the current user.

Alternatively I would like the status of the course on the main /courses/ page to reflect whether the user is already taking this course without having to click on the "Details" course link button.

Many thanks
Chris