HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/wwwshoopermcom/application/views/order/orders.php
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!-- Wrapper -->
<div id="wrapper">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <nav class="nav-breadcrumb" aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo lang_base_url(); ?>"><?php echo trans("home"); ?></a></li>
                        <li class="breadcrumb-item active" aria-current="page"><?php echo $title; ?></li>
                    </ol>
                </nav>

                <h1 class="page-title"><?php echo $title; ?></h1>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-12">
                <div class="row-custom">
                    <div class="profile-tab-content">
                        <!-- include message block -->
                        <?php $this->load->view('partials/_messages'); ?>
                        <div class="table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th scope="col"><?php echo trans("order"); ?></th>
                                    <th scope="col"><?php echo trans("total"); ?></th>
                                    <th scope="col"><?php echo trans("payment"); ?></th>
                                    <th scope="col"><?php echo trans("status"); ?></th>
                                    <th scope="col"><?php echo trans("date"); ?></th>
                                    <th scope="col"><?php echo trans("options"); ?></th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php if (!empty($orders)): ?>
                                    <?php foreach ($orders as $order): ?>
                                        <tr>
                                            <td>#<?php echo $order->order_number; ?></td>
                                            <td><?php echo price_formatted($order->price_total, $order->price_currency); ?></td>
                                            <td>
                                                <?php if ($order->status == 2):
                                                    echo trans("cancelled");
                                                else:
                                                    if ($order->payment_status == 'payment_received'):
                                                        echo trans("payment_received");
                                                    else:
                                                        echo trans("awaiting_payment");
                                                    endif;
                                                endif; ?>
                                            </td>
                                            <td>
                                                <?php if ($order->status == 2): ?>
                                                    <strong class="font-600"><?php echo trans("cancelled"); ?></strong>
                                                <?php else: ?>
                                                    <strong class="font-600">
                                                        <?php if ($order->payment_status == 'awaiting_payment'):
                                                            if ($order->payment_method == 'Cash On Delivery') {
                                                                echo trans("order_processing");
                                                            } else {
                                                                echo trans("awaiting_payment");
                                                            }
                                                        else:
                                                            if ($order->status == 1):
                                                                echo trans("completed");
                                                            else:
                                                                echo trans("order_processing");
                                                            endif;
                                                        endif; ?>
                                                    </strong>
                                                <?php endif; ?>
                                            </td>
                                            <td><?php echo formatted_date($order->created_at); ?></td>
                                            <td>
                                                <a href="<?php echo generate_url("order_details") . "/" . $order->order_number; ?>" class="btn btn-sm btn-table-info"><?php echo trans("details"); ?></a>
                                            </td>
                                        </tr>
                                    <?php endforeach; ?>
                                <?php endif; ?>
                                </tbody>
                            </table>
                        </div>


                        <?php if (empty($orders)): ?>
                            <p class="text-center">
                                <?php echo trans("no_records_found"); ?>
                            </p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="row-custom m-t-15">
                    <div class="float-right">
                        <?php echo $this->pagination->create_links(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Wrapper End-->