<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-sm-12">
            <div class="tabbable">
                <div class="tab-content no-border padding-24">
                    <div class="tab-pane fade in active" id="faq-tab-1">
                        <div class="space-8"></div>
                        <div class="panel-group accordion-style1 accordion-style2" id="faq-list-1">
                            <div class="panel panel-default">
                                <div class="panel-headingnew">Payment History</div>
                                <div class="left_panel col-sm-12 padding_margin0 pull-left bg-white" id="add_detail">
                                    <ul class="nav nav-tabs nav-tabs1 tab_ul col-sm-2 paddig-right0 margin-top15px">
                                        <?php echo $this->partial('menu.phtml'); ?>
                                    </ul>

                                    <div class="tab-content tab_editprofile col-sm-10 padding-left0 marginbott10px margintop10px">
                                        <div id="home" class="tab-pane fade in tab_editprofile tab_editprofile1 active">
                                            <div class="change_password tab_editprofile">
                                                <div class="tab-content" id="myTabContent">
                                                    <div id="home" class="tab-pane fade active in">
                                                        <div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">
                                                            <div class="row">

                                                                <div class="col-sm-12">
                                                                    <div class="panel panel-default">
                                                                        <div class="panel-headingnew"> Payment History</div>
                                                                        <div id="faq-1-3" class="panel-collapse collapse in" aria-expanded="false" >

                                                                            <div class="box">

                                                                                <!-- /.box-header -->
                                                                                <div class="box-body">
                                                                                    <table id="myTable" class="table table-bordered table-striped example3">
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th>S.No.</th>
                                                                                                <th>Deposit Date</th>
                                                                                                <th>Ref No</th>
                                                                                                <th>Payment Mode</th>
                                                                                                <th>Request Amount</th>
                                                                                                <th>Approved Amount</th>
                                                                                                <th>Deposit Bank</th>
                                                                                                <th>Deposit Branch</th>
                                                                                                <th>Remark/Request</th>
                                                                                                <th>Status</th>
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>

                                                                                            <?php
                                                                                            if ($paymentHistory) {
                                                                                                $i = 1;
                                                                                                foreach ($paymentHistory as $listing) {
                                                                                                    ?>
                                                                                                    <tr>
                                                                                                        <td><?php echo $i; ?></td>
                                                                                                        <td><?php echo date('Y-m-d', strtotime($listing['deposit_date'])); ?></td>
                                                                                                        <td><?php echo $listing['payment_ref_no']; ?></td>
                                                                                                        <td><?php echo $listing['transaction_mode']; ?></td>
                                                                                                        <td><i class="fa fa-inr"></i> <?php echo $listing['amount']; ?></td>
                                                                                                        <td><i class="fa fa-inr"></i> <?php echo $listing['credit_amount']; ?></td>
                                                                                                        <td><?php echo $listing['deposit_bank']; ?></td>
                                                                                                        <td><?php echo $listing['deposit_branch']; ?></td>
                                                                                                        <td><?php echo $listing['remark']; ?></td>
                                                                                                        <td><?php echo $listing['status']; ?></td>
                                                                                                    </tr>
                                                                                                    <?php
                                                                                                    $i++;
                                                                                                }
                                                                                            } else {
                                                                                                ?>
                                                                                                <tr><th colspan="9" style="text-align: center;">No Record Found</th></tr>
                                                                                            <?php } ?>

                                                                                        </tbody>
                                                                                        <tfoot>
                                                                                            <tr>
                                                                                                <th>S.No.</th>
                                                                                                <th>Deposit Date</th>
                                                                                                <th>Ref No</th>
                                                                                                <th>Payment Mode</th>
                                                                                                <th>Amount</th>
                                                                                                <th>Deposit Bank</th>
                                                                                                <th>Deposit Branch</th>
                                                                                                <th>Remark/Request</th>
                                                                                                <th>Status</th>


                                                                                            </tr>
                                                                                        </tfoot>
                                                                                    </table>
                                                                                    <div class="col-sm-12 no-padding">
                                                                                        <a href="#" class="btn btn-default marginright export_status_history" style="margin-left: 10px;"><i class="fa fa-download marginright"></i>Download CSV</a>

                                                                                    </div>
                                                                                </div>
                                                                                <!-- /.box-body -->
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <br>
                    <!-- /.widget-box -->
                </div>
                <!-- /.col -->
                </section>