<!-- Begin Page Content -->
<div class="container-fluid">
    <!-- Page Heading -->
    <div class="row">
        <div class="col-md-6">
            <h1 class="h3 mb-2 text-gray-800">Rejected Wallet Top Up Requests</h1>
        </div>
    </div>
    <!-- DataTales Example -->

    <div class="card shadow mb-4">
        <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
            <div class="col-md-12 text-left ">
                List of Request Money (Rejected)
            </div>
        </div>
        <div class="card-body">
            <div class="row">
                <div class="col-md-12 ">
                    <table class="table table-responsive-lg table-striped table-bordered" width="100%" id="dataTable">
                        <thead>
                            <tr style="background-color:#034ea1 !important; color:white !important; ">
                                <th>Request Date</th>
                                <th>User Details</th>
                               
                                <th>Transaction Type</th>
                                <th>Amount</th> 
                                <th>Rejected</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <?php for ($i = 0; $i < $rows; $i++) { ?>
                            <tr>
                                <td><?= format_date1($res[$i]['request_date']); ?></td>
                              
                                <td><?php echo $res[$i]['name']; ?>(<?php echo $res[$i]['user_type']; ?>)</td>
                               <td><?php echo $res[$i]['transfer_mode']; ?></td>
                                <td><i class="fa fa-rupee-sign"></i> <?= $res[$i]['amount']; ?></td>  
                                <td>
                                    <?php echo format_date1($res[$i]['decision_date']); ?>
                                    <br/> <?php echo $res[$i]['decision']; ?></td>
                                <td>
                                    <span class="fa_reject"> Rejected </span>
                                 
                                </td>
                            </tr>

                        <?php } ?> 
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- /.container-fluid -->
<div class="modal fade bs-example-modal-sm" id="payment_request_modal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog ">
        <div class="modal-content">

            <div class="modal-header">

                <h4 class="modal-title" id="myModalLabel2">Payment Remark: <span id="order_id"></span></h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
                </button>
            </div>
            <form name="payment_submit" id="payment_submit" method="post"  onsubmit="return false;" >

                <div class="modal-body">
                    <div class="col-md-12">
                        <label>Remark <small>(optional)</small></label>
                        <input type="text" class="form-control" id="remarks" placeholder="Remark" name="remarks"aria-describedby="inputSuccess2Status">
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-success" data-dismiss="modal">Close</button>
                    <input type="hidden" name="request_money_status" id="request_money_status" value='0'/>
                    <input type="hidden" name="request_money_id" id="request_money_id" value='0'/>
                    <input type="hidden" name="updte" id="updte" value='1'/>

                    <button type="submit" class="btn btn-primary">Save changes</button>
                </div>
            </form>
            <div id="processing_payment" style="display: none;" class="col-md-12 text-center">
                <?php include "processing.php"; ?>
            </div>
        </div>
    </div>
</div>