<?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Provide a admin area view for the plugin
 *
 * This file is used to markup the admin-facing aspects of the plugin.
 *
 * @link       https://webequipe.com
 * @since      1.0.0
 *
 * @package    Webequipe_Spin_Win_Wheel
 * @subpackage Webequipe_Spin_Win_Wheel/admin/partials
 */

// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>

<!-- This file should primarily consist of HTML with a little bit of PHP. -->


<html>
    <head>
	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	</head>
	<body>
		<?php
		if ( ! empty( $admin_body ) ) {
			// If this body may contain limited safe HTML, use wp_kses_post(); otherwise use esc_html()
			echo wp_kses_post( nl2br( stripslashes( $admin_email_body ) ) );
		} else {
			?>
			<table style="font-family: Verdana,sans-serif; font-size: 16px; color: #374953; width: 600px;">
				<tr><td>&nbsp;</td></tr>
				<tr><td align="left">Dear Admin</td></tr>
				<tr>
					<td align="left">
						<?php echo esc_html( $user_to ); ?> just got: 
						<strong><?php echo esc_html( $spin_label ); ?></strong>
					</td>
				</tr>
				<tr><td>&nbsp;</td></tr>
				<tr>
					<td>
						<?php
						if ( ! empty( $admin_body ) ) {
							echo wp_kses_post( $admin_body );
						} else {
							echo esc_html__( 'This email is a confirmation that we received a form submission from Spin to Win.', 'webequipe-spin-win-wheel' );
						}
						?>
					</td>
				</tr>
				<tr><td>&nbsp;</td></tr>
				<tr>
					<td align="center" style="font-size: 10px; border-top: 1px solid #c10000;">
						<p><i><?php esc_html_e( 'Thank you!', 'webequipe-spin-win-wheel' ); ?></i><br />
						<b></b><br /><?php echo esc_url( get_bloginfo( 'url' ) ); ?></p>
					</td>
				</tr>
			</table>
		<?php } ?>
	</body>
</html>
