/
var
/
www
/
vhosts
/
nabawater
/
frontend
/
views
/
payment
/
/var/www/vhosts/nabawater/frontend/views/payment
mkdir
upload
Name
Size
Mode
Actions
card_details.php
4710
0644
edit
dl
rm
index.php
1308
0644
edit
dl
rm
mail.php
15501
0644
edit
dl
rm
response.php
88
0644
edit
dl
rm
view.php
378
0644
edit
dl
rm
Edit:
/var/www/vhosts/nabawater/frontend/views/payment/mail.php
(15501B)
<?php use yii\helpers\Html; use common\models\Configuration; use common\helpers\Com; use common\models\Order; /* @var $this \yii\web\View view component instance */ /* @var $message \yii\mail\MessageInterface the message being composed */ /* @var $content string main view render result */ $appName = Configuration::get(Configuration::APP_NAME); $appSupportEmail = Configuration::get(Configuration::APP_EMAIL); $appSocialMedia = [ [ 'key' => Configuration::FACEBOOK_URL, 'icon' => '' ], [ 'key' => Configuration::TWITTER_URL, 'icon' => '' ], [ 'key' => Configuration::YOUTUBE_URL, 'icon' => '' ], [ 'key' => Configuration::INSTAGRAM_URL, 'icon' => '' ] ]; $payment_option_text = Order::getPaymentOptionLabel($model['payment_option']); $uploadHelper = \common\helpers\UploadHelper::getInstance(); ?> <html> <head> <title><?= Html::encode($this->title) ?></title> <style> b { font-weight: 600 } </style> <?php $this->head() ?> </head> <body style="background:#fff"> <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" style="padding:25px 15px; font-family: arial; font-size:13px; color:#333; line-height:20px;"> <tbody> <tr> <td width="100%" valign="top"> <table cellpadding="0" cellspacing="0" border="0" align="center" style="max-width:600px; margin:0 auto; width: 100%;"> <tbody> <tr> <td align="center" style="padding-bottom:10px"> <?= Html::a( Html::img( $uploadHelper->get( Configuration::get(Configuration::APP_LOGO_PATH), true ), ['width' => 90, 'style' => 'border-radius:4px'] ) ) ?> </td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" style="border-top-left-radius:8px; border-top-right-radius:8px"> <tbody> <tr> <td valign="middle" style="background-color:#03a9f4; color:#fff; padding:15px 20px; border-top-left-radius:8px; border-top-right-radius:8px"> <h1 style="margin:0px; line-height:normal; font-weight:normal; font-size:20px"> <?= $this->title ?> </h1> </td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" style="background-color:#ffffff; border-left: 1px solid #c1c2c7; border-right: 1px solid #c1c2c7;"> <tbody> <tr> <td style="padding:20px 20px 15px 20px;"> <p>Dear <b><?=$model['customer']['first_name']?></b>, </p> <p>Thank you for placing order at <b style="color:#000"><?= $appName ?></b>. </p> <p>Exciting to have you here. Your order has been successfully placed and please allow us sometime to confirm your order. </p> <table cellpadding="0" cellspacing="0" width="100%" border="0" style="background-color:#fff; margin-bottom:20px; border: 1px solid #d3d4d8;"> <tbody> <tr> <td colspan="3" style="padding:15px 15px 0px 15px; text-align:left; color:#03a9f4; font-size:14px; font-weight:600; text-transform:uppercase"> Order Information: </td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" width="100%" border="0"> <tbody> <tr> <td style="padding:15px; text-align:left;"> <p style="text-transform:uppercase; color:#7d7d7d; font-size:12px">Order ID</p> <b style="font-size:15px; font-weight:bold"><?=$model['order_number'] ?></b> </td> <td style="padding:15px 0px; text-align:right"> <p style="text-transform:uppercase; color:#7d7d7d; font-size:12px">Date Added</p> <b style="font-size:15px; font-weight:bold"><?=$model['order_date_time'] ?></b> </td> <td style="padding:15px; text-align:right"> <p style="text-transform:uppercase; color:#7d7d7d; font-size:12px">Payment Method</p> <b style="font-size:15px; font-weight:bold"> <?= $payment_option_text ?> </b> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <table cellpadding="0" cellspacing="0" width="100%" border="0" style="margin-bottom:0px; border-top: 1px solid #d3d4d8;"> <tbody> <tr> <td style="padding:10px 15px 10px 15px; text-align:left; color:#03a9f4; font-size:14px; font-weight:600; text-transform:uppercase; background-color:#fff; border-left: 1px solid #d3d4d8; border-right: 1px solid #d3d4d8;"> Order Detail: </td> </tr> </tbody> </table> <table cellpadding="0" cellspacing="0" width="100%" border="0" > <tbody> <tr style="background:#e1e2e4; text-transform:uppercase; font-size:12px; font-weight:bold"> <td style="padding:10px 15px; text-align:left;">Product</td> <td style="padding:10px 0px; text-align:center;">Qty</td> <td style="padding:10px 15px; text-align:right">Price</td> </tr> <?php foreach ($model['items'] as $Key=>$item) { ?> <tr style="background:#fff;"> <td style="padding:12px 15px; border-bottom:1px solid #e1e2e4; border-left:1px solid #d3d4d8;"> <p style="margin:0; font-weight:bold">Product Name</p> <p style="margin:0px; color:#666; font-size:12px"> <span style="margin:5px 5px 0px 0px"><?=$item['item_name']?>-<b style="color:#333;"><?=Com::moneyFormat($item['item_price'],'') ?></b></span> </p> </td> <td width="50" style="padding:12px 0px; text-align:center; border-bottom:1px solid #e1e2e4; vertical-align:top; font-weight:bold"> <?=$item['quantity'] ?> </td> <td width="100" style="padding:12px 15px; text-align:right; border-bottom:1px solid #e1e2e4; border-right:1px solid #d3d4d8; vertical-align:top; font-weight:bold"><?= Com::moneyFormat($item['item_price'] *$item['quantity'], '') ?></td> </tr> <?php } ?> <tr style="text-align:right; font-weight:500; text-transform:uppercase;"> <td style="border-right:1px solid #d3d4d8; text-align: left;" rowspan="3"> <div style="margin-top:10px; margin-bottom:10px; width:100%">Scan QR Code</div> <div> <?= Html::img( $uploadHelper->get($qr_path,true), [ 'style' => 'width: 150px; height: 150px; border: 1px solid #ddd;'] ) ?> </div> </td> <td width="150" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; background:#e6e7ea; font-size:12px">Item Total:</td> <td width="150" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; border-right:1px solid #d3d4d8; background:#e6e7ea; font-weight:bold"> <?= Com::moneyFormat($model['item_total'],'') ?></td> </tr> <tr style="text-align:right; font-weight:500; text-transform:uppercase;"> <td width="150" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; background:#e6e7ea; font-size:12px">VAT:</td> <td width="150" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; border-right:1px solid #d3d4d8; background:#e6e7ea; font-weight:bold"><?= Com::moneyFormat(round($model['vat_cgst'], 2), '') ?></td> </tr> <!-- <tr style="text-align:right; font-weight:500; text-transform:uppercase;"> <td style="border-right:1px solid #d3d4d8;"></td> <td width="80" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; background:#e6e7ea; font-size:12px">Service Tax:</td> <td width="80" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; border-right:1px solid #d3d4d8; background:#e6e7ea; font-weight:bold">?= Com::moneyFormat(round($service_tax, 2), '') ?></td> </tr>--> <?php if($model['coupon_offer_value'] > 0){ ?> <tr style="text-align:right; font-weight:500; text-transform:uppercase;"> <td width="150" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; background:#e6e7ea; font-size:12px">Coupon:</td> <td width="150" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; border-right:1px solid #d3d4d8; background:#e6e7ea; font-weight:bold"><?=Com::moneyFormat(round($model['coupon_offer_value'], 2), '') ?></td> </tr> <?php } ?> <tr style="text-align:right; font-weight:500; text-transform:uppercase;"> <td width="150" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; background:#e6e7ea; font-size:12px">Delivery Fee:</td> <td width="150" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; border-right:1px solid #d3d4d8; background:#e6e7ea; font-weight:bold"><?= Com::moneyFormat($model['delivery_fee'],'') ?></td> </tr> <?php if($model['delivery_fee'] > 0){ ?> <tr style="text-align:right; font-weight:500; text-transform:uppercase;"> <td style="border-right:1px solid #d3d4d8;"></td> <td width="150" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; background:#e6e7ea; font-size:12px">Delivery Tip:</td> <td width="150" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; border-right:1px solid #d3d4d8; background:#e6e7ea; font-weight:bold"><?= Com::moneyFormat($model['delivery_fee'],'') ?></td> </tr> <?php } ?> <?php /* <tr style="text-align:right; font-weight:500; text-transform:uppercase;"> <td style="border-right:1px solid #d3d4d8;"></td> <td width="80" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; background:#e6e7ea; font-size:12px">Packaging Fee:</td> <td width="80" style="padding:8px 15px; border-bottom:1px solid #d3d4d8; border-right:1px solid #d3d4d8; background:#e6e7ea; font-weight:bold"><?= Com::moneyFormat($packagingFee,'') ?></td> </tr> */ ?> <tr style="text-align:right; font-weight:500; color:#fff; text-transform:uppercase; font-size:13px"> <td style="border-right:1px solid #d3d4d8;"></td> <td width="150" style="padding:12px 15px; background:#f5af19">Total</td> <td width="150" style="padding:12px 15px; background:#f5af19; font-size:18px"><?= Com::moneyFormat($model['order_total'],'') ?></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> <tr> <td style="background-color:#03a9f4; color:#fff; padding:15px 20px; border-bottom-left-radius:8px; border-bottom-right-radius:8px"> <table cellpadding="0" cellspacing="0" width="100%" border="0"> <tr> <td style="color:#fff"> <span style="font-weight:300; font-size:13px"> Best Regards,</span> <br>The <?= $appName ?> Team. </td> <td style="text-align:right; padding-left:15px; color:#fff;"> <span style="font-weight:300; font-size:13px">For more information</span><br> <a style="color:#fff; text-decoration:none"> <?= $appSupportEmail ?> </a> </td> </tr> </table> </td> </tr> </tbody> </table> </td> </tr> <?php if (false): ?> <tr> <td valign="middle" style="padding:15px 20px 10px 20px; text-align:center"> <table cellpadding="0" cellspacing="0" width="100%" border="0"> <td> <p style="margin: 0px 0px 5px 0px; color: #64656b;">Social with us</p> <?php foreach ($appSocialMedia as $url => $media): if (($url = Configuration::get($media['key'])) === null) { continue; } ?> <?php endforeach; ?> <a href="#"><img src="icons/facebook.png" style="margin:2px"></a> <a href="#"><img src="icons/twitter.png" style="margin:2px"></a> <a href="#"><img src="icons/youtube.png" style="margin:2px"></a> <a href="#"><img src="icons/instagram.png" style="margin:2px"></a> </td> </table> </td> </tr> <?php endif; ?> <tr> <td valign="middle" style="padding:0px 20px 20px 0px; text-align:center; color:#666; font-size:13px"> <p style="margin:0px 0px 15px 0px"> Questions? The <b><?= $appName ?></b> team is always here to help. <br>Contact <b><?= $appSupportEmail ?></b> and we'll get back to you soon. </p> © <?= date('Y') ?> <?= $appName ?>. All rights reserved. </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </body> </html>
Save
cmd:
run