<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
?>
<div class="academy-widget-enroll__prerequisites">
	<p class="academy-prerequisites-message"><?php esc_html_e( 'NOTE: You must complete the following courses before you can enroll in this course.', 'academy-pro' ); ?></p>
	<ul class="academy-prerequisites-lists">
		<?php
		foreach ( $required_courses as $course_id ) :
			?>
		<li><a href="<?php echo esc_url( get_permalink( $course_id ) ); ?>"><?php echo esc_html( get_the_title( $course_id ) ); ?></a></li>
			<?php
			endforeach;
		?>
	</ul>
</div>
