<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"><?php echo $this->translate('Vehicle Details'); ?> </div>
                                <div class="left_panel col-sm-12 padding_margin0" id="add_detail" style="float:left; background:#fff;">
                                    <div class="tab-content tab_editprofile col-sm-12" style="padding-left:0; margin-top:10px; margin-bottom:10px;">
                                        <div class="tab-pane fade in tab_editprofile tab_editprofile1 active">
                                            <div class="change_password tab_editprofile">
                                                <div class="tab-content">
                                                    <div class="tab-pane fade active in">
                                                        <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('vehicle-details', ['action' => 'edit-new-cab']));
                                                            $form->setAttribute('method', 'post');
                                                            $form->setAttribute('id', 'edit-new-cab-form');
                                                            $form->setAttribute('enctype', 'multipart/form-data');
                                                            echo $this->form()->openTag($form);
                                                             echo $this->formHidden($form->get('id'));
                                                            ?>
                                                            <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('vehicle_type'))); ?></label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('vehicle_type')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('vehicle_type'), ['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('vehicle_name'))); ?></label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('vehicle_name')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('vehicle_name'), ['class' => 'error']); ?>
                                                                            <?php echo $this->formElement($form->get('vehicle_model_id')); ?>
                                                                        </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('ignition_type'))); ?></label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('ignition_type')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('ignition_type'), ['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('vehicle_color'))); ?></label>
                                                                        <div class="col-sm-4 col-sm-4-new">


                                                                            <?php echo $this->FormElement($form->get('vehicle_color')); ?>
                                                                 <?php echo $this->FormElementErrors($form->get('vehicle_color'), ['class' => 'error']); ?>
                                                                        </div>
                                                                    </div>

                                                                    <div class="form-group clearfix margintopbottom20">


                                                                        <label class="col-sm-6 control-label labelalign col-sm-3-new" id="point-airport"><?php echo $this->translate('Vechicle Owner'); ?> <span  class="defaultcolor">*</span> </label>


                                                                        <div class="col-md-6 no-padding">
                                                                            <div class="group">
                                                                                <div class="col-sm-12 padding0">
                                                                                    <div class="col-md-5 padding0 margin-left44">
                                                                                        <div class="carbooking">
                                                                                            <input type="radio" name="vehicle_owner" id="owned-cab" value="1">
                                                                                            <label for="owned-cab"><span class="radio"><?php echo $this->translate('Owned'); ?></span></label>
                                                                                            <?php echo $this->formElement($form->get('vehicle_owned_selected')); ?>
                                                                                        </div>
                                                                                    </div>

                                                                                    <div class="col-md-5 margin-left35" >
                                                                                        <div class="form-group-lg form-group-select-plus">
                                                                                            <div class="carbooking">
                                                                                                <input type="radio" name="vehicle_owner" id="attached-cab" value="2">
                                                                                                <label for="attached-cab"><span class="radio"><?php echo $this->translate('Attached'); ?></span></label>
                                                                                                <?php echo $this->formElement($form->get('vehicle_attach_selected')); ?>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>

                                                                    </div>

                                                                    <div class="form-group clearfix margintopbottom20 display-none" id="owner-attached-cab">
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="owner-name"><?php echo $this->translate($this->formLabel($form->get('owner_name'))); ?></label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('owner_name')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('owner_name'), ['class' => 'error']); ?>
                                                                        </div>

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

                                                                    <div class="form-group clearfix margintopbottom20">
                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id=""><?php echo $this->translate($this->formLabel($form->get('vehicle_number'))); ?></label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('vehicle_number')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('vehicle_number'), ['class' => 'error']); ?>
                                                                        </div>

                                                                        <label class="col-sm-3 control-label labelalign col-sm-3-new" id="point_airport"><?php echo $this->translate('Insurance Validity');?> <span  class="defaultcolor">*</span> </label>
                                                                            <div class="col-sm-3 col-sm-4-new">
                                                                                <?php echo $this->FormElement($form->get('insurance_validity')); ?>
                                                                                <?php echo $this->FormElementErrors($form->get('insurance_validity'), ['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('rc_proof'))); ?></label>
                                                                        <div class="col-sm-3 col-sm-4-new">
                                                                            <?php echo $this->FormElement($form->get('rc_proof')); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('rc_proof')); ?>
                                                                        </div>
                                                                    </div>

                                                                    <h4>Feature Information</h4>
                                                                    <div class="form-group clearfix margintopbottom20">
                                                                        <label class="col-sm-2 control-label labelalign"><?php echo $this->translate($this->formLabel($form->get('passengers'))); ?></label>
                                                                        <div class="col-sm-2">
                                                                            <?php echo $this->FormElement($form->get('passengers'), ['class' => 'error']); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('passengers'), ['class' => 'error']); ?>
                                                                        </div>

                                                                        <label class="col-sm-2 control-label labelalign "><?php echo $this->translate($this->formLabel($form->get('large_suitcase'))); ?></label>
                                                                        <div class="col-sm-2">
                                                                            <?php echo $this->FormElement($form->get('large_suitcase'), ['class' => 'error']); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('large_suitcase'), ['class' => 'error']); ?>
                                                                        </div>

                                                                        <label class="col-sm-2 control-label labelalign "><?php echo $this->translate($this->formLabel($form->get('small_suitcase'))); ?></label>
                                                                        <div class="col-sm-2">
                                                                            <?php echo $this->FormElement($form->get('small_suitcase'), ['class' => 'error']); ?>
                                                                            <?php echo $this->FormElementErrors($form->get('small_suitcase'), ['class' => 'error']); ?>
                                                                        </div>

                                                                    </div>

                                                                    <div class="form-group clearfix margintopbottom20">
                                                                        <label class="col-sm-2 control-label labelalign" id=""><?php echo $this->translate('Amenities'); ?>  </label>
                                                                        <div class="col-sm-10 no-padding">
                                                                            <div class="col-sm-8" >
                                                                                <?php echo $this->FormElement($form->get('vehicle_amenities')->setValue($amenitiesList)); ?>
                                                                                <?php echo $this->FormElementErrors($form->get('vehicle_amenities'), ['class' => 'error']); ?>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="right_panel col-sm-2 padding_margin0 pull-right">
                                                                    <div id="">
                                                                        <div id="crop-vehicle" class="margin-top60px">
                                                                            <!-- Current avatar -->
                                                                            <div class="avatar-view userimg_byratio" title="Upload Vehicle Picture" style="cursor:pointer" data-toggle="modal" data-target="#myModaluploadcar">
                                                                                <img src="../../images/a4.jpg" alt="Avatar" class="crop-image" id="profile_pic_update">
                                                                            </div>

                                                                            <div class="avatar-view userimg_byratio pointer no-border text-center" data-toggle="modal" data-target="#myModaluploadcar">Upload Vehicle Pic</div>
                                                                            <!-- Cropping modal -->
                                                                            <div class="modal fade" id="myModaluploadcar" 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">Vehicle Picture</h4>
                                                                                        </div>
                                                                                        <div class="modal-body">
                                                                                            <p>Image: <input name="image" id="fileInput1" 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" />-->

                                                                                            <p><img id="filePreview1" class="display-none"/></p>
                                                                                        </div>
                                                                                        <div class="modal-footer">
                                                                                            <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>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="col-sm-12 " align="right">
                                                                    <a class="reset_btn btn btn-success reset_btn" href="#">
                                                                        <i class="fa fa-retweet"></i>
                                                                        Reset
                                                                    </a>
                                                                    <?php echo $this->FormElement($form->get('add_new_vehicle')); ?>
                                                                </div>
                                                            </div>
                                                            <?php echo $this->form()->closeTag(); ?>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <br>
        </div>
    </div>
</section>
