Files
FloatBackOfffice/CRONS/email/email-parsed-fail.mjml
dev-chiefworks f76abffdcd first commit
2022-05-31 16:21:53 -04:00

179 lines
5.1 KiB
XML

<mjml>
<mj-head>
<mj-font name="Open Sans" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,800" />
<mj-attributes>
<mj-all font-family="Open Sans, sans-serif" color="#fff" />
</mj-attributes>
<mj-style>
</mj-style>
</mj-head>
<mj-body width="1000px">
<mj-wrapper padding="0">
<mj-section padding="0" background-color="#6da3cd">
<mj-column width="20%">
<mj-text font-weight="bold" align="center">
Merchant Name
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text font-weight="bold" align="center">
Transport
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text font-weight="bold" align="center">
Total Emails
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text font-weight="bold" align="center">
Success
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text font-weight="bold" align="center">
Fail
</mj-text>
</mj-column>
</mj-section>
<mj-section padding="0" background-color="#5c98c7" border-bottom="1px solid #6da3cd">
<mj-raw>
<?php if ( isset( $data['summary'] ) and ! empty( $data['summary'] ) ): ?>
<?php foreach ( $data['summary'] as $key => $item ): ?>
</mj-raw>
<mj-column width="20%">
<mj-text align="center">
<mj-raw>
<?php echo $item['name']; ?>
</mj-raw>
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text align="center">
<mj-raw>
<?php echo $item['transport']; ?>
</mj-raw>
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text align="center">
<mj-raw>
<?php echo $item['total']; ?>
</mj-raw>
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text align="center">
<mj-raw>
<?php echo $item['success']; ?>
</mj-raw>
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text align="center">
<mj-raw>
<?php echo $item['fail']; ?>
</mj-raw>
</mj-text>
</mj-column>
<mj-raw>
<?php endforeach ?>
<?php endif ?>
</mj-raw>
</mj-section>
</mj-wrapper>
<mj-wrapper padding-top="30px">
<mj-section padding="0" background-color="#6da3cd">
<mj-column width="17%">
<mj-text font-weight="bold" align="center">
Merchant Name
</mj-text>
</mj-column>
<mj-column width="15%">
<mj-text font-weight="bold" align="center">
Email ID
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text font-weight="bold" align="center">
User
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text font-weight="bold" align="center">
Subject
</mj-text>
</mj-column>
<mj-column width="15%">
<mj-text font-weight="bold" align="center">
Send Date
</mj-text>
</mj-column>
<mj-column width="13%">
<mj-text font-weight="bold" align="center">
Reported
</mj-text>
</mj-column>
</mj-section>
<mj-section padding="0" background-color="#5c98c7" border-bottom="1px solid #6da3cd">
<mj-raw>
<?php if ( isset( $data['emails'] ) and ! empty( $data['emails'] ) ): ?>
<?php foreach ( $data['emails'] as $key => $item ): ?>
</mj-raw>
<mj-column width="17%">
<mj-text align="center">
<mj-raw>
<?php echo $item['merchant_name']; ?>
</mj-raw>
</mj-text>
</mj-column>
<mj-column width="15%">
<mj-text align="center">
<mj-raw>
<?php echo $item['trackedemail_item_id']; ?>
</mj-raw>
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text align="center">
<mj-raw>
<?php echo $item['email']; ?> (ID: <?php echo $item['user_id']; ?>)
</mj-raw>
</mj-text>
</mj-column>
<mj-column width="20%">
<mj-text align="center">
<mj-raw>
<?php echo $item['subject']; ?>
</mj-raw>
</mj-text>
</mj-column>
<mj-column width="15%">
<mj-text align="center">
<mj-raw>
<?php echo $item['message_date']; ?>
</mj-raw>
</mj-text>
</mj-column>
<mj-column width="13%">
<mj-text align="center">
<?php echo $item['reported']; ?>
</mj-text>
</mj-column>
<mj-raw>
<?php endforeach ?>
<?php endif ?>
</mj-raw>
</mj-section>
</mj-wrapper>
</mj-body>
</mjml>