|
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/ptbos.biz/public_html/application/views/admin/orders/ |
Upload File : |
<div class="row">
<div class="col-sm-12">
<p><a href="<?= base_url('admin/orders'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Orders Page</a></p><br>
<h4>ORDER NO: <?php echo $order->id_orders; ?></h4>
<h4> ORDER DATE: <?php echo date('j F Y', strtotime($order->order_date)); ?></h4>
<?= $this->session->flashdata('success'); //to display success message ?>
<?= $this->session->flashdata('result'); //to display result message ?>
</div><!-- end class="col-sm-12" -->
</div> <!-- end row -->
<?= form_open(); ?>
<div class="row">
<div class="col-sm-3">
<p>Current Order Status</p>
</div><!-- end class="col-sm-3" -->
<div class="col-sm-9">
<?php
if($order->payment_status == 0) {
$options[0] = 'Not Paid';
$options[1] = 'Paid';
$options[2] = 'Cancel';
}
if($order->payment_status == 1) {
$options[1] = 'Paid';
$options[3] = 'Product Sent';
$options[2] = 'Cancel';
}
if($order->payment_status == 2) {
$options[2] = 'Cancel';
$options[1] = 'Paid';
}
if($order->payment_status == 3) {
$options[3] = 'Product Sent';
$options[2] = 'Cancel';
}
echo form_dropdown('payment_status', $options, $order->payment_status, 'class="form-control changeOrderStatus"');
?>
<?php if ($order->payment_status == 1 || $order->payment_status== 3) : ?>
<br>Courier Tracking Number (Enter below)<br>
<?php echo form_input('no_resi', $order->no_resi); ?>
<br>
<?php endif; ?>
<br>
<span><?= form_submit('update', 'Change Order Status', 'class="btn btn-primary btn-success submitOrderStatus"'); ?></span>
<script>
$(document).ready(function() {
$('.submitOrderStatus').prop('disabled', true);
$('.changeOrderStatus').change(function() {
$('.submitOrderStatus').prop('disabled', false);
});
});
</script>
<?= form_close(); ?>
<br><br>
<p><a target="_blank" href="<?php echo base_url() . 'admin/orders/generate_invoice_pdf/' . $order->id_orders; ?>"><i class="fa fa-files-o" aria-hidden="true"></i>
DOWNLOAD INVOICE</a></p>
<p><a target="_blank" href="<?php echo base_url() . 'admin/orders/generate_deliveryslip_pdf/' . $order->id_orders; ?>"><i class="fa fa-truck" aria-hidden="true"></i>
<?php if($order->dropship == 'yes') : ?>
DROPSHIP
<?php endif; ?> DOWNLOAD DELIVERY SLIP </a></p>
</div><!-- end class="col-sm-9" -->
</div> <!-- end row -->
<div class="row">
<div class="col-sm-12">
<div class="table-responsive">
<table class="table table-striped">
<?php if($order->payment_type == 'bank transfer'): ?>
<tr>
<td>PAYMENT TYPE</td>
<td>Bank Transfer (BCA)</td>
</tr>
<?php endif; ?>
<?php if($order->payment_type == 'creditcard'): ?>
<tr>
<td>PAYMENT TYPE</td>
<td>CREDIT CARD</td>
</tr>
<?php endif; ?>
<?php if($order->payment_type == 'virtualaccount'): ?>
<tr>
<td>PAYMENT TYPE</td>
<td>VIRTUAL ACCOUNT</td>
</tr>
<?php endif; ?>
<tr>
<td>CUSTOMER CONTACT</td>
<td>
<p>
Name: <?php echo ucwords($customer->name); ?><br>
Email: <a href="mailto:<?php echo $customer->email; ?>"><?php echo $customer->email; ?></a><br>
Phone: <?php echo $customer->phone; ?>
</p>
</td>
</tr>
<tr>
<td>SHIPPING DETAILS</td>
<td>
<?php if($order->dropship == 'yes'): ?>
<p><strong>SEND AS DROPSHIP</strong></p>
<?php endif; ?>
<p>
Recipient: <?php echo ucwords($order->recipient_name); ?><br>
<?php echo ucwords($order->address); ?><br>
<?php echo ucwords($order->district); ?>. <?php echo ucwords($order->subdistrict); ?><br>
<?php echo ucwords($order->province) . ' ' . $order->postcode; ?><br>
<?php echo 'Country: ' . $order->country . ' ' ; ?> <a style="text-decoration: underline;" href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3" target="_blank">Check ISO country code</a><br>
<?php echo 'Phone: ' . $order->phone; ?><br>
</p>
</td>
</tr>
<tr>
<td>CUSTOMER NOTE</td>
<td><p><?= ucfirst($order->customer_note); ?></p></td>
</tr>
<tr>
<td colspan="2">
<p>ORDER DETAILS</p>
<table class="table" style="border: 1px solid black">
<tr>
<th style="border: 1px solid black">Item Name</th>
<th style="border: 1px solid black">Price</th>
<th style="border: 1px solid black">Quantity</th>
<th style="border: 1px solid black">Sub Total</th>
</tr>
<?php foreach ($order_details as $item) : ?>
<tr>
<td style="border: 1px solid black">
<?php echo ucwords($item->item_name); ?></td>
<td style="border: 1px solid black">IDR
<?php echo number_format($item->item_price); ?></td>
<td style="border: 1px solid black"><?= $item->quantity; ?></td>
<td style="border: 1px solid black">
<?php echo number_format($item->subtotal); ?></td>
</tr>
<?php endforeach; ?>
</table>
</td>
</tr>
<?php if($order->ppn != 0) : ?>
<tr>
<td>TAX 10%</td>
<td>IDR <?= number_format($order->ppn); ?></td>
</tr>
<?php endif; ?>
<tr>
<td>SHIPPING : <?= ucfirst($order->shipping_type); ?></td>
<td>IDR <?= number_format($order->shipping_fee); ?></td>
</tr>
<?php if (!is_null($order->redeemed_voucher_code)) : ?>
<tr>
<td>VOUCHER CODE: <?= strtoupper($order->redeemed_voucher_code); ?></td>
<td>IDR -<?= number_format($order->redeemed_voucher_amount); ?></td>
</tr>
<?php endif; ?>
<?php if($order->minus_reward > 0) : ?>
<tr>
<td>REDEEM POINT REWARDS: <?= $order->minus_reward; ?> points</td>
<td>IDR -<?= number_format($order->minus_reward_amount); ?></td>
</tr>
<?php endif; ?>
<tr>
<td style="font-weight: bold;">TRANSFER AMOUNT</td>
<td style="font-weight: bold;">IDR <?php echo number_format($order->total_amount); ?>
</td>
</tr>
<?php if ($order->payment_confirm_details): ?>
<tr>
<td><br>PAYMENT CONFIRMATION</td>
<td><br><?= $order->payment_confirm_details; ?>
</tr>
<?php endif; ?>
</table>
</div>
</div>
</div>