<!--<div style="margin: 10px auto 0px !important;padding: 0 10px;" class="col-sm-col-sm-offset-1">-->
    <?php
        $form = $this->form;
        $form->prepare();
        //$form->setAttribute('action', $this->url('local-hire', ['action' => 'index']));
        $form->setAttribute('method', 'post');
        //$form->setAttribute('id', 'personal-detail-form');
        $form->setAttributes(['name'=>'company_detail_form', 'id'=>'company-detail-form',
        'onsubmit'=>"return formSubmit10('company-detail-form','/vehicle-details/company-detail')"]);
        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('Company Name');?> <span  class="defaultcolor">*</span></label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('company_name')); ?>
                </div>
                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Terms Accepted On');?> <span  class="defaultcolor">*</span> </label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('terms_accepted_on')); ?>
                </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('Office Address');?> <span  class="defaultcolor">*</span> </label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('office_address')); ?>
                </div>

                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('State');?>  </label>
                <div class="col-sm-4 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('state_name')); ?>
                    <?php echo $this->formElement($form->get('state_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('City');?> <span  class="defaultcolor">*</span> </label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('city_name')); ?>
                    <?php echo $this->formElement($form->get('city_value')); ?>
                </div>

                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Pin Code');?> </label>
                <div class="col-sm-4 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('pincode')); ?>
                </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('Services Tax/GST');?> <span  class="defaultcolor">*</span> </label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('service_tax_gst')); ?>
                </div>

                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Pan Card Details');?>* </label>
                <div class="col-sm-4 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('pancard_detail')); ?>
                </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('Contact Person');?> <span  class="defaultcolor">*</span> </label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('contact_person')); ?>
                </div>

                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Phone Number');?>* </label>
                <div class="col-sm-4 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('phone_number')); ?>
                </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('Mobile Number');?> <span  class="defaultcolor">*</span> </label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('mobile_number')); ?>
                </div>

                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Email');?>* </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('Website');?> <span  class="defaultcolor">*</span> </label>
                <div class="col-sm-3 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('website')); ?>
                </div>

                <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Logo');?> </label>
                <div class="col-sm-4 col-sm-4-new">                    
                    <?php echo $this->FormElement($form->get('logo')); ?>
                </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 class="col-sm-3 col-sm-4-new " align="right">

                    <!--<a class="reset_btn btn btn-success btn-new-vehile" href="#">-->

                    <?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->msg;?>
                    <!--<button type="button" class="save_data_btn btn btn-primary btn-new-vehile butoon_save btn-warning" >Save</button>-->
                    <?php echo $this->FormElement($form->get('company_save')); ?>
                </div>
            </div>
        </div>
    </div>
    <?php echo $this->form()->closeTag(); ?>
<!--</div>-->

<script>
//state name called...
$("#state-name").autocomplete({
    source: function (request, response) {
        $.ajax({
            url: '/profile/state-list',
            dataType: "json",
            type: "POST",
            data: {
                term: request.term
            },
            success: function (data) {
                response(data);
            }
        });
    },
    min_length: 3,
    delay: 300,

    focus: function (event, ui) {
        $("#state-aa").val(ui.item.label);
        return false;
    },
    select: function (event, ui) {
        $("#state-name").val(ui.item.label);
        $("#state-value").val(ui.item.value);

        return false;
    }
}); 

$("#city-name").autocomplete({
    source: function (request, response) {
        $.ajax({
            url: '/profile/city-list',
            dataType: "json",
            type: "POST",
            data: {
                term: request.term
            },
            success: function (data) {
                response(data);
            }
        });
    },
    min_length: 3,
    delay: 300,
    focus: function (event, ui) {
        $("#cityaa").val(ui.item.label);
        return false;
    },
    select: function (event, ui) {
        $("#city-name").val(ui.item.label);
        $("#city-value").val(ui.item.value);
        return false;
    }
});
</script>