127 lines
8.5 KiB
PHP
127 lines
8.5 KiB
PHP
|
|
|
|
<!doctype html>
|
|
<html lang="en-US">
|
|
|
|
<head>
|
|
|
|
|
|
<body marginheight="0" topmargin="0" marginwidth="0" style="margin: 0px; background-color: #f2f3f8;" leftmargin="0">
|
|
<table cellspacing="0" border="0" cellpadding="0" width="100%" bgcolor="#f2f3f8"
|
|
style="@import url(https://fonts.googleapis.com/css?family=Rubik:300,400,500,700|Open+Sans:300,400,600,700); font-family: 'Open Sans', sans-serif;">
|
|
<tr>
|
|
<td>
|
|
<table style="background-color: #f2f3f8; max-width:670px; margin:0 auto;" width="100%" border="0"
|
|
align="center" cellpadding="0" cellspacing="0">
|
|
|
|
<!-- Email Content -->
|
|
<tr>
|
|
<td>
|
|
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"
|
|
style="max-width:670px; background:#fff; border-radius:3px;-webkit-box-shadow:0 6px 18px 0 rgba(0,0,0,.06);-moz-box-shadow:0 6px 18px 0 rgba(0,0,0,.06);box-shadow:0 6px 18px 0 rgba(0,0,0,.06);padding:0 40px;">
|
|
<tr>
|
|
<td style="height:40px;"> </td>
|
|
</tr>
|
|
<!-- Title -->
|
|
<tr>
|
|
<td style="padding:0 15px; text-align:center;">
|
|
<h1 style="color: #47c347; font-weight:400; margin:0;font-size:32px;font-family:'Rubik',sans-serif;"> Payment Successful!</h1>
|
|
<span style="display:inline-block; vertical-align:middle; margin:29px 0 26px; border-bottom:1px solid #cecece;
|
|
width:100px;"></span>
|
|
</td>
|
|
</tr>
|
|
<!-- Details Table -->
|
|
<tr>
|
|
<td>
|
|
<table cellpadding="0" cellspacing="0" style="width: 100%; border: 2px solid #ededed">
|
|
<tbody>
|
|
<tr>
|
|
<td
|
|
style="padding: 10px; border-bottom: 1px solid #ededed; border-right: 1px solid #ededed; width: 40%; font-weight:500; color:rgba(0,0,0,.64)">
|
|
Order Id :</td>
|
|
<td
|
|
style="padding: 10px; border-bottom: 1px solid #ededed; color: #455056;">
|
|
<?= $order_id; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td
|
|
style="padding: 10px; border-bottom: 1px solid #ededed; border-right: 1px solid #ededed; width: 40%; font-weight:500; color:rgba(0,0,0,.64)">
|
|
Transaction Date :</td>
|
|
<td
|
|
style="padding: 10px; border-bottom: 1px solid #ededed; color: #455056;">
|
|
<?= $formattedDate; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td
|
|
style="padding: 10px; border-bottom: 1px solid #ededed; border-right: 1px solid #ededed; width: 40%; font-weight:500; color:rgba(0,0,0,.64)">
|
|
Payment Method :</td>
|
|
<td
|
|
style="padding: 10px; border-bottom: 1px solid #ededed; color: #455056;">
|
|
<?= $card_brand; ?> card ending with <?= $last_4; ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td
|
|
style="padding: 10px; border-bottom: 1px solid #ededed; border-right: 1px solid #ededed; width: 40%; font-weight:500; color:rgba(0,0,0,.64)">
|
|
Member Name :</td>
|
|
<td
|
|
style="padding: 10px; border-bottom: 1px solid #ededed; color: #455056;">
|
|
<p><?= $profile[0]['name']." ".$profile[0]['last_name'] ?> </p>
|
|
<p>
|
|
<?php
|
|
if($profile[0]['mobile'] != ''){ echo $profile[0]['mobile']; }
|
|
?>
|
|
</p>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</br> <span style="padding: 10px;">Your Order</span> </br>
|
|
<table cellpadding="0" cellspacing="0"
|
|
style="width: 100%; border: 2px solid #ededed">
|
|
<tbody>
|
|
<?php foreach ($memberCredits as $val) { ?>
|
|
<tr>
|
|
<td style="padding: 10px; border-bottom: 1px solid #ededed;">
|
|
<?php $cost = number_format($val['cost'], 2, '.', ''); ?>
|
|
<div class="product-name"><?php echo $val['package_name']." ($".$cost." x ".$val['pack_count'].")"; ?></div>
|
|
<div class="credits-number"><?php echo $val['credit_points']; ?> Credits</div>
|
|
</td>
|
|
<td style=" border-bottom: 1px solid #ededed;"><span class="price-symbol">$</span><?php $number = $val['costSum']; echo number_format($number, 2, '.', ''); ?></td>
|
|
</tr>
|
|
<?php } ?>
|
|
<tr>
|
|
<td style="padding: 10px;">GST :</td>
|
|
<td> <span class="price-symbol">$</span><?php $number = $Subtotal * $gst / 100; echo number_format($number, 2, '.', ''); ?></td>
|
|
</tr>
|
|
<?php if ($pst != 0) { ?>
|
|
|
|
<tr>
|
|
<td style="padding: 10px;">PST :</td>
|
|
<td> <span class="price-symbol">$</span><?= round($Subtotal * $pst / 100 , 2); ?></td>
|
|
</tr>
|
|
<?php } ?>
|
|
|
|
<tr>
|
|
<td style="padding: 10px;">Total</td>
|
|
<td class="action_head"> <span class="price-symbol ">$</span><?php $number = ( $Subtotal + (($Subtotal * ($gst + $pst) ) / 100) ); echo number_format($number, 2, '.', ''); ?></td>
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="height:40px;"> </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="height:20px;"> </td>
|
|
</tr>
|
|
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
|
|
</html>
|