<?php include('header.php');?>

<!-- start main -->
<section class="inner-section single-banner">
	<div class="container">
		<h2>Change Password </h2>
		<ol class="breadcrumb">
			<li class="breadcrumb-item"><a href="index.php">Home</a></li>
			<li class="breadcrumb-item active" aria-current="page">Change Password </li>
		</ol>
	</div>
</section>
<section class="inner-section profile-part">
	<div class="container">
		<div class="row">
               <div class="col-lg-10 mx-auto">
                  <div class="row no-gutters">
                     <div class="col-md-4">
                        <div class="card account-left mb-2 bg-me2">
                           <div class="user-profile-header">
                               <div class="profile-pic-img"> 
                            <form action="<?=base_url('profile/edit_profile_img');?>" enctype="multipart/form-data" method="POST">
                                <br>
                                <?php if(empty($customer['cust_image'])  || !file_exists('uploads/website/customer/'.$customer['cust_image'])){?>
                            <img id="blah" src="<?=base_url('uploads/website/customer/user.png');?>" alt="your image" class="brround">
                            <?php }else{
                                ?>
                                <img id="blah" src="<?=base_url('uploads/website/customer/'.$customer['cust_image']);?>" alt="your image" class="brround">
                                <?php
                            }
                            ?>
                            <i class="fa fa-camera pencile"></i>
                            <input class="input-op0" type="file" title=" " name="photo" accept="image/gif, image/jpeg, image/png" onchange="readURL(this);">
                            <input type="hidden" name="url">
                            </form>
                            </div>
                              <h5 class="mb-1"><strong>Hi </strong> <?php echo $customer['cust_name']; ?></h5>
                              <p class="text-white"><?php echo '+91 '.$customer['cust_phone']; ?></p>
                           </div>
                           <div class="list-group">
                              <a href="<?=base_url('profile/');?>" class="list-group-item list-group-item-action"><i aria-hidden="true" class="fa fa-user"></i>  My Profile</a>
                               <form action="<?=base_url();?>mpanel/Main/login_process" method="post">
                                 <input type="hidden" name="user" value="<?php echo $customer['uid']?>">
                                 <input type="hidden" name="pass" value="<?php echo $customer['pass']?>">
                                  <button type="submit" class="list-group-item list-group-item-action "><i aria-hidden="true" class="fa fa-user"></i>  Mpanel</button>
                              
                             </form>
                              
                              <a href="<?=base_url('orderlist');?>" class="list-group-item list-group-item-action "><i aria-hidden="true" class="fa fa-list"></i>  Order List</a> 
                              <a href="<?=base_url('profile/customer_password_update');?>" class="list-group-item list-group-item-action active"><i aria-hidden="true" class="fa fa-key"></i>  Password Update</a> 
                              <a href="<?=base_url('login/logout');?>" class="list-group-item list-group-item-action"><i aria-hidden="true" class="fa fa-lock"></i>  Logout</a> 
                           </div>
                        </div>
                     </div>
                     
                    <div class="col-md-8">
                        <div class="user-form-card">
                            <div class="user-form-title">
                                <h2> Change Password </h2>
                                <p>Make sure your current password is strong</p>
                            </div>
                            <form action="<?=base_url('profile/edit_profile_password');?>" class="user-form" method="post">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <input type="password" class="form-control" name="cust_password" placeholder="<?php echo LANG_VALUE_100; ?> *">
                                        </div>
                                        <div class="form-group">
                                            <input type="password" class="form-control" name="cust_re_password" placeholder="<?php echo LANG_VALUE_101; ?> *">
                                        </div>
                                        <div class="form-button"><button type="submit" name="form1"><?php echo LANG_VALUE_5; ?></button></div>
                                   </div>
                                </div>
                            </form>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </section>
      
      
	<script>  
	 function getdt(){
    var state  =$("#statef").val();
   

        $.ajax({
                url:"<?=base_url('profile/get_district');?>",
                 type:"POST",
                 data:{state:state},
                // dataType: 'json',
                 success:function(data)
                 {
           $("#distgg").html(data);
                 }
                     
                 })

	 }      
</script> 
     <?php require('footer.php');?>