<div class="app-content content">
      <div class="content-wrapper">
        <div class="content-header row">
          <div class="content-header-left col-md-8 col-12 mb-2 breadcrumb-new">
            <h3 class="content-header-title mb-0 d-inline-block">Withdrawls</h3>
            <div class="row breadcrumbs-top d-inline-block">
              <div class="breadcrumb-wrapper col-12">
                <ol class="breadcrumb">
                  <li class="breadcrumb-item"><a href="<?php echo base_url();?>">Dashboard</a></li>
                </ol>
              </div>
            </div>
          </div>
          <!--<div class="content-header-right col-md-4 col-12 d-none d-md-inline-block">
            <div class="btn-group float-md-right"><a class="btn-gradient-secondary btn-sm white" href="wallet.html">Buy now</a></div>
          </div>-->
        </div>
        <div class="content-body">
        	<div class="row">
                            <div class="col-md-7">
                            <h5 class="text-danger">Withdrawl Instructions:</h5>
                            <p>Please withdraw minimum amount of 1000 rs below 1000 rs withdrawl will not be accepted.
                            Withdrawl amount will be transferred to customer bank account which is linked with us. Once we receive withdrawl request your WITHDRAWL order will be processed before 48 hours. Our processing hours is between 10 AM to 7 PM on weekdays (Mon-Fri).</p>
                            <form class="form-inline" action="<?php echo base_url();?>home/withdraw_submit" method="post">
                              <div class="form-group">
                                <label for="email">Enter Amount To WithDraw </label>
                                <input type="number" class="form-control" id="wamt"  name="wamt" required>
                              </div>
                              <button type="submit" class="btn btn-default">Submit</button>
                            </form><br/>
                             <table class="table table-condensed table-striped">
    <thead bgcolor="#666666" style="color:#FFF;"><tr><th>S.No.</th><th>Date</th><th>Amount</th><th>Status</th><th>Remark</th></tr></thead>
                    <tbody>
                        <?php $i=1;foreach($withdrawls as $w){?>
                        <tr><td><?php echo $i;?></td>
                            <td><?php echo date("d M'y",strtotime($w->req_date));?></td>
                            <td><?php echo $w->wamt;?></td>
                            <td><?php if($w->req_status==""){?>
                            <span class="badge badge-warning">Pending</span><?php }
							if($w->req_status=="Reject"){?>
                            <span class="badge badge-danger">Reject</span><?php }
							if($w->req_status=="Approved"){?>
                            <span class="badge badge-success">Approved</span><?php }?></td>
                            <td><?php echo $w->remarks;?></td></tr>
                        <?php $i++;}?>
                    </tbody>
                </table>
                            </div>
                            <div class="col-md-5">
                           		  <h5 class="text-danger">Update Bank Details</h5>
                                  <form action="<?php echo base_url();?>home/update_banking" method="post" enctype="multipart/form-data">
        <div class="form-group">
            <label>Bank Name</label>
            <input type="text" name="bank_name" value="<?php echo $user->bank_name;?>" required class="form-control" />
        </div>
        <div class="form-group">
            <label>Account Holder Name</label>
            <input type="text" name="acc_holder" value="<?php echo $user->acc_holder;?>" required class="form-control" />
        </div>
        <div class="form-group">
            <label>Account Number</label>
            <input type="number" name="acc_no" value="<?php echo $user->acc_no;?>" required class="form-control" />
        </div>
        <div class="row">
        <div class="form-group col-md-6">
            <label>IFSC Code</label>
            <input type="text" name="ifsc" value="<?php echo $user->ifsc;?>" required class="form-control" />
        </div>
        <div class="form-group col-md-6">
            <label>Account Type</label>
            <select class="form-control" name="acc_type">
                <option value="">Select Type</option>
                <option value="Current Account" <?php if($user->acc_type=="Current Account"){echo "selected";}?>>Current Account</option>
                <option value="Savings Account" <?php if($user->acc_type=="Savings Account"){echo "selected";}?>>Savings Account</option>
            </select>	
        </div>
        </div>
                                        <button class="btn btn-warning btn-block" type="submit">Request Deposite</button>
                                    </form>
                            </div>
                        </div>
        </div>
      </div>
    </div>