<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
?>
<section class="wposes-licence-info support support-section">
	<h3 class="wposes-section-heading"><?php esc_html_e( 'Email Support', 'wp-offload-ses' ); ?></h3>

	<?php /* Must use "support-content" class as required by markup in API response. */ ?>
	<div class="support-content">
		<?php if ( ! empty( $licence ) ) : ?>
			<p>
				<?php esc_html_e( 'Fetching support form for your license, please wait...', 'wp-offload-ses' ); ?>
				<span data-wposes-licence-spinner class="spinner"></span>
			</p>
		<?php else : ?>
			<p>
				<?php esc_html_e( 'We couldn\'t find your license information.', 'wp-offload-ses' ); ?>
				<a href="#licence">
					<?php esc_html_e( 'Please enter a valid license key.', 'wp-offload-ses' ); ?>
				</a>
			</p>
			<p><?php esc_html_e( 'Once entered, you can view your support details.', 'wp-offload-ses' ); ?></p>
		<?php endif; ?>
	</div>
</section>