<?php $this->load->view("top"); ?>
      <?php

$addres = $this->db->query("select * from wps_customers_address_book where customer_id = '" . $mres['customers_id'] . "' ")->row();
                        ?>
<!----My Accounts---->
<section class="my_account_page">
  <div class="container">
    <div class="row">
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-12">
                    <?php $this->load->view('members/left'); ?>
                </div>

             <div class="col-xxl-9 col-xl-9 col-lg-9 col-md-8 col-sm-8 col-12">
                    <div class="right_side">
                        <h1 class="bg-title">My Profile</h1>

                        <div class="wps_right">
                             <?php
              echo form_open('', 'class=""');
              error_message();
              success_message();
              ?>
                            <div class="row">                                
                                    <div class="col-lg-6 col-md-6 col-sm-6">
                                        <div class="form-group">
                                            <label class="input_label">
                                                <input class="form_input" type="text" name="first_name" placeholder="First Name *" value="<?php echo (@$mres['first_name']) ? @$mres['first_name'] : @$mres['first_name']; ?>"></label>
                                        </div>
                                    </div>

                

                                    <div class="col-lg-6 col-md-6 col-sm-6">
                                        <div class="form-group">
                                            <label class="input_label">
                                                <input class="form_input" type="tel" name="mobile_number" placeholder="Phone No *" minlenght="10" maxlenght="10" value="<?php echo (@$mres['mobile_number']) ? @$mres['mobile_number'] : @$mres['mobile_number'];?>"></label>
                                        </div>
                                    </div>
                                
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                        <div class="form-group">
                                            <label class="input_label">
                                <input class="form_input" type="email" name="email" placeholder="Email ID *" value="<?php echo (@$mres['user_name']) ? @$mres['user_name'] : @$mres['user_name'];?>" ></label>
                                        </div>
                                    </div>

                                  

                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                        <div class="form-group">
                                            <label class="input_label">
                                                <textarea name="address" required="" type="text" class="form_input" placeholder="Full Address*"><?php echo (@$addres->address) ? @$addres->address : @$addres->address ;?></textarea></label>
                                        </div>
                                    </div>

                                    <div class="col-lg-6 col-md-6 col-sm-6">
                                        <div class="form-group">
                                            <label class="input_label">
                                    <input class="form_input" type="text" name="country" placeholder="Country *" value="<?php echo (@$addres->country) ? @$addres->country : @$addres->country;?>">
                                            </label>
                                        </div>
                                    </div>
                                    <div class="col-lg-6 col-md-6 col-sm-6">
                                        <div class="form-group">
                                            <label class="input_label">
                                                <input class="form_input" type="text" name="state" placeholder="State *" value="<?php echo (@$addres->state) ? @$addres->state : @$addres->state;?>">
                                            </label>
                                        </div>
                                    </div>

                                     <div class="col-lg-6 col-md-6 col-sm-6">
                                        <div class="form-group">
                                            <label class="input_label">
                                                <input class="form_input" type="text" name="city" placeholder="City *" value="<?php echo (@$addres->city) ? @$addres->city : @$addres->city;?>">
                                            </label>
                                        </div>
                                    </div>

                                    <div class="col-lg-6 col-md-6 col-sm-6">
                                        <div class="form-group">
                                            <label class="input_label">
                                                <input class="form_input" type="text" name="pincode"  placeholder="Pincode *" value="<?php echo (@$addres->zipcode) ? @$addres->zipcode : @$addres->zipcode;?>">
                                            </label>
                                        </div>
                                    </div>

                                    <div class="col-lg-6 col-md-6 col-sm-6">
                                        <div class="form-group">
                                            <label class="info_title">Your Gender</label>
                                            <div class="radio1">  
                                                <label class="radio_button" for="male"><input id="male" type="radio" name="text" value="male" checked="">   Male </label>  
                                                <label class="radio_button" for="female"><input id="female" type="radio" name="text" value="female">  Female</label>  
                                            </div>
                                        </div>
                                    </div>
                                </div>
                  
                          
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                        <div class="form-group">
                                            <button class="edit_save_btn hover_btn" type="submit" name="submit">Save</button>
                                        </div>
                                    </div>
                                <?php echo form_close(); ?>
                            </div>
                        </div>

                    </div>
        
    </div>
  </div>
</section>
           
 

<?php $this->load->view("bottom"); ?>
