<!--find data start-->
<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 class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">

                <div class="row">

                    <div class="col-sm-12" >
                        <fieldset class=""><legend><?php echo $this->translate('General Configuration'); ?></legend><span class="top-go clearfix"><a href="#topGo" title="Click To Go Top" class="btn btn-blue btn-xs pull-right"><i class="fa fa-chevron-up"></i></a></span>

                            <div class="form-group clearfix margintopbottom20">
                                <label class="col-sm-2 col-xs-12 control-label" for="package_type">
                                    <?php echo $this->translate($this->formLabel($form->get('tours_type'))); ?>
                                </label>
                                <div class="col-sm-4 col-xs-10">
                                    <?php echo $this->FormElement($form->get('tours_type')); ?>
                                    <?php echo $this->formElementErrors($form->get('tours_type'), ['class' => 'error']); ?>

                                </div>                   
                            </div>

                            <div class="form-group clearfix margintopbottom20">
                                <label class="col-sm-2 col-xs-12 control-label" for="destination_country">
                                    <?php echo $this->translate($this->formLabel($form->get('destination_country'))); ?>
                                </label>
                                <div class="col-sm-4 col-xs-10">

                                    <?php echo $this->FormElement($form->get('destination_country')); ?>
                                    <?php echo $this->formElementErrors($form->get('destination_country'), ['class' => 'error']); ?>
                                </div>
                                <label class="col-sm-2 col-xs-12 control-label" for="destination_city">
                                <?php echo $this->translate($this->formLabel($form->get('destination_city'))); ?>
                                </label>
                                <div class="col-sm-4 col-xs-10">

                                    <?php echo $this->FormElement($form->get('destination_city')); ?>
                                    <?php echo $this->formElementErrors($form->get('destination_city'), ['class' => 'error']); ?>
                                    <?php echo $this->FormElement($form->get('destination_city_id')); ?>

                                </div>

                            </div>

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



                                <label class="col-sm-2 col-xs-12 control-label" for="destination_post_code">
                                <?php echo $this->translate($this->formLabel($form->get('destination_post_code'))); ?>    
                                </label>
                                <div class="col-sm-4 col-xs-10">
                                  
                                    <?php echo $this->FormElement($form->get('destination_post_code')); ?>
                                    <?php echo $this->formElementErrors($form->get('destination_post_code'), ['class' => 'error']); ?>
                                
                                </div>

                                <label class="col-sm-2 col-xs-12 control-label" for="tour_name"> 
                                    <?php echo $this->translate($this->formLabel($form->get('tour_name'))); ?>
                                </label>
                                <div class="col-sm-4 col-xs-10">
                                    
                                    <?php echo $this->FormElement($form->get('tour_name')); ?>
                                    <?php echo $this->formElementErrors($form->get('tour_name'), ['class' => 'error']); ?>
                               
                                </div>

                            </div>



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



                                <label class="col-sm-2 col-xs-12 control-label" for="tours_operator">
                                    <?php echo $this->translate($this->formLabel($form->get('tours_operator'))); ?>
                                </label>
                                <div class="col-sm-4 col-xs-10">
                                    <?php echo $this->FormElement($form->get('tours_operator')); ?>
                                    <?php echo $this->formElementErrors($form->get('tours_operator'), ['class' => 'error']); ?>
                                    


                            </div>

                        </fieldset>

                        <fieldset class="">
                            <legend><?php echo $this->translate('Primary Information'); ?></legend>
                            <span class="top-go clearfix">
                                <a href="#topGo" title="Click To Go Top" class="btn btn-blue btn-xs pull-right"><i class="fa fa-chevron-up"></i></a>
                            </span>


                            <div class="form-group clearfix margintopbottom20">
                                <label class="col-sm-2 col-xs-12 control-label" for="start_city">
                                    <?php echo $this->translate($this->formLabel($form->get('start_city'))); ?>
                                </label>
                                <div class="col-sm-4 col-xs-10">
                                    
                                     <?php echo $this->FormElement($form->get('start_city')); ?>
                                    <?php echo $this->formElementErrors($form->get('start_city'), ['class' => 'error']); ?>
                                    <?php echo $this->FormElement($form->get('start_city_id')); ?>
                                    
                                </div>
                                <label class="col-sm-2 col-xs-12 control-label" for="end_city">
                                    <?php echo $this->translate($this->formLabel($form->get('end_city'))); ?>
                                </label>
                                <div class="col-sm-4 col-xs-10">
                                    <?php echo $this->FormElement($form->get('end_city')); ?>
                                    <?php echo $this->formElementErrors($form->get('end_city'), ['class' => 'error']); ?>
                                    <?php echo $this->FormElement($form->get('end_city_id')); ?>
                                </div>
                            </div>

                            <div class="form-group clearfix margintopbottom20">
                                <label class="col-sm-2 col-xs-12 control-label" for="destination_covered">
                                    <?php echo $this->translate($this->formLabel($form->get('destination_covered'))); ?>
                                </label>
                                <div class="col-sm-4 col-xs-10">
                                    
                                      <?php echo $this->FormElement($form->get('destination_covered')); ?>
                                 <?php echo $this->formElementErrors($form->get('destination_covered'), ['class' => 'error']); ?>
                                    <?php echo $this->FormElement($form->get('destination_covered_id')); ?>
                                </div>
                                <label class="col-sm-2 col-xs-12 control-label" for="inclusion">
                                    <?php echo $this->translate($this->formLabel($form->get('inclusion[]'))); ?>
                                </label>
                                <div class="col-sm-4 col-xs-10">
                                    
                                    
                                    <?php echo $this->FormElement($form->get('inclusion[]')); ?>
                                    <?php echo $this->formElementErrors($form->get('inclusion[]'), ['class' => 'error']); ?>
                                </div>
                            </div>


                            <div class="form-group clearfix margintopbottom20">
                                <label class="col-sm-2 col-xs-12 control-label" for="theme">
                                    <?php echo $this->translate($this->formLabel($form->get('theme[]'))); ?>    
                                </label>
                                <div class="col-sm-4 col-xs-10">
                                    
                                    <?php echo $this->FormElement($form->get('theme[]')); ?>
                                    <?php echo $this->formElementErrors($form->get('theme[]'), ['class' => 'error']); ?>
                                    
                                </div>
                                <label class="col-sm-2 col-xs-12 control-label" for="traveler">
                                    <?php echo $this->translate($this->formLabel($form->get('traveler'))); ?>
                                </label>
                                <div class="col-sm-4 col-xs-10">
                                    <?php echo $this->FormElement($form->get('traveler')); ?>
                                    <?php echo $this->formElementErrors($form->get('traveler'), ['class' => 'error']); ?>
                                    
                                </div>
                            </div>

                            <div class="form-group clearfix margintopbottom20">
                                <label class="col-sm-2 col-xs-12 control-label" for="package_validity">
                                    <?php echo $this->translate('Package Validity'); ?>:<span class="required">*</span>
                                </label>
                                <div class="col-sm-4 col-xs-10 no-padding">
                                    
                            <div class="col-sm-6"><?php echo $this->FormElement($form->get('package_validity_from')); ?>
                            <?php echo $this->formElementErrors($form->get('package_validity_from'), ['class' => 'error']); ?>
                            </div>
                                    
                            <div class="col-sm-6">  <?php echo $this->FormElement($form->get('package_validity_to')); ?>
                              <?php echo $this->formElementErrors($form->get('package_validity_to'), ['class' => 'error']); ?>
                          </div>
                                </div>
                                <label class="col-sm-2 col-xs-12 control-label" for="booking_validity">
                                    <?php echo $this->translate('Booking Validity'); ?>:<span class="required">*</span>
                                </label>
                                <div class="col-sm-4 col-xs-10 no-padding">
                                    <div class="col-sm-6"><?php echo $this->FormElement($form->get('booking_validity_from')); ?>
                                    <?php echo $this->formElementErrors($form->get('booking_validity_from'), ['class' => 'error']); ?>
                                    </div>
                                    
                                  <div class="col-sm-6">  <?php echo $this->FormElement($form->get('booking_validity_to')); ?>
                                    <?php echo $this->formElementErrors($form->get('booking_validity_to'), ['class' => 'error']); ?>
                                </div>
                                </div>
                            </div>

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

                                <label class="col-sm-2 col-xs-12 control-label" for="tour_code">
                                    <?php echo $this->translate($this->formLabel($form->get('tour_code'))); ?>
                                </label>
                               
                                <div class="col-sm-4 col-xs-10"><?php echo $this->FormElement($form->get('tour_code')); ?>
                                    <?php echo $this->formElementErrors($form->get('tour_code'), ['class' => 'error']); ?></div>
                                
                        <label class="col-sm-2 col-xs-12 control-label" for="site_title">
                            <?php echo $this->translate('Rating'); ?>:<span class="required">*</span>
                        </label>
                                <div class="col-sm-4 col-xs-10">
            <fieldset class="rating">
                
        <input type="radio" id="star5" name="rating" value="5" />
        <label class= "full" for="star5" title="Awesome"></label>
        
        <input type="radio" id="star4" name="rating" value="4" />
        <label class= "full" for="star4" title="Pretty Good"></label> 
        
        <input type="radio" id="star3" name="rating" value="3" />
        <label class= "full" for="star3" title="Better"></label>
        
        <input type="radio" id="star2" name="rating" value="2" />
        <label class= "full" for="star2" title="Very Good"></label>
        
        <input type="radio" id="star1" name="rating" value="1" />
        <label class= "full" for="star1" title="Good"></label>
                
            </fieldset>
                                </div>

                            </div>     



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

                                <label class="col-sm-2 col-xs-12 control-label" for="number_of_nights">
                                    <?php echo $this->translate($this->formLabel($form->get('number_of_nights'))); ?>
                                </label>
                                
                                <div class="col-sm-4 col-xs-10"><?php echo $this->FormElement($form->get('number_of_nights')); ?>
                                    <?php echo $this->formElementErrors($form->get('number_of_nights'), ['class' => 'error']); ?></div>
                                
                                <label class="col-sm-2 col-xs-12 control-label" for="number_of_days">
                                     <?php echo $this->translate($this->formLabel($form->get('number_of_days'))); ?>
                                </label>
                                
                                <div class="col-sm-4 col-xs-10"><?php echo $this->FormElement($form->get('number_of_days')); ?>
                                    <?php echo $this->formElementErrors($form->get('number_of_days'), ['class' => 'error']); ?>
                                </div>


                            </div>
                            
                             <div class="form-group clearfix margintopbottom20">
                                <label class="col-sm-2 col-xs-12 control-label" for="tour_type"><?php echo $this->translate('Tour Type'); ?>:<span class="required">*</span></label>
                                <div class="col-sm-8 col-xs-10 no-padding no-padding">  
                                    <div class="col-sm-4">

                <div class="carbooking">
                    <input type="radio" name="tour_type" id="private-tour" value="1" checked="true">
                    <label for="private-tour" class="font-normal">
                     <span class="radio"><?php echo $this->translate('Private Tour'); ?></span>
                    </label>
                </div>                                

                                    </div>
                                    <div class="col-sm-6"> 

                                        <div class="carbooking">
                                            <input type="radio" name="tour_type" id="group-tour" value="2">
                                                <label for="group-tour" class="font-normal">
                                                <span class="radio"><?php echo $this->translate('Group Tour'); ?></span>
                                            </label>
                                        </div>

                                    </div>  

                                </div>


                            </div>


                            <div class="form-group clearfix margintopbottom20 fixed-tour display-none">
                                <label class="col-sm-2 col-xs-12 control-label" for="departure"> 
                                   <?php echo $this->translate('Departure'); ?>:<span class="required">*</span>
                                </label>
                                <div class="col-sm-4 col-xs-10 no-padding">  
                                    <div class="col-sm-6">
                                        <?php echo $this->FormElement($form->get('departure_date[]')); ?>
                                    </div>
                                    <div class="col-sm-6">                                  
                                        <?php echo $this->FormElement($form->get('departure_time[]')); ?>                                
                                    </div>                               
                                </div>

                                <div class="col-sm-1 col-xs-10 no-padding"> 
                                    
                                    <div class="addprewaiting_on_plus_user no-padding" id="addprewaiting_3">
                                      <a href="#" class="btn btn-success"><i class="fa fa-plus"></i>Add More</a>
                                    </div>
                                </div>


                            </div>


                            <div id="appended_PreWaitingTime_package"></div>


                            <div class="form-group clearfix margintopbottom20">
                                <label class="col-sm-2 col-xs-12 control-label" for="package_categories">
                                    <?php echo $this->translate($this->formLabel($form->get('tour_category[]'))); ?>
                                </label>
                                <div class="col-sm-8 col-xs-10 no-padding no-padding">  
                                  <div class="col-sm-8 col-xs-10"><?php echo $this->FormElement($form->get('tour_category[]')); ?>
                                    <?php echo $this->formElementErrors($form->get('tour_category[]'), ['class' => 'error']); ?>
                                </div>                                                      
                                </div>
                            </div>

                            <div class="form-group clearfix margintopbottom20">
                                <label class="col-sm-2 col-xs-12 control-label" for="package_specification">
                                  <?php echo $this->translate('Package Specification'); ?><span class="required">*</span></label>
                                <div class="col-sm-8 col-xs-10 no-padding no-padding">  
                                    <div class="col-sm-4">

                <div class="carbooking">
                    <input type="radio" name="specification" id="itenerary-based" value="Daily Itinerary Based" checked="true">
                    <label for="itenerary-based" class="font-normal">
                     <span class="radio"><?php echo $this->translate('Daily Itinerary Based'); ?></span>
                    </label>
                </div>                                

                                    </div>
                                    <div class="col-sm-6"> 

                                        <div class="carbooking">
                                            <input type="radio" name="specification" id="only-hotel" value="Only Hotel">
                                                <label for="only-hotel" class="font-normal">
                                                <span class="radio"><?php echo $this->translate('Only Hotel'); ?></span>
                                            </label>
                                        </div>

                                    </div>  

                                </div>


                            </div>


                            <div class="form-group clearfix margintopbottom20">
                                <label class="col-sm-2 col-xs-12 control-label" for="short_overview">
                                    <?php echo $this->translate($this->formLabel($form->get('short_desc'))); ?>
                                </label>
                                <div class="col-sm-10 col-xs-10">
                                    <?php echo $this->FormElement($form->get('short_desc')); ?>
                                    <?php echo $this->formElementErrors($form->get('short_desc'), ['class' => 'error']); ?>
                                     
                                </div>
                            </div>



                        </fieldset>


                    </div>

                </div>
            </div>
        </div>

    </div>

</div>
<?php echo $this->inlineScript()->appendFile($this->basePath('/js/tinymce/tinymce.min.js')); ?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).on('click', '.addprewaiting_on_plus_user', function () {
    var addButtonId = $(this).attr('id');
    var counterArr = addButtonId.split("_");
    var counter = counterArr[1];
    counter++;
    var detailsdiv = "";
    var departure_date = '<?php echo $this->FormElement($form->get('departure_date[]')); ?>';
    var departure_time = '<?php echo $this->FormElement($form->get('departure_time[]')); ?>';
    detailsdiv += '<div class="form-group clearfix"><label class="col-sm-2 col-xs-12 control-label" for="departure">&nbsp;</label><div class="col-sm-4 col-xs-10 no-padding"> <div class="col-sm-6">' + departure_date + '</div><div class="col-sm-6">' + departure_time + '</div></div><div class="col-sm-2 remove_prewaitingtime_row_user"><a href="#"  id="removePreWaitingPkgFields_' + counter + '"><i class="fa fa-trash-o fa-2x"></i></a></div></div></div>';
    appendedPreWaitingTimeLength++;
    $("#appended_PreWaitingTime_package").append(detailsdiv);
    $(".datepicker").datepicker({
        changeYear: true,
        changeMonth: true,
        minDate: 0,
        yearRange: "-100:+20",
        dateFormat: "d-m-yy",
    });
    $('.timepicker').timepicker({ 'timeFormat': 'H:i:s','step': 15, 'scrollDefault': 'now'});
    return false;

});


$(document).on('click', '.remove_prewaitingtime_row_user', function () {
    var addId = $(".addprewaiting_on_plus_user").attr('id');
    var addIdArr = addId.split("_");
    var counter = addIdArr[1];
    counter--;
    $(this).closest('.form-group').remove();
    var addbtn_length = $("#appended_PreWaitingTime_package .addprewaiting_on_plus_user").length;
    var row_leng = $("#appended_PreWaitingTime_package .row").length;
    appendedPreWaitingTimeLength--;
    return false;
});
</script>