<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-sm-12">
            <div class="tabbable">
                <div class="tab-content no-border padding-24">
                    <div class="tab-pane fade in active" id="faq-tab-1">
                        <div class="space-8"></div>
                        <div class="panel-group accordion-style1 accordion-style2" id="faq-list-1">
                            <div class="panel panel-default">
                                <div class="panel-headingnew">Company Details</div>


                                <div class="left_panel col-sm-12 padding_margin0 pull-left bg-white" id="add_detail">



                                    <ul class="nav nav-tabs nav-tabs1 tab_ul col-sm-2 paddig-right0 margin-top15px">
                                        <?php echo $this->partial('menu.phtml'); ?>
                                    </ul>

                                    <div class="tab-content tab_editprofile col-sm-10 padding-left0 marginbott10px margintop10px">
                                        <div id="home" class="tab-pane fade in tab_editprofile tab_editprofile1 active">
                                            <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' => 'company-detail']));
                                                            echo $this->form()->openTag($form);
                                                            echo $this->formHidden($form->get('user_id'));
                                                            echo $this->formHidden($form->get('id'));
                                                            ?>
                                                            <?php if (!empty($msg_class)) { ?><span class="checkbox_error"><div class="alert alert-<?php echo $msg_class; ?> no-border"><button type="button" class="close" data-dismiss="alert"><i class="icon-close2" ></i><span class="sr-only">Close</span></button><span class="text-semibold"><?php echo $msg; ?></span></div></span><?php } ?>
                                                            <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($this->formLabel($form->get('company_name'))); ?>
                                                                        </label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('company_name')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('company_name'), ['class' => 'error']); ?>
                                                                        </div>
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('state_name'))); ?>
                                                                        </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')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('state_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($this->formLabel($form->get('company_address'))); ?>
                                                                        </label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('company_address')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('company_address'), ['class' => 'error']); ?>
                                                                        </div>
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new"> <?php echo $this->translate($this->formLabel($form->get('office_proof'))); ?></label>
                                                                        <div class="col-sm-4 col-sm-4-new">                    
                                                                            <?php echo $this->FormElement($form->get('office_proof')); ?>                  
                                                                            <?php echo $this->formElementErrors($form->get('office_proof'), ['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($this->formLabel($form->get('city_name'))); ?>
                                                                        </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')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('city_name'), ['class' => 'error']); ?>
                                                                        </div>

                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('pincode'))); ?>
                                                                        </label>
                                                                        <div class="col-sm-4 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('pincode')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('pincode'), ['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($this->formLabel($form->get('service_tax_gst'))); ?></label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('service_tax_gst')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('service_tax_gst'), ['class' => 'error']); ?>
                                                                        </div>
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new">GST Proof</label>
                                                                        <div class="col-sm-4 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('gst_proof')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('gst_proof'), ['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($this->formLabel($form->get('pancard_no'))); ?></label>
                                                                        <div class="col-sm-4 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('pancard_no')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('pancard_no'), ['class' => 'error']); ?>
                                                                        </div>  
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new">PAN Proof</label>
                                                                        <div class="col-sm-4 col-sm-4-new">        
                                                                            <?php echo $this->FormElement($form->get('company_pancard_proof')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('company_pancard_proof'), ['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($this->formLabel($form->get('contact_person_name'))); ?>
                                                                        </label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('contact_person_name')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('contact_person_name'), ['class' => 'error']); ?>
                                                                        </div>

                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('landline_no'))); ?>
                                                                        </label>
                                                                        <div class="col-sm-4 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('landline_no')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('landline_no'), ['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($this->formLabel($form->get('mobile_no'))); ?>
                                                                        </label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('mobile_no')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('mobile_no'), ['class' => 'error']); ?>
                                                                        </div>

                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('email'))); ?>
                                                                        </label>
                                                                        <div class="col-sm-4 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('email')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('email'), ['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($this->formLabel($form->get('website_url'))); ?>
                                                                        </label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('website_url')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('website_url'), ['class' => 'error']); ?>
                                                                        </div>

                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('logo'))); ?>
                                                                        </label>
                                                                        <div class="col-sm-4 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('logo')); ?>
                                                                            <?php echo $this->formElementErrors($form->get('logo'), ['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 class="col-sm-3 col-sm-4-new " align="right">
                                                                            <?php echo $this->FormReset($form->get('company_reset')); ?>
                                                                            <?php //echo $this->msg;?>
                                                                            <?php echo $this->FormElement($form->get('company_save')); ?>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <?php echo $this->form()->closeTag(); ?>
                                                            <!--</div>-->

                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <br>
                    <!-- /.widget-box -->
                </div>
            </div>
        </div>
    </div>
    <!-- /.col -->
</section>



<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>