<div class="change_password tab_editprofile">
    <div class="tab-content" id="myTabContent">
        <div id="home" class="tab-pane fade active in">
            <div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">
                <?php
                    $form = $this->form;
                    $form->prepare();
                    $form->setAttribute('action', $this->url('usermanagement', ['action' => 'edit-user-detail']));
                    $form->setAttribute('method', 'post');
                    $form->setAttribute('id', 'personal-detail-form');
                    echo $this->form()->openTag($form);
                ?>
                <div class="row">
                    <div class="col-sm-10">
                        <div class="form-group clearfix margintopbottom20">
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="Categorie Name"><?php echo $this->translate('First Name');?><span  class="defaultcolor">*</span></label>
                            <div class="col-sm-3 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('first_name')); ?>
                                <?php echo $this->formElementErrors($form->get('first_name'), ['class' => 'error']); ?>
                            </div>
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Last Name');?><span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-3 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('last_name')); ?>
                                <?php echo $this->formElementErrors($form->get('last_name'), ['class' => 'error']); ?>
                            </div>
                        </div>

                        <div class="form-group clearfix margintopbottom20">
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Father\'s Name');?><span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-3 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('father_name')); ?>
                                <?php echo $this->formElementErrors($form->get('father_name'), ['class' => 'error']); ?>
                            </div>

                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Email ID');?>  </label>
                            <div class="col-sm-4 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('email')); ?>
                            </div>
                        </div>

                        <div class="form-group clearfix margintopbottom20">
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Email Verified');?><span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-3 col-sm-4-new">
                                <label class="booking-check">
                                    <?php echo $this->FormElement($form->get('email_verified')); ?>
                                    <span class="checkmark"></span>
                                </label>
                            </div>

                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Mobile Number');?>*  </label>
                            <div class="col-sm-4 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('mobile')); ?>
                            </div>
                        </div>

                        <div class="form-group clearfix margintopbottom20">
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Phone Number');?><span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-3 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('landline_number')); ?>
                            </div>

                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Phone Number Verified');?> </label>
                            <div class="col-sm-4 col-sm-4-new">
                                <label class="booking-check">
                                    <?php// echo $this->FormElement($form->get('phone_number_verified')); ?>
                                    <span class="checkmark"></span>
                                </label>
                            </div>
                        </div>

                        <div class="form-group clearfix margintopbottom20">
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('External Reference');?> <span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-3 col-sm-4-new">
                                <?php //echo $this->FormElement($form->get('external_reference')); ?>
                            </div>

                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Date Of Birth');?> <span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-4 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('dob')); ?>
                                <?php echo $this->formElementErrors($form->get('dob'), ['class' => 'error']); ?>
                            </div>
                        </div>

                        <div class="form-group clearfix margintopbottom20">
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Gender');?> <span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-3 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('gender')); ?>
                                <?php echo $this->formElementErrors($form->get('gender'), ['class' => 'error']); ?>
                            </div>

                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Address');?> <span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-4 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('address')); ?>
                                <?php echo $this->formElementErrors($form->get('address'), ['class' => 'error']); ?>
                            </div>
                        </div>

                        <div class="form-group clearfix margintopbottom20">
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('State');?> <span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-3 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('state_name')); ?>
                                <?php echo $this->formElementErrors($form->get('state_name'), ['class' => 'error']); ?>
                                <?php echo $this->formElement($form->get('state_value')); ?>
                            </div>

                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('City');?> <span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-4 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('city_name')); ?>
                                <?php echo $this->formElementErrors($form->get('city_name'), ['class' => 'error']); ?>
                                <?php echo $this->formElement($form->get('city_value')); ?>
                            </div>
                        </div>

                        <div class="form-group clearfix margintopbottom20">
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('KYC');?> <span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-3 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('kyc')); ?>
                                <?php echo $this->formElementErrors($form->get('kyc'), ['class' => 'error']); ?>
                            </div>

                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('KYC Upload');?> <span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-4 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('kyc_upload')); ?>
                                <?php echo $this->formElementErrors($form->get('kyc_upload'), ['class' => 'error']); ?>
                            </div>
                        </div>

                        <div class="form-group clearfix margintopbottom20">
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Pin Code');?> <span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-3 col-sm-4-new">
                                <?php echo $this->FormElement($form->get('pincode')); ?>
                                <?php echo $this->formElementErrors($form->get('pincode'), ['class' => 'error']); ?>
                            </div>

                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Company Name');?> <span  class="defaultcolor">*</span> </label>
                            <div class="col-sm-4 col-sm-4-new">
                                <?php //echo $this->FormElement($form->get('company_name')); ?>
                                <?php //echo $this->formElementErrors($form->get('company_name'), ['class' => 'error']); ?>
                            </div>
                        </div>

                        <div class="form-group clearfix margintopbottom20">
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="">  </label>
                            <div class="col-sm-4 col-sm-4-new">
                            </div>
                            <label class="col-sm-3 control-label labelalign col-sm-3-new" id="update_profiel"></label>
                        </div>
                    </div>

                    <div class="right_panel col-sm-2 padding_margin0" style="float:right;">
                        <div id="">
                            <div id="crop-avatar">
                                <!-- Current avatar -->
                                <div class="avatar-view userimg_byratio" title="Upload Profile Picture">
                                    <a href="#"  data-toggle="modal" data-target="#myModalupload">
                                        <img src="images/a4.jpg" alt="Avatar" class="crop-image" id="profile_pic_update">
                                    </a>
                                </div>

                                <div class="avatar-view userimg_byratio pointer no-border text-center "  data-toggle="modal" data-target="#myModalupload" >Upload Profile Pic</div>

                                <!-- Cropping modal -->
                                <div class="modal fade" id="myModalupload" tabindex="-1" role="dialog" aria-labelledby="avatar-modal-label" aria-hidden="true">
                                    <div class="modal-dialog modal-lg">
                                        <div class="modal-content">
                                            <form action="upload.php" enctype="multipart/form-data" method="post" onsubmit="return checkCoords();">
                                                <div class="modal-header">

                                                    <h4 class="modal-title" id="avatar-modal-label" >Profile Picture</h4>
                                                </div>

                                                <div class="modal-body">

                                                    <p>Image: <input name="image" id="fileInput" size="30" type="file" /></p>
                                                    <input type="hidden" id="x" name="x" />
                                                    <input type="hidden" id="y" name="y" />
                                                    <input type="hidden" id="w" name="w" />
                                                    <input type="hidden" id="h" name="h" />
                                                    <!--<input name="upload" type="submit" class="btn btn-primary" value="Upload" />-->

                                                    <p><img id="filePreview" class="disable_none"/></p>
                                                </div>
                                                <div class="modal-footer">
                                                    <!--<button class="btn btn-primary avatar-save col-sm-2 pull-right" type="submit" style="margin-left:10px;">Save</button>-->
                                                    <input name="upload" type="submit" class="btn btn-primary pull-right" value="Upload" />
                                                    <button class="btn btn-default col-sm-2 pull-right" type="button" data-dismiss="modal">Close</button>

                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                                <!-- /.modal -->
                                <!-- Loading state -->
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-10  " align="right">
                        <?php echo $this->FormElement($form->get('submit_type')); ?>
                        <a class="reset_btn btn btn-success btn-new-vehile" href="#"><i class="fa fa-retweet"></i>Reset</a>
                        <?php echo $this->FormElement($form->get('profile_submit')); ?>
                    </div>
                </div>
                <?php echo $this->form()->closeTag(); ?>
            </div>
        </div>
    </div>
</div>