<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
  <title>
  </title>
  <!--[if !mso]><!-->
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <!--<![endif]-->
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style type="text/css">
	#outlook a {
	  padding: 0;
	}

	body {
	  margin: 0;
	  padding: 0;
	  -webkit-text-size-adjust: 100%;
	  -ms-text-size-adjust: 100%;
	}

	table,
	td {
	  border-collapse: collapse;
	  mso-table-lspace: 0pt;
	  mso-table-rspace: 0pt;
	}

	img {
	  border: 0;
	  height: auto;
	  line-height: 100%;
	  outline: none;
	  text-decoration: none;
	  -ms-interpolation-mode: bicubic;
	}

	p {
	  display: block;
	  margin: 13px 0;
	}

  </style>
  <!--[if mso]>
	<noscript>
	<xml>
	<o:OfficeDocumentSettings>
	  <o:AllowPNG/>
	  <o:PixelsPerInch>96</o:PixelsPerInch>
	</o:OfficeDocumentSettings>
	</xml>
	</noscript>
	<![endif]-->
  <!--[if lte mso 11]>
	<style type="text/css">
	  .mj-outlook-group-fix { width:100% !important; }
	</style>
	<![endif]-->
  <style type="text/css">
	@media only screen and (min-width:480px) {
	  .mj-column-per-100 {
		width: 100% !important;
		max-width: 100%;
	  }
	}

  </style>
  <style media="screen and (min-width:480px)">
	.moz-text-html .mj-column-per-100 {
	  width: 100% !important;
	  max-width: 100%;
	}

  </style>
  <style type="text/css">
	@media only screen and (max-width:480px) {
	  table.mj-full-width-mobile {
		width: 100% !important;
	  }

	  td.mj-full-width-mobile {
		width: auto !important;
	  }
	}

  </style>
  <style type="text/css">
  </style>
</head>

<body style="word-spacing:normal;background-color:#F6F7F8;">
  <div style="display:none;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;"> <?php echo esc_html( $preview_title ); ?> </div>
  <div style="background-color:#F6F7F8;">
	<!-- Header Start -->
	<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
	<div style="margin:0px auto;max-width:600px;">
	  <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
		<tbody>
		  <tr>
			<td style="direction:ltr;font-size:0px;padding:20px 0;padding-bottom:30px;padding-top:50px;text-align:center;">
			  <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
			  <div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
				<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
				  <tbody> 
				  <?php
					if ( ! empty( $header_image ) ) :
						?>
						 <?php
							if ( ! empty( $header_image['2x'] ) ) :
								?>
						 <tr>
					  <td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
						<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
						  <tbody>
							<tr>
							  <td style="width:180px;">
								<a href="<?php echo esc_url( get_site_url() ); ?>" target="_blank">
								  <img alt="<?php echo esc_attr__( 'UserFeedback Summary', 'userfeedback' ); ?>" height="auto" src="<?php echo esc_url( $header_image['url'] ); ?>" srcset="<?php echo esc_url( $header_image['2x'] ) . ' 2x'; ?>" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="180">
								</a>
							  </td>
							</tr>
						  </tbody>
						</table>
					  </td>
					</tr> 
								<?php
					else :
						?>
								 <tr>
					  <td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
						<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
						  <tbody>
							<tr>
							  <td style="width:180px;">
								<a href="<?php echo esc_url( get_site_url() ); ?>" target="_blank">
								  <img alt="<?php echo esc_attr__( 'UserFeedback Summary', 'userfeedback' ); ?>" height="auto" src="<?php echo esc_url( $header_image['url'] ); ?>" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="180">
								</a>
							  </td>
							</tr>
						  </tbody>
						</table>
					  </td>
					</tr> <?php endif; ?> <?php endif; ?> </tbody>
				</table>
			  </div>
			  <!--[if mso | IE]></td></tr></table><![endif]-->
			</td>
		  </tr>
		</tbody>
	  </table>
	</div>
	<!--[if mso | IE]></td></tr></table><![endif]-->
	<!-- Header End --><!-- Body Start -->
	<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="main-card-outlook" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
	<div class="main-card" style="margin:0px auto;max-width:600px;">
	  <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
		<tbody>
		  <tr>
			<td style="direction:ltr;font-size:0px;padding:20px;text-align:center;">
			  <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:560px;" ><![endif]-->
			  <div class="mj-column-per-100 mj-outlook-group-fix" style="background-color: #fff; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%; color: #676767; font-size: 14px;">
				<table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
				  <tbody>
					<tr>
					  <td style="vertical-align:top;padding:40px;">
						<table border="0" cellpadding="0" cellspacing="0" role="presentation" style width="100%">
						  <tbody>
							<tr>
							  <td align="left" class="title" style="font-weight: bold; margin: 0; font-size: 0px; padding: 10px 25px; padding-right: 0; padding-left: 0; word-break: break-word; color: #4e4e4e; padding-bottom: 0;">
								<div style="background-color: #fff; font-weight: bold; margin: 0; font-family: Helvetica,Arial,sans-serif; line-height: 1; text-align: left; font-size: 14px; color: #4e4e4e; padding-bottom: 0;"><?php echo esc_html( $title ); ?></div>
							  </td>
							</tr>
							<tr>
							  <td align="left" style="font-size:0px;padding:10px 25px;padding-right:0;padding-bottom:0;padding-left:0;word-break:break-word;">
								<div style="background-color: #fff; font-family: Helvetica,Arial,sans-serif; line-height: 20px; text-align: left; color: #676767; font-size: 14px;"><?php echo esc_html( $description ); ?></div>
							  </td>
							</tr>
							<tr>
							  <td align="left" class="summary-table" style="font-size:0px;padding:10px 25px;padding-top:40px;padding-right:0;padding-left:0;word-break:break-word;">
								<table cellpadding="0" cellspacing="0" width="100%" border="0" style="color:#000000;font-family:Helvetica,Arial,sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;border:none;">
								  <tr style="border-bottom: 1px solid #efefef; text-align: left;" align="left">
									<th class="title" style="font-weight: bold; margin: 0; color: #4e4e4e; padding-bottom: 16px; font-size: 14px;"><?php echo esc_html__( 'Forms', 'userfeedback' ); ?></th>
									<th class="title" style="font-weight: bold; margin: 0; color: #4e4e4e; padding-bottom: 16px; font-size: 14px;"><?php echo esc_html__( 'Responses', 'userfeedback' ); ?></th>
								  </tr> 
								  <?php
									foreach ( $summaries as $survey ) :
										?>
										 <tr>
									<td style="color: #676767; font-size: 14px; padding-top: 16px; padding-bottom: 16px;"><?php echo esc_html( $survey['name'] ); ?></td>
									<td style="color: #4E4E4E; font-weight: bold; font-size: 14px; padding-top: 16px; padding-bottom: 16px;"><?php echo esc_html( $survey['responses'] ); ?></td>
								  </tr> <?php endforeach; ?>
								</table>
							  </td>
							</tr>
						  </tbody>
						</table>
					  </td>
					</tr>
				  </tbody>
				</table>
			  </div>
			  <!--[if mso | IE]></td></tr></table><![endif]-->
			</td>
		  </tr>
		</tbody>
	  </table>
	</div>
	<!--[if mso | IE]></td></tr></table><![endif]-->
	<!-- Body End --><!-- Footer Start -->
	<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="footer-from-outlook" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
	<div class="footer-from" style="margin:0px auto;max-width:600px;">
	  <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
		<tbody>
		  <tr>
			<td style="direction:ltr;font-size:0px;padding:0px 40px 0;text-align:center;">
			  <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:520px;" ><![endif]-->
			  <div class="mj-column-per-100 mj-outlook-group-fix" style="font-size: 0px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%; color: #989898;">
				<table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
				  <tbody>
					<tr>
					  <td style="vertical-align:top;padding:0;">
						<table border="0" cellpadding="0" cellspacing="0" role="presentation" style width="100%">
						  <tbody>
							<tr>
							  <td align="center" style="font-size:0px;padding:0;padding-right:0;padding-bottom:0;padding-left:0;word-break:break-word;">
								<div style="font-family: Helvetica,Arial,sans-serif; font-size: 13px; line-height: 1; text-align: center; color: #989898;"><?php echo esc_html__( 'Sent from ', 'userfeedback' ); ?> <a style="color: #989898" target="_blank" href="<?php echo esc_url( get_site_url() ); ?>"><?php echo esc_url( get_site_url() ); ?></a></div>
							  </td>
							</tr>
						  </tbody>
						</table>
					  </td>
					</tr>
				  </tbody>
				</table>
			  </div>
			  <!--[if mso | IE]></td></tr></table><![endif]-->
			</td>
		  </tr>
		</tbody>
	  </table>
	</div>
	<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="footer-content-outlook" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
	<div class="footer-content" style="margin:0px auto;max-width:600px;">
	  <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
		<tbody>
		  <tr>
			<td style="direction:ltr;font-size:0px;padding:0px 40px 24px;text-align:center;">
			  <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:520px;" ><![endif]-->
			  <div class="mj-column-per-100 mj-outlook-group-fix" style="font-size: 0px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%; color: #989898;">
				<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
				  <tbody>
					<tr>
					  <td align="center" style="font-size:0px;padding:10px 25px;padding-right:0;padding-bottom:0;padding-left:0;word-break:break-word;">
						<div style="font-family: Helvetica,Arial,sans-serif; font-size: 13px; line-height: 1; text-align: center; color: #989898;"><a target="_blank" href="<?php echo esc_url( $settings_tab_url ); ?>" style="font-size: 12px; line-height: 24px; color: #2D87F1;">Want to change these notifications?</a>.</div>
					  </td>
					</tr>
				  </tbody>
				</table>
			  </div>
			  <!--[if mso | IE]></td></tr></table><![endif]-->
			</td>
		  </tr>
		</tbody>
	  </table>
	</div>
	<!--[if mso | IE]></td></tr></table><![endif]-->
	<!-- Footer End -->
  </div>
</body>

</html>
