|
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/admin/statistic/ |
Upload File : |
<table border="1" cellpadding="8">
<tr>
<th>Order ID</th>
<th>Order Date</th>
<th>Customer</th>
<th>Products</th>
<th>Order Status</th>
<th>Total (Rp)</th>
<th>Payment Type</th>
</tr>
<?php foreach($orders as $order) : ?>
<tr>
<td><?= $order->id_orders; ?></td>
<td><?= date('d M Y ', strtotime($order->order_date)); ?></td>
<td><?= ucwords($order->recipient_name); ?></td>
<td>
<?php
$products = $this->db->select('item_name')->from('orders_detail')->where('orders_id', $order->id_orders)->get()->result();
foreach($products as $product) {
echo $product->item_name . '<br>';
}
?>
</td>
<td>
<?php
switch ($order->payment_status) {
case 3:
echo "Paid";
break;
case 4:
echo "Process";
break;
case 5:
echo "In Delivery";
break;
}
?>
</td>
<td>
<?php
$grand_total = $order->total_amount;
$grand_total += $order->ppn;
$grand_total += $order->shipping_fee;
$grand_total -= $order->free_shipping_fee;
$grand_total -= $order->redeemed_voucher_amount;
$grand_total -= $order->minus_reward_amount;
echo number_format($grand_total);
?>
</td>
<td><?= ucwords($order->payment_type); ?></td>
</tr>
<?php endforeach; ?>
</table>