<?php
/**
 * HTML View for displaying courses user enrolled in wp profile.
 *
 * @author  ThimPress
 * @package LearnPress/Views
 * @version 4.0.2
 */

defined( 'ABSPATH' ) || die;

if ( ! isset( $user_id ) ) {
	return;
}

$profile              = LP_Profile::instance( $user_id );
$user                 = $profile->get_user();
$slug_profile_courses = LP_Settings::instance()->get( 'profile_endpoints.my-courses', 'my-courses' );
$link_user_profile    = $profile->get_tab_link( $slug_profile_courses );
?>
<p>
	<b><?php _e( 'The course list of enrolled users', 'learnpress' ); ?></b>
	<a href="<?php echo esc_url_raw( $link_user_profile ); ?>" target="_blank"><?php _e( 'View', 'learnpress' ); ?></a>
</p>
