|
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/indolok.id/application/views/veritrans_result/ |
Upload File : |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<div class="container">
<div class="row">
<div class="col-sm-12">
<br><br>
<h4><i class="fas fa-check-circle" style="color: #71ba4e"></i> SELAMAT PEMESANAN ANDA BERHASIL</h4>
<div class="row" style="margin-bottom: 20px;">
<div class="col-md-6 col-sm-12" style="margin: 10px;box-shadow: 1px 4px 20px 0px #aaaaaa;padding: 10px;border-radius: 7px;">
<p style="margin-bottom: 5px;">Konfirmasi email dengan Order No: <?= $order->id_orders; ?> sudah diemailkan ke <b><?= $order->email; ?></b>.</p><br>
<h5>Pembayaran Dengan Midtrans</h5><br>
<?php if($owa == 'yes') : ?>
<h4 style="color: red"><strong>HARAP SUSULKAN RESEP</strong></h4>
<?php endif; ?>
<br>
<div class="row" style="margin: 0px 0px 10px;">
<div class="col-12" style="border-top: 1px solid black;"></div>
</div>
<?php echo form_open('account/payment_confirmation'); ?>
<div class="row">
<div class="col-6">
<p style="margin: 0px;font-weight: bold;">Order No: <?= $order->id_orders; ?></p>
<input type="hidden" name="order_id" value="<?= $order->id_orders; ?>">
<p style="margin: 0px;font-weight: bold;">Order Date:</p>
<p style="margin-bottom: 10px;">
<?php
$order_date = strtotime($order->order_date);
$new_date = date('j/m/Y', $order_date);
echo $new_date;
?>
</p>
</div>
<div class="col-6">
<p style="margin: 0px;font-weight: bold;"">Order Status:</p>
<?php if ($order->payment_status == 1) : ?>
<p style="margin: 0px;"><?= ucwords(lang('not_paid_yet')); ?></p>
<?php elseif ($order->payment_status == 3) : ?>
<p style="margin: 0px;"><?= ucwords(lang('paid')); ?></p>
<?php elseif ($order->payment_status == 4) : ?>
<p style="margin: 0px;"><?= ucwords(lang('product_sent')); ?></p>
<?php elseif($order->payment_status == 2) : ?>
<p style="margin: 0px;"><?= ucwords(lang('cancel')); ?></p>
<?php endif; ?>
</div>
</div>
<p style="margin: 0px;font-weight: bold;">Penerima:</p>
<p style="margin: 0px;">
<?php if($order->recipient_name != null): ?>
<?= ucwords($order->recipient_name); ?><br>
<?php endif; ?>
<?= ucwords($order->address); ?><br>
<?= ucwords($order->district); ?>, <?= ucwords($order->subdistrict); ?><br><?= ucwords($order->province); ?> <?= ucwords($order->postcode); ?>
</p>
<p style="margin: 0px;font-weight: bold;">Nama Produk:</p>
<?php
$this->db->select('*');
$this->db->from('orders_detail');
$this->db->where('orders_id', $order->id_orders);
$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 $image = $this->db->select('image1')->from('products')->where('id_products',$order_detail->item_id)->get()->row()->image1; ?>
<?php if($image != null): ?>
<?php if (file_exists(FCPATH.'/uploads/product/small/' . $image)):?>
<img src="<?= base_url('/uploads/product/small/'.$image);?>">
<?php else: ?>
<img src="<?= base_url('/uploads/product/small/placeholder.jpg');?>">
<?php endif; ?>
<?php else: ?>
<img src="<?= base_url('/uploads/product/small/placeholder.jpg');?>">
<?php endif; ?>
</div>
<div class="col-4">
<p style="margin: 0px;"><?= $order_detail->item_name; ?></p>
</div>
<div class="col-4">
<p style="margin-bottom: 10px;">
Qty: <?= $order_detail->quantity; ?> pcs<br>
@Rp <?= number_format($order_detail->item_price); ?>
</p>
</div>
</div>
<?php endforeach; ?>
<p style="border-top: 1px solid black;margin: 0px;padding-top: 5px;font-weight: bold;text-align: right;">
Total: IDR <?= number_format(($order->total_amount - $order->redeemed_voucher_amount - $order->minus_reward_amount) + ($order->shipping_fee - $order->free_shipping_fee)); ?>
</p>
<?php echo form_close(); ?>
</div>
</div>
<h5>Thank you for your Order!</h5>
<a class="btn btn-primary btn-buy" href="<?= base_url(); ?>" style="float: none;background-color: #F87F38;">LANJUT BELANJA</a>
<br><br>
</div><!-- end col-sm-12-->
</div><!-- end row-->
</div><!-- end container -->
<div id="footer" >