<?php
defined( 'ABSPATH' ) || exit;

$business_details = '<u style="text-decoration: underline;"><a rel="noreferrer noopener" style="text-decoration-line: none; background-color: rgba(0, 0, 0, 0); color: #236fa1;" href="' . esc_url( get_home_url() ) . '" target="_blank">' . wp_strip_all_tags( $business_name ) . '</a></u>'; //phpcs:ignore WordPress.Security.EscapeOutput
$settings_text    = '<u style="text-decoration: underline;"><a rel="noreferrer noopener" style="text-decoration-line: none; background-color: rgba(0, 0, 0, 0); color: #236fa1;" href="' . esc_url( admin_url( 'admin.php?page=autonami&path=/settings/notifications' ) ) . '"  target="_blank">' . esc_html( __( 'Click here', 'wp-marketing-automations' ) ) . '</a></u>';
?>
<table cellpadding="0" cellspacing="0" border="0" bgcolor="" align="center" role="presentation"
       class="bwfbe-block-section-container bwfbe-block-section bwfbe-block-834352e"
       style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0px; width: 640px;"
       width="640">
    <tbody>
    <tr style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0px;">
        <td style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0px; background-color: #ffffff;"
            bgcolor="#ffffff">
            <!--[if mso | IE]>
            <table cellpadding="0" cellspacing="0" border="0" align="center" style="width:100%" role="presentation" width="640">
                <tr>
                    <td style="line-height:0;font-size:0;-mso-line-height-rule:exactly"><![endif]-->
            <div class="bwfbe-block-section-outer-container"
                 style="margin: 0 auto; width: 640px; background-color: #ffffff;">
                <table cellpadding="0" cellspacing="0" border="0" align="center"
                       style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0px; line-height: normal; background-color: #ffffff; width: 100%; border-collapse: separate;"
                       role="presentation" width="100%" class="bwfbe-block-section-inner-container" bgcolor="#ffffff">
                    <tbody>
                    <tr
                        style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0px;">
                        <td
                            style="mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0px; font-size: 0px; border-collapse: separate; padding: 12px 16px 16px; mso-padding-alt: 12px 16px 16px;">
                            <!--[if mso | IE]>
                            <table cellpadding="0" cellspacing="0" border="0" style="width:100%;border-collapse:separate" role="presentation">
                                <tbody>
                                <tr><![endif]--><!--[if mso | IE]>
                            <td style="width: 608px;vertical-align: top;" valign="top"><![endif]-->
                            <div class="bwf-email-inner-column-wrapper bwf-email-inner-column-wrapper-0cf05ad"
                                 style="font-size: 0px; border-collapse: separate; display: table-cell; vertical-align: top; mso-border-alt: none; width: 608px;">
                                <table cellpadding="0" cellspacing="0" border="0"
                                       style="border-spacing: 0px; border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;"
                                       role="presentation"
                                       class="bwf-email-inner-column bwf-email-inner-column-0cf05ad" width="100%">
                                    <tbody>
                                    <tr
                                        style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0px;">
                                        <td class="bwf-email-space-divider bwf-email-space-divider-de9d012"
                                            align="center"
                                            style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0px; padding: 16px 0px 16px 0px; mso-padding-alt: 16px 0px 16px 0px; font-size: 0px; word-break: break-word; word-break: break-word;">
                                            <p class="bwf-email-space-divider-container"
                                               style="margin: 0; width: 100%; margin-top: auto; margin-bottom: auto; max-width: 100%; border-top-width: 1px; border-top-style: solid; border-top-color: #BBBBBB; margin-left: auto; margin-right: auto;">
                                            </p>
                                            <!--[if mso | IE]>
                                            <table cellpadding="0" cellspacing="0" border="0" style="width:100%" role="presentation" width="100%">
                                                <tr>
                                                    <td style="height:0;line-height:0;margin:auto;border-top-width:1px;;border-top-style:solid;border-top-color:#BBBBBB"></td>
                                                </tr>
                                            </table><![endif]-->
                                        </td>
                                    </tr>

                                    <tr
                                        style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0px;">
                                        <td class="bwf-email-text bwf-email-text-90e004c"
                                            style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0px; padding: 0px 0px 8px 0px; word-break: break-word;">
                                            <div class="bwf-block-text-container"
                                                 style="text-align: center; font-size: 14px; font-family: arial,helvetica,sans-serif; line-height: 1.3; color: #ff6900;">
                                                <p class="bwf-block-text-inner-container"
                                                   style="margin: 0; mso-line-height-alt: 130%; word-break: break-word; font-size: 14px; font-family: arial,helvetica,sans-serif; line-height: 1.3;">
																						<span
                                                                                            style="mso-line-height-alt: 130%; background-color: rgba(0, 0, 0, 0); color: #000000;"
                                                                                            class="has-inline-color">
																							<span
                                                                                                style="mso-line-height-alt: 130%; font-size: 12px;"
                                                                                                class="has-font-size">
                                                                                                <?php echo sprintf( __( 'This performance report email was sent from your site %1$s for period %2$s.', 'wp-marketing-automations' ), $business_details, $date ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, WordPress.WP.I18n.MissingTranslatorsComment ?>
																							</span>
																						</span>
                                                    <br/>
                                                    <span
                                                        style="mso-line-height-alt: 130%; background-color: rgba(0, 0, 0, 0); color: #000000;"
                                                        class="has-inline-color">
																							<span
                                                                                                style="mso-line-height-alt: 130%; font-size: 12px;"
                                                                                                class="has-font-size"><?php echo sprintf( __( '%s to manage the frequency and recipients.', 'wp-marketing-automations' ), $settings_text ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped, WordPress.WP.I18n.MissingTranslatorsComment	 ?>
																							</span>
																						</span>
                                                </p>
                                            </div>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <!--[if mso | IE]></td><![endif]--><!--[if mso | IE]></tr></tbody></table><![endif]-->
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <!--[if mso | IE]></td></tr></table><![endif]-->
        </td>
    </tr>
    </tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>

</html>
