<?php
// Define variables passed from the controller
$memberName   	= isset($memberName) ? $memberName : '';
$eventName   	= isset($eventName) ? $eventName : '';
$eventStartDate = isset($eventStartDate) ? $eventStartDate : '';
$amountPaid      = isset($amountPaid) ? $amountPaid : '';
$eventLocation   = isset($eventLocation) ? $eventLocation : '';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="preconnect" href="https://fonts.googleapis.com">
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&family=Montserrat:wght@200;300;400;500;600;700;800&display=swap" rel="stylesheet">
    
    <title>Event Registration Confirmation – <?= $eventName; ?></title>
	<style>
	html,body{font-family: "Montserrat", sans-serif !important;font-size:14px;color:#333 !important;padding-top:2%;background:#dee8f1;}
	.pdetails{border: 0px;width:100%;font-size:13px;}
	.pdetails td{line-height:24px;border-bottom: 1px solid #ede3e3;}
	.container{margin:0 auto; width:70%;min-width:360px;padding:15px;background:#fff;border-top:3px solid #ba2d2d;}
	a{text-decoration: none;}
	.btn{display: inline-block; background:#ba2d2d;color:#fff;font-size:16px;padding:10px;border-radius:10px;border:0px;width:40%;text-align:center;}
	</style>
</head>
<body>
	<div class="container" style="background:#fff;padding: 20px;">
		<div style="margin-bottom:5px;"><a href="https://www.africacoffeebureau.us" target="_blank"><img src="https://africacoffeebureau.us/logo-mobile.png" height="50px"/></a></div>
		<div style="padding: 20px;">
				<h3 style="font-size:16px;font-weight:600">Event Registration Confirmation – <?= $eventName; ?></h3>
				<hr/>
		
				<p>Dear <?= $memberName; ?>, </p>

				<p>Thank you for registering for CoFET-Retreat. </p>

				<p>We are excited to have you join us for the <b><?= $eventName; ?></b>; taking place in <?= $eventLocation; ?>, this <?= $eventStartDate; ?>.</p>
				
                <p>This e-mail confirms that your registration is successfully processed and your payment in amount <b>USD<?= $amountPaid; ?></b> has been received.</p>
				
				<p>Your invitation will come in a separate e-mail.</p>

				<p>&nbsp;</p>

				<p style="color: #555;font-size:12px"> Sincerely,<br/>
					CoFET-Retreat Secretariat<br/>
					Washington, DC.<br/>
					T: (202) 746 6160<br/>
					E: info@africacoffeebureau.us<Br/>
					<small><?= date('jS, M Y H:i:s');?></small>
				</p>
		</div>
	</div>
</div>
</body>
</html>