<script src='https://www.google.com/recaptcha/api.js'></script>
<section id="main_form1" class="padding12top">
    <div class="container">
        <div class="slide-margin">
            <div class="col-sm-12">
                <div class="search-tabs search-tabs-bg search-tabs-nobox search-tabs-lift-top">
                    <div class="tabbable">
                        <div class="tab-content1">
                            <div class="tab-pane fade in active">
                                <div class="row">
                                    <div class="col-md-12 padding0 spanclass signup-border margin-bot5px">
                                        <h2 style="margin-top:0;"><?php //echo $this->usertype;  ?><?php echo $this->translate('Personal Information'); ?></h2>
                                    </div>
                                </div>

                                <div class="row personal-de-mo">
                                    <div class="col-sm-12">
                                        <!-- /.sidebar image start -->

                                        <!-- /.sidebar image end -->
                                        <?php
                                        $form = $this->form;
                                        $form->prepare();
                                        //$form->setAttribute($this->url('driver', ['action' => 'driver-personal-info']));
                                        //$form->setAttribute('action', $this->url('common-user', ['action' => 'personal-info']));
                                        $form->setAttribute('method', 'post');
                                        $form->setAttribute('id', 'personal-registration-form');
                                        echo $this->form()->openTag($form);
                                        ?>
                                        <div class="col-sm-8 col-md-8 col-lg-8 clearfix padding0" id="personal_info">
                                            <!-- <h4>Personal Info</h4>
                                             <input id="image_path0" name="image_path" value="" type="hidden">-->

                                            <!-- /.Driver First Name Starts Here -->
                                            <div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle">Name<span class="mandat_star red_text">*</span></label>
                                                <div class="col-sm-9 padding0">
                                                    <div class="col-sm-6 personla-first-name">
                                                        <?php echo $this->formElement($form->get('first_name')); ?>
                                                        <?php echo $this->formElementErrors($form->get('first_name'), ['class' => 'error']); ?>
                                                    </div>

                                                    <div class="col-sm-6 personla-list-name">
                                                        <?php echo $this->formElement($form->get('last_name')); ?>
                                                        <?php echo $this->formElementErrors($form->get('last_name'), ['class' => 'error']); ?>
                                                        <label id="driver_last_name-error" class="error col-lg-offsets-5" for="driver_last_name" generated="true" ></label>
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- /.Driver First Name Ends Here -->

                                            <!-- /.Fathers Name Starts Here -->
                                            <!--<div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle"><?php echo $this->translate($form->get('father_name')->getLabel()); ?></label>
                                                <div class="col-sm-9 personla-inof-input">
                                                    <?php echo $this->formElement($form->get('father_name')); ?>
                                                </div>
                                            </div>-->
                                            <!-- /.Fathers Name Ends Here -->


                                            <!-- /.Driver Email Starts Here -->
                                            <div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle"><?php echo $this->translate($form->get('email')->getLabel()); ?></label>
                                                <div class="col-sm-9 personla-inof-input">
                                                    <?php echo $this->formElement($form->get('email')); ?>
                                                    <span class="showerror">
                                                        <?php echo $this->formElementErrors($form->get('email'), ['class' => 'error']); ?>
                                                    </span>
                                                    <?php echo $this->formElement($form->get('registration_type')); ?>
                                                    <?php echo $this->formElement($form->get('email_status')); ?>
                                                    <?php echo $this->formElement($form->get('mobile_status')); ?>
                                                    <!--<input id="driver_email2" name="driver_email" class="col-sm-6 col-lg-5 inputfild form-control" value="" type="hidden">-->
                                                </div>
                                            </div>
                                            <!-- /.Driver Email Ends Here -->

                                            <!-- /.Driver Mobile No Starts Here -->
                                            <div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle"><?php echo $this->translate($form->get('contact_no')->getLabel()); ?></label>
                                                <div class="col-sm-9 padding0">
                                                    <div class="col-sm-2">
                                                        <?php echo $this->formElement($form->get('prefix_contact_no')); ?>
                                                    </div>
                                                    <div class="col-sm-10">
                                                        <?php echo $this->formElement($form->get('contact_no')); ?>
                                                        <span class="showerror">
                                                            <?php echo $this->formElementErrors($form->get('contact_no'), ['class' => 'error']); ?>
                                                        </span>
                                                        <!--<input pattern="[0-9]{10,10}" title="Enter valid Mobile No" id="driver_no2" name="dNo" class=" col-sm-6 col-lg-5 inputfild" type="hidden">-->
                                                        <!--<input id="driver_passwd" name="driver_passwd" class="driver_name col-sm-6 col-lg-5 inputfild" value="123456" type="hidden">-->
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- /.Driver Mobile No Ends Here -->

                                            <!-- /.Driver Alt No Starts Here -->
                                            <div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle"><?php echo $this->translate($form->get('alt_contact_no')->getLabel()); ?></label>
                                                <div class="col-sm-9 padding0">
                                                    <div class="col-sm-2">
                                                        <?php echo $this->formElement($form->get('prefix_alt_contact_no')); ?>
                                                    </div>

                                                    <div class="col-sm-10">
                                                        <?php echo $this->formElement($form->get('alt_contact_no')); ?>
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- /.Driver Alt No Ends Here -->
                                            <!--<div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle">Password<span class="mandat_star red_text">*</span></label>
                                                <div class="col-sm-9 personla-inof-input">
                                                    <?php echo $this->formElement($form->get('password')); ?>
                                                    <span class="showerror">
                                                        <?php echo $this->formElementErrors($form->get('password'), ['class' => 'error']); ?>
                                                    </span>
                                                </div>
                                            </div>


                                            <div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle"><?php echo $this->translate('Confirm Password'); ?><span class="mandat_star red_text">*</span></label>
                                                <div class="col-sm-9 personla-inof-input">
                                                    <?php echo $this->formElement($form->get('confirm_password')); ?>
                                                    <span class="showerror">
                                                        <?php echo $this->formElementErrors($form->get('confirm_password'), ['class' => 'error']); ?>
                                                    </span>
                                                </div>
                                            </div>-->

                                            <!-- /.Referenced By Starts Here -->
                                            <!--<div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle"><?php echo $this->translate($form->get('reference_name')->getLabel()); ?></label>
                                                <div class="col-sm-9 personla-inof-input">
                                                    <?php echo $this->formElement($form->get('reference_name')); ?>                                                              <span id="errormsg" class="red_text"></span>
                                                </div>
                                                <?php echo $this->formElement($form->get('referral_by')); ?>
                                            </div>-->
                                            <!-- /.Referenced By Ends Here -->

                                            <!-- /.DOB Starts Here -->
                                            <div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle"><?php echo $this->translate($form->get('dob')->getLabel()); ?></label>
                                                <div class="col-sm-9 personla-inof-input">
                                                    <?php echo $this->formElement($form->get('dob')); ?>
                                                    <?php echo $this->formElementErrors($form->get('dob'), ['class' => 'error']); ?>
                                                    <label id="dreDateOfBirth-error" class="error col-lg-offsets-5" for="dreDateOfBirth" generated="true"></label>
                                                </div>
                                            </div>
                                            <!-- /.DOB Ends Here -->

                                            <!-- /.Gender Starts Here -->
                                            <div class="form-group clearfix spance personal-gender">
                                                <label class="control-label col-sm-3 personal-tytle">Gender<span class="mandat_star red_text"></span></label>
                                                <div class="col-sm-9 padding0">
                                                    <div class="col-sm-6">
                                                        <div class="carbooking margin-left50">
                                                            <input type="radio"  name="gender" value="Male" id="male" checked="checked">
                                                            <label for="male"><span class="radio">Male</span></label>
                                                        </div>
                                                    </div>

                                                    <div class="col-sm-6">
                                                        <div class="carbooking margin-left50">
                                                            <input type="radio"  name="gender" value="FeMale" id="female" >
                                                            <label for="female"><span class="radio">Female</span></label>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- /.Gender Ends Here -->

                                            <!-- /.Residential Address Starts Here -->
                                            <div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle">Residential Address<span class="mandat_star red_text">*</span></label>
                                                <div class="col-sm-9 padding0">
                                                    <div class="col-sm-7">
                                                    <?php echo $this->formElement($form->get('residential_address')); ?>
                                                    <?php echo $this->formElementErrors($form->get('residential_address'), ['class' => 'error']); ?>
                                                    </div>

                                                   <!-- Address proff - comment by Mohit 25-Jan-2020
                                                   <div class="col-sm-5">
                                                    <?php //echo $this->formElement($form->get('residential_proof')); ?>
                                                    <?php //echo $this->formElementErrors($form->get('residential_proof'), ['class' => 'error']); ?>
                                                        <span class="red_text"><small>Upload Your Residential Proof</small></span>
                                                        <div class="loder disable_none" id="driver_resident"></div>
                                                    </div>-->
                                                    <label id="driver_adds-error" class="error col-lg-offsets-5 margin-leftper32 margintop-5" for="driver_adds" generated="true"></label>
                                                </div>
                                            </div>
                                            <!-- /.Residential Address Ends Here -->

                                            <!-- /.Driver City Starts Here -->
                                            <div class="form-group clearfix spance apend_country">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle"><?php echo $this->translate($form->get('city_id')->getLabel()); ?></label>
                                                <div class="col-sm-9 personla-inof-input">
                                                    <?php echo $this->formElement($form->get('city_id')); ?>
                                                    <?php echo $this->formElementErrors($form->get('city_id'), ['class' => 'error']); ?>
                                                    <!--<input name="driver_country" id="driver_country_name_value" type="hidden">-->
                                                    <!--<input name="driver_state" id="driver_state_name_value" type="hidden">-->
                                                    <!--<input name="city" id="driver_city_value" type="hidden">-->
                                                    <?php echo $this->formElement($form->get('city_value')); ?>

                                                </div>
                                            </div>
                                            <!-- /.Driver City Ends Here -->

                                            <!--<div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle"><?php //echo $this->translate($form->get('nationality')->getLabel()); ?></label>
                                                <div class="col-sm-9 personla-inof-input">
                                                    <?php //echo $this->formElement($form->get('nationality')); ?>
                                                    <span class="showerror">
                                                        <?php //echo $this->formElementErrors($form->get('nationality'), ['class' => 'error']); ?>
                                                    </span>
                                                </div>
                                            </div>-->

                                            <!-- /.Driver Pincode Starts Here -->
                                            <div class="form-group clearfix spance">
                                                <label class="control-label col-sm-3 col-lg-3 personal-tytle">Pin Code<span class="mandat_star red_text"></span></label>
                                                <div class="col-sm-9 personla-inof-input">
                                                    <?php echo $this->formElement($form->get('pincode')); ?>
                                                </div>
                                            </div>
                                            <!-- /.Driver Pincode Ends Here -->


                                            <!-- /.Driver Vehicle Starts Here -->
                                            <?php if ($usertype == 'driver' || $usertype == 'vendor') { ?>
                                                <div class="col-sm-12  padding0">
                                                    <h4>Vehicle Detail</h4>


                                                    <!-- /.License State Starts Here -->
                                                    <div class="form-group clearfix spance">
                                                        <label class="control-label col-sm-3 personal-tytle"><?php echo $this->translate($form->get('license_no')->getLabel()); ?></label>
                                                        <div class="col-sm-9 personla-inof-input">
                                                            <?php echo $this->formElement($form->get('license_no')); ?>
                                                            <?php echo $this->formElementErrors($form->get('license_no'), ['class' => 'error']); ?>

                                                        </div>
                                                    </div>
                                                    <!-- /.License State Ends Here -->

                                                    <!-- /.Driver License Starts Here -->
                                                    <div class="form-group clearfix spance">
                                                        <label class="control-label col-sm-3 personal-tytle"><?php echo $this->translate($form->get('license_proof')->getLabel()); ?></label>
                                                        <div class="col-sm-9 personla-inof-input">
                                                            <?php echo $this->formElement($form->get('license_proof')); ?>
                                                            <?php echo $this->formElementErrors($form->get('license_proof'), ['class' => 'error']); ?>
                                                            <span class="red_text"><small>Upload Your License Proof </small></span>
                                                            <div class="fa fa-spinner fa-spin fa-1_5x disable_none" id="driver_badge_loder"></div>
                                                            <div class="loder" style="display:none" id="driver_badge"></div>
                                                            <!--<input id="file_badgeH" name="file_badgeH" type="hidden">-->
                                                        </div>
                                                        <label id="driverBadge-error" class="error col-lg-offsets-5" for="driverBadge" generated="true"></label>
                                                        <!--<input name="user_role" id="user_role" value="4" type="hidden">-->
                                                    </div>
                                                    <!-- /.Driver License Ends Here -->


                                                    <!-- Police Verification Starts Here -->
                                                    <div class="form-group clearfix spance">
                                                        <label class="control-label col-sm-3 personal-tytle"><?php echo $this->translate($form->get('license_proof')->getLabel()); ?></label>
                                                        <div class="col-sm-9 personla-inof-input">
                                                            <?php echo $this->formElement($form->get('police_proof')); ?>
                                                            <?php echo $this->formElementErrors($form->get('police_proof'), ['class' => 'error']); ?>
                                                            <span class="red_text"><small>Upload Police Verification </small></span>
                                                            <div class="fa fa-spinner fa-spin fa-1_5x disable_none" id="driver_badge_loder"></div>
                                                            <div class="loder" style="display:none" id="driver_badge"></div>
                                                        </div>
                                                        <label id="driverBadge-error" class="error col-lg-offsets-5" for="driverBadge" generated="true"></label>

                                                    </div>
                                                    <!-- Police Verification Ends Here -->

                                                <?php } ?>
                                                <div class="form-group clearfix spance">
                                                    <label class="control-label col-sm-3 personal-tytle">Captcha <span class="mandat_star red_text">*</span></label>

                                                <!--<p class="refresh_captcha"> <?php //echo $this->formElement($form->get('captcha'));  ?>
                                                    <input type="button" id="refreshcaptcha" value="refresh">
                                                    <?php //echo $this->formElementErrors($form->get('captcha'), ['class' => 'error']); ?>
                                                </p>-->
                                                    <div class="col-sm-9 personla-inof-input">
                                                        <div class="g-recaptcha" data-sitekey="<?php echo $captchaKey; ?>"></div>
                                                        <div class="error"><?php echo $this->error; ?></div>

                                                    </div>




                                                </div>

                                                <?php if ($usertype == 'guide') { ?>
                                                    <div class="form-group clearfix spance">
                                                        <label class="control-label col-sm-3"><?php echo $this->translate($form->get('guide_certificate')->getLabel()); ?></label>
                                                        <div class="col-sm-9">
                                                            <?php echo $this->formElement($form->get('guide_certificate')); ?>
                                                            <?php echo $this->formElementErrors($form->get('guide_certificate'), ['class' => 'error']); ?>
        <!--                                                        <span style="font-weight:bold;color: indianred;"><small>Upload Your RC Proof </small></span>                                                        -->
                                                        </div>
                                                    </div>
                                                <?php } ?>

                                               

                                                <div class="col-lg-12">

                                                    <?php echo $this->FormElement($form->get('driver_personal_detail')); ?>
                                                </div>
                                            </div>
                                            <?php echo $this->form()->openTag($form); ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>