<div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                   Manage Users
                </h1>
              <ol class="breadcrumb">
                    <li><a href="<?php echo base_url();?>admin"><i class="fa fa-home"></i>Home</a></li>
                    <li class="active">Manage Users</li><li class="active">All Users</li>
                </ol>
            </section>
            <!-- Main content -->
            <div class="content">
           
                <div class="container-fluid">
                 
                    <!-- Tabs -->
                    <!-- third row  -->
                    <?php if($this->session->flashdata("msg")!==""){echo $this->session->flashdata("msg");}?>
                            
                    <div class="row">
            <div class="col-md-4">
            	<div class="panel panel-primary">
                    <div class="panel-heading">Manage Profile</div>
                        <div class="panel-body">
                            <form action="<?php echo base_url().'admin/update_profile';?>" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="uid" value="<?php echo $user->id;?>" />
                            <div class="row">
                                <div class="col-md-4">
                                    <input type="hidden"  value="<?php echo $user->profile_url;?>" name="old_profile_url" />
                                    <img class="img img-responsive" width="100%" src="<?php echo $user->profile_url;?>" />
                                    <input type="file" name="profile_url" />
                                </div>
                                <div class="col-md-8">
                                    <small>Reg Since <?php echo date("d-m-Y",strtotime($user->created));?></small>
                                    <h3 class="text-success"><?php echo $user->first_name.' '.$user->last_name;?></h3>
                                    <label class="badge badge-success">MFCLT0000<?php echo $user->id;?></label>
                                    <label class="badge badge-warning"><?php echo $user->username;?></label>
                                </div>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label>Mobile</label>
                                        <input type="text" class="form-control" name="mobile" value="<?php echo $user->mobile;?>" />
                                    </div>
                                    <div class="form-group">
                                        <label>Email</label>
                                        <input type="text" class="form-control" name="email" value="<?php echo $user->email;?>" />
                                    </div>
                                    <div class="row">
                                        <div class="form-group col-md-7">
                                            <label>City</label>
                                            <input type="text" class="form-control" name="city" value="<?php echo $user->city;?>" />
                                        </div>
                                        <div class="form-group col-md-5">
                                            <label>Pincode</label>
                                            <input type="text" class="form-control" name="zipcode" value="<?php echo $user->zipcode;?>" />
                                        </div>
                                    </div>
                                    <button type="submit" class="btn btn-primary">Update Profile Details</button>
                                </div>
                            </div>
                            </form>
                        </div>
                    </div>
            	</div>
            <div class="col-md-4">
            	<div class="panel panel-primary">
                    <div class="panel-heading">Bank Details</div>
                        <div class="panel-body">
                        <form action="<?php echo base_url();?>admin/update_banking" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="uid" value="<?php echo $user->id;?>" />
                            <input type="hidden" name="uid" value="<?php echo $user->id;?>" />
                            <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>A/c 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>A/c  Number</label>
                                <input type="number" name="acc_no" value="<?php echo $user->acc_no;?>" required class="form-control" />
                            </div>
                            
                            <div class="form-group">
                                <label>IFSC Code</label>
                                <input type="text" name="ifsc" value="<?php echo $user->ifsc;?>" required class="form-control" />
                            </div>
                            <div class="form-group">
                                <label>A/c  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>
                            
                            <button class="btn btn-warning btn-block" type="submit">Update Details</button>
                        </form>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
            	<div class="panel panel-primary">
                    <div class="panel-heading">KYC Details</div>
                        <div class="panel-body">
                            <form action="<?php echo base_url();?>admin/update_kyc" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="uid" value="<?php echo $user->id;?>" />
                                <div class="form-group">
                                    <label>Aadhar Number</label>
                                    <input type="text" class="form-control" value="<?php echo $user->aadhar;?>" name="aadhar_number" />
                                    
                                </div>
                                <div class="">
                                    <label>Aadhar Doc</label>
                                    <input type="file" name="aadhar_doc" />
                                    <input type="hidden"  value="<?php echo $user->aadhar_doc;?>" name="old_aadhar_doc" />
                                    <img class="img img-responsive" width="100px" src="<?php echo $user->aadhar_doc;?>" />
                                    
                                </div>
                                 <div class="">
                                    <label>Aadhar Doc</label>
                                    <input type="file" name="aadhar_doc2" />
                                    <input type="hidden"  value="<?php echo $user->aadhar_doc2;?>" name="old_aadhar_doc2" />
                                    <img class="img img-responsive" width="100px" src="<?php echo $user->aadhar_doc2;?>" />
                                    
                                </div>
                                <div class="form-group">
                                    <label>Pan Number</label>
                                    <input type="text" class="form-control" value="<?php echo $user->pan_no;?>" name="pan_number" />
                                </div>
                                <div class="">
                                    <label>PAN Doc</label>
                                    <input type="file" name="pan_doc" />
                                    <input type="hidden" value="<?php echo $user->pan_doc;?>" name="old_pan_doc" />
                                    <img class="img img-responsive" width="100px" src="<?php echo $user->pan_doc;?>" />
                                    
                                </div>
                                <div class="">
                                    <label>Selfie</label>
                                    <input type="file" name="selfie" />
                                    <input type="hidden" value="<?php echo $user->profile_img;?>" name="old_profile_img" />
                                    <img class="img img-responsive" width="100px" src="<?php echo $user->profile_img;?>" />
                                    
                                </div>
                            <button class="btn btn-danger btn-block" type="submit">Update KYC</button>
                               <!-- <button class="btn btn-warning btn-block" type="submit">Update KYC</button>-->
                            </form>
                        </div>
                </div>
            </div>
        </div>
                    
                    
                </div>
            </div>
            <!-- /.content -->
        </div>
        
      
  <footer class="main-footer">
            <!-- To the right -->
           <!-- <div class="pull-right hidden-xs">
                Developed by <i class="fa fa-heart"></i> Floatin
            </div>-->
            <!-- Default to the left -->
            <strong>Copyright &copy; 2022 <a href="#">Money Forex </a>.</strong> All rights reserved.
        </footer>
    </div>
   <script>
	$(document).ready(function(){
		
	});
</script>
   <!-- <script>
	$(document).ready(function(){
   function readURL(input,id) {
        if (input.files && input.files[0]) {
            var reader = new FileReader();
            
            reader.onload = function (e) {alert("asfda");
                $('#i'+id).attr('src', e.target.result);
            }
            
            reader.readAsDataURL(input.files[0]);
        }
    }
	$("#imgInp").change(function(){
        readURL(this,"front");
    });
	});
</script>-->
    <script src="<?php echo base_url();?>newadminassets/plugins/js/material.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/ripples.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/jquery.slimscroll.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/js/app.js"></script>
</body>

