<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$zoom = \AcademyProMeeting\Helper::render_meeting_for_php_rendering( $course_id, $meeting_id );

?>

<div class='academy-zoom-content__content-bottom'>
	<div class='academy-zoom-content__title'>
		<?php echo esc_html( $zoom['topic'] ); ?>
	</div>
	<div class="academy-zoom-content__description">
		<div class="academy-zoom-details__label">
			<?php echo esc_html__( 'Meeting Description', 'academy-pro' ); ?>
		</div>
		<div class="academy-zoom-details__value">
			<?php echo esc_html( $zoom['description'] ); ?>
		</div>
	</div>
	<div class="academy-zoom-content__meeting-date">
		<div class="academy-zoom-details__label">
			<?php echo esc_html__( 'Meeting Date', 'academy-pro' ); ?>
		</div>
		<div class="academy-zoom-details__value">
			<?php echo esc_html( gmdate( 'd F Y G:i:s A', strtotime( $zoom['start_time'] ) ) ); ?>
		</div>
	</div>
	<div class="academy-zoom-content__meeting-id">
		<div class="academy-zoom-details__label">
			<?php echo esc_html__( 'Meeting ID', 'academy-pro' ); ?>
		</div>
		<div class="academy-zoom-details__value">
			<?php echo esc_html( $zoom['id'] ); ?>
		</div>
	</div>
	<div class="academy-zoom-content__password">
		<div class="academy-zoom-details__label">
			<?php echo esc_html__( 'Password', 'academy-pro' ); ?>
		</div>
		<div class="academy-zoom-details__value">
			<?php echo esc_html( $zoom['password'] ); ?>
		</div>
	</div>
	<div class="academy-zoom-content__host-email">
		<div class="academy-zoom-details__label">
			<?php echo esc_html__( 'Host Email', 'academy-pro' ); ?>
		</div>
		<div class="academy-zoom-details__label">
			<?php echo esc_html( $zoom['host_email'] ); ?>
		</div>
	</div>
</div>
