<div class="page-content" >
    
    
<div class="row">

    <div class="col-xs-12 col-sm-12">
        <div class="widget-box">
            
            
            <div class="widget-body "> 
            
                 <?php
                                $message = $this->session->userdata('message');
                                if (!empty($message)) {
                                    ?>
                                    <div class="alert alert-block alert-success">
                                        <h6 class="lighter arial green" style="text-align:center;"><b>
                                                <?php echo $message;
                                                $this->session->unset_userdata('message');
                                                ?>
                                            </b></h6>
                                    </div>  
                                    <?php
                                }
                                $errormessage = $this->session->userdata('errormessage');
                                if (!empty($errormessage)) {
                                    ?>
                                    <div class="alert alert-block alert-danger">
                                        <h6 class="lighter arial red" style="text-align:center;"><b>
                                                <?php echo $errormessage;
                                                $this->session->unset_userdata('errormessage');
                                                ?>
                                            </b></h6>
                                    </div> 
                                    <?php
                                }
                                ?>
                
                <div class="widget-main no-padding ">
                <form action="<?php echo customer_url() ?>/home/updateProfile" method="post" enctype="multipart/form-data">
                
               
                <div class="alert alert-block alert-info">
                    <h4 class="lighter arial red" style="text-align:center;"><b>Edit Customer Information</b></h4>
                </div>
                    
                        <!-- <legend>Form</legend> -->
                       <!-- <fieldset class="col-xs-11 col-sm-11">
                            <label class="col-xs-2 col-sm-2">  Name </label>
                            <?php //echo form_error('data[applicant_name]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            <input type="text" name="data[applicant_name]" autocomplete="off" value="<?php //if(!empty($customerById['applicant_name'])) {echo $customerById['applicant_name']; }?>"  placeholder="Applicant Name"  class="col-xs-8 col-sm-8" />
                            <input type="hidden" name="id" autocomplete="off" value="<?php if(!empty($customerById['id'])) {echo $customerById['id']; }?>"  placeholder="id"  class="col-xs-10 col-sm-10" />
                        </fieldset> -->

                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Mobile </label>
                            <?php echo form_error('data[mobile]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            <input type="text"  name="data[mobile]" autocomplete="off" value="<?php if(!empty($customerById['mobile'])) {echo $customerById['mobile']; }?>" placeholder="Mobile No" class="col-xs-4 col-sm-4" />
                           <input type="hidden" name="id" autocomplete="off" value="<?php if(!empty($customerById['id'])) {echo $customerById['id']; }?>"  placeholder="id"  class="col-xs-10 col-sm-10" />
                        </fieldset>
                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Email </label>
                            <?php echo form_error('data[email]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            <input type="email" name="data[email]" autocomplete="off" value="<?php if(!empty($customerById['email'])) {echo $customerById['email']; }?>" placeholder="abc@email.com" class="col-xs-4 col-sm-4" />
                           
                        </fieldset>

                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Upload photo </label>
                            <?php echo form_error('data[photo]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            
                           <input type="file"  name="photo"  value="<?php if(!empty($customerById['photo'])) {echo $customerById['photo']; }?>"class="widget-box col-xs-4 col-sm-4" />
                          
                        </fieldset>
                       
     
                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Present Address </label>
                            <?php echo form_error('data[presentAddress]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            
                           <textarea rows='5' cols="5" name="data[presentAddress]" class="col-xs-4 col-sm-4" ><?php if(!empty($customerById['presentAddress'])) {echo $customerById['presentAddress']; }?></textarea> 
                        </fieldset>
                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Parmanent Address </label>
                            <?php echo form_error('data[permanentAddress]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            
                           <textarea rows='5' cols="5" name="data[permanentAddress]" class="col-xs-4 col-sm-4" ><?php if(!empty($customerById['permanentAddress'])) {echo $customerById['permanentAddress']; }?></textarea> 
                        </fieldset>
                        
                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Office </label>
                            <?php echo form_error('data[office]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            
                           <textarea rows='5' cols="5" name="data[office]" class="col-xs-4 col-sm-4" ><?php if(!empty($customerById['office'])) {echo $customerById['office']; }?></textarea> 
                        </fieldset>

                 
                        <div class="clearfix"></div>
                        <div class="alert alert-block alert-info">
                            <h4 class="lighter arial red" style="text-align:center;"><b>Nominee's Information</b></h4>
                        </div>
                        

                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Email </label>
                            <?php echo form_error('data[nominee_email]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            <input type="email"  name="data[nominee_email]" autocomplete="off" value="<?php if(!empty($customerById['nominee_email'])) {echo $customerById['nominee_email']; }?>" placeholder="abc@email.com" class="col-xs-4 col-sm-4" />
                           
                        </fieldset>
                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2">  Address </label>
                            <?php echo form_error('data[address]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            
                           <textarea rows='5' cols="5" name="data[address]" class="col-xs-4 col-sm-4" ><?php if(!empty($customerById['address'])) {echo $customerById['address']; }?></textarea> 
                        </fieldset>
                        
                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Mobile </label>
                            <?php echo form_error('data[nominee_mobile]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            <input type="text"  name="data[nominee_mobile]" autocomplete="off" value="<?php if(!empty($customerById['nominee_mobile'])) {echo $customerById['nominee_mobile']; }?>" placeholder="Mobile No" class="col-xs-4 col-sm-4" />
                           
                        </fieldset>
                        <fieldset class="col-xs-12 col-sm-12">
                            <label class="col-xs-2 col-sm-2"> Nominee phone </label>
                            <?php echo form_error('data[nominee_phone]', '<div style="color: rgb(255, 0, 0);">', '</div>'); ?>
                            <input type="text"  name="data[nominee_phone]" autocomplete="off" value="<?php if(!empty($customerById['nominee_phone'])) {echo $customerById['nominee_phone']; }?>" placeholder="nominee_phone" class="col-xs-4 col-sm-4" />
                           
                        </fieldset>
                        
                        

                        

                        
                        
                        <div class="clearfix"></div>
                   
                        <div class="form-actions center">
                            <button type="submit" name="btnUpdate" class="btn btn-sm btn-success">
                                 <i class="ace-icon fa fa-check bigger-110"></i>
                                Update
                                
                            </button>
                            
                           
                        </div>
                    </form>
                  
                        </div>
                
            </div>
        </div>
    </div></div></div>


                                


