<?php $this->load->view('site/layout'); ?>

<link href="<?php echo base_url() ?>public/plugins/custom/datatables/datatables.bundle.css" rel="stylesheet" type="text/css" />

<?php $this->load->view('site/navbar'); ?>
<div class="kt-content  kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">

    <!-- begin:: Content Head -->
    <div class="kt-subheader  kt-grid__item" id="kt_subheader">
        <div class="kt-container  kt-container--fluid ">
            <div class="kt-subheader__main">
                <h3 class="kt-subheader__title"><a href="<?php echo base_url() ?>Dashboard/"><?php echo $this->lang->line('dashboard'); ?></a></h3>
                <span class="kt-subheader__separator kt-subheader__separator--v"></span>
                <span class="kt-subheader__desc"><a href="<?= base_url('payment/pay_orders') ?>"><?php echo $this->lang->line('pay_orders') ?></a></span>
                <span class="kt-subheader__desc"><?php echo $this->lang->line('pay_order'); ?></span>
            </div>

        </div>
    </div>


    <div class="kt-portlet kt-portlet--mobile">
        <div class="kt-portlet__head kt-portlet__head--lg">
            <div class="kt-portlet__head-label">
                <span class="kt-portlet__head-icon">
                  <!-- <i class="kt-font-brand flaticon2-line-chart"></i> -->
                </span>
                <h3 class="kt-portlet__head-title">
                    <?php echo $this->lang->line('pay_order'); ?>
                </h3>
            </div>

        </div>
        <div class="kt-portlet__body">

            <!--begin: Datatable -->
            <table class="table table-striped- table-bordered table-hover" id="kt_table_1">
                <tbody>
                    <tr>
                        <th  colspan="1"><?php echo $this->lang->line('date-added') ?></th>
                        <td colspan="3" class="dir_ltr"><?= date('Y/m/d H:i', strtotime($pay_order->created_at)) ?></td>
                    </tr>

                    <tr>
                        <th><?php echo $this->lang->line('client_name') ?></th>
                        <td><?= $pay_order->client_name; ?></td>
                        <th><?php echo $this->lang->line('amount') ?></th>
                        <td><?= $pay_order->amount . ' ' . $sett->inv_currency ?></td>
                    </tr>

                    <tr>
                        <th><?php echo $this->lang->line('phone') ?></th>
                        <td colspan="3"><?= $pay_order->phone_code . ' ' . $pay_order->phone; ?></td>

                    </tr>
                    <tr>
                        <th><?php echo $this->lang->line('payment_time') ?></th>
                        <td><?= $pay_order->payment_time == NULL ? $this->lang->line('not-paid') : date('Y/m/d H:i', strtotime($pay_order->payment_time)); ?></td>
                        <td><?php echo $this->lang->line('payment_method') ?></td>
                        <td><?= $pay_order->payment_method ? $pay_order->payment_method : '---'; ?></td>
                    </tr>

                    <tr>
                        <th><?php echo $this->lang->line('description') ?></th>
                        <td colspan="3"><?= $pay_order->desc ?></td>
                    </tr>




                </tbody>
            </table>

            <br/>
            <br/>


            <div class="">
                <div class="kt-form__actions">
                    <a href="<?= base_url('payment/pay_orders') ?>" ><button type="reset" class="btn btn-primary">Back</button></a> 
                </div>
            </div>
            <!--end: Datatable -->
        </div>
    </div><!-- /.row -->
    <script src="<?php echo base_url() ?>public/plugins/global/plugins.bundle.js" type="text/javascript"></script>
    <script src="<?php echo base_url() ?>public/js/scripts.bundle.js" type="text/javascript"></script>


    <script src="<?php echo base_url() ?>public/plugins/custom/datatables/datatables.bundle.js" type="text/javascript"></script>


    <script src="<?php echo base_url() ?>public/js/pages/crud/datatables/basic/basic.js" type="text/javascript"></script>
