<div class="row">
    <div class="col-sm-12 col-md-12 mrgin20auto5">
        <div class="portlet-body padding10px">
            <h4 class="distanceRates_distance">Distance Rates</h4>
            <div class="form-group clearfix">
                <div class="col-sm-2 margin-r-5">
                    <label class="ratePerKm_distance">Rate Per Km</label>
                    <div class="input-group margin-l-5"> <span class="input-group-addon ratePerKmRupees_distance">Rs</span>
                        <?php echo $this->FormElement($form->get('rate_per_km')); ?>
                    </div>
                </div>
                <!--
                        <div class="col-sm-3" style="display:none; margin-right:3px;">
                        <label class="">First Km Rate</label>
                          <div class="input-group">
                            <span class="input-group-addon">Rs</span>
                              <input type="text" class="form-control" id="first_km_rate">
                          </div>
                        </div>-->
                <div class="col-sm-2">
                    <label class="firstKmRate_distance">Ignore First Km Rate</label>
                    <div class="input-group"> <span class="input-group-addon">Km</span>
                        <?php echo $this->FormElement($form->get('ignore_first_km_rate')); ?>
                    </div>
                </div>
                <div class="col-sm-2 margin-l-5">
                    <label class="minimumCharge_distance">Minimum Fare</label>
                    <div class="input-group"> <span class="input-group-addon minimumChargeRupees_distance">Rs</span>
                        <?php echo $this->FormElement($form->get('minimum_fare')); ?>
                    </div>
                </div>
            </div>
            <div class="col-sm-12">
                <form class="form-inline" role="form">
                    <div class="row no-margin">
                        <div class="col-sm-2 no-padding">
                            <label class="booking-check">Round Up Kms
                                <?php echo $this->FormElement($form->get('round_per_kms')); ?>
                                <span class="checkmark"></span>
                            </label>
                        </div>

                    </div>
                    <hr>

                    <h4 class="accumulated_distance">Distances</h4>
                    <p class="accumulated_distance_detail">You May Wish To Charge Different Rate Per Km 
                        Depending On The Length Of The Journey</p>
                    <div class="row" style="margin:0">
                        <div class="col-sm-3 no-padding">
                            <label class="booking-check">Accumulated Instances
                                <?php echo $this->FormElement($form->get('accumulated_instances')); ?>
                                <span class="checkmark"></span>
                            </label>
                        </div>

                    </div>
                </form>
                <hr>



                 <div class="row">
                  <div class="col-sm-2">
                    <label class="km_upto_accumulated">Kms Up To</label>
                  </div>
                  <div class="col-sm-2">
                    <label class="rate_per_km_accumulated">Rate Per Km</label>
                  </div>
                  
                  <div class="col-sm-2 margin-left15"></div>
                      <div class="col-sm-3">&nbsp;</div>
                </div>
                
                
                
                   <div id="mainDistanceDiv">
                <div class="row form-group">
                <div class="col-sm-2 margin-left0 margin-r-5">
               <?php echo $this->FormElement($form->get('package_km_upto_to')); ?></div>
                <div class="col-sm-2">
                <div class="input-group"><span class="input-group-addon">Rs</span> 
                    <?php echo $this->FormElement($form->get('package_rate_per_km')); ?>
                </div></div>
                <div class="col-sm-2" id="removeDistanceFields"><a href="#"><i class="fa fa-trash-o fa-2x"></i></a></div>
                <div class="col-sm-3">&nbsp;</div></div>
                <div class="row form-group"
                ><div class="col-sm-2 margin-left0 margin-r-5">
                <?php echo $this->FormElement($form->get('package_km_upto_to')); ?></div>
                <div class="col-sm-2"><div class="input-group"><span class="input-group-addon">Rs</span>
                        <?php echo $this->FormElement($form->get('package_rate_per_km')); ?>
                </div>
                </div>
                <div class="col-sm-2">
                <div class="col-sm-4 addButton no-padding" id="add_2"><a href="#" class="btn btn-info form-control">Add</a></div></div>
                <div class="col-sm-3">&nbsp;</div></div></div>
                <div id="appended_text_form"></div>
                <div class="row">
                <div class="col-sm-3 ">
                		<label class="booking-check">Update All Rows
 														 <input type="checkbox" name="UpdatedStatus_distance" value="1" id="UpdatedStatus_distance">
 														 <span class="checkmark"></span>
														 </label>
                  </div>
                  </div>
                
                
                
                


                <div class="row">
                    <div class="col-sm-2">
                        <label>Package Name</label>
                    </div>
                    <div class="col-sm-2">
                        <label>Ignore KM</label>
                    </div>
                    <div class="col-sm-2">
                        <label>Amount</label>
                    </div>                  
                    <div class="col-sm-2 margin-left15"></div>
                    <div class="col-sm-3">&nbsp;</div>
                </div>
                <div id="DistanceDiv_package">
                    <div class="row margin-bttom10px" >
                        <div class="col-sm-2">
                            <?php echo $this->FormElement($form->get('package_name')); ?>
                        </div>
                        <div class="col-sm-2">
                            <?php echo $this->FormElement($form->get('ignore_km')); ?>
                        </div>
                        <div class="col-sm-2">
                            <?php echo $this->FormElement($form->get('amount')); ?>
                        </div>
                        <div class="col-sm-2"></div></div></div>
                <div id="appended_Dis_package">
                    <div class="row form-group"><div class="col-sm-2"><input id="pkg_nameDistance_2" class="form-control allowtext" value="80 Km" type="text"></div>
                        <div class="col-sm-2"><input id="pkg_ignoreKmDistance_2" class="form-control" value="80" type="text"></div>
                        <div class="col-sm-2"><input id="pkg_amountDistance_2" class="form-control" value="1200" type="text"></div>
                        <div class="col-sm-1 remove_pkg_row"><a href="#" id="removeDistancePkgFields_2"><i class="fa fa-trash-o fa-2x"></i></a></div>
                        <div class="col-sm-2"></div></div>
                    <div class="row form-group">
                        <div class="col-sm-2"><input id="pkg_nameDistance_3" class="form-control allowtext" value="120 Km" type="text"></div>
                        <div class="col-sm-2"><input id="pkg_ignoreKmDistance_3" class="form-control" value="120" type="text"></div>
                        <div class="col-sm-2"><input id="pkg_amountDistance_3" class="form-control" value="1700" type="text"></div>
                        <div class="col-sm-1 remove_pkg_row"><a href="#" id="removeDistancePkgFields_3"><i class="fa fa-trash-o fa-2x"></i></a></div>
                        <div class="col-sm-2"></div></div>
                    <div class="row form-group">
                        <div class="col-sm-2"><input id="pkg_nameDistance_4" class="form-control allowtext" value="160 Km" type="text"></div>
                        <div class="col-sm-2"><input id="pkg_ignoreKmDistance_4" class="form-control" value="140" type="text"></div>
                        <div class="col-sm-2"><input id="pkg_amountDistance_4" class="form-control" value="2000" type="text"></div>
                        <div class="col-sm-1 remove_pkg_row"><a href="#" id="removeDistancePkgFields_4"><i class="fa fa-trash-o fa-2x"></i></a></div>
                        <div class="col-sm-2">
                            <div class="col-sm-4  addpkg_on_plus no-padding" id="addpkgdis_4"><a href="#" class="btn btn-info form-control">Add</a></div></div></div></div>
                <div class="row ">
                    <div class="col-sm-3"></div>
                    <div class="col-sm-3"></div>
                    <div class="col-sm-2 pull-right margin-r-10"> <a href="#HourVehicle" id="distanceVehiclen" data-toggle="tab">
                            <button class="btn btn-info form-control margin-bttom10px">Next</button>
                        </a> </div>
                    <div class="col-sm-2 pull-right margin-bttom10px" id="distance_fair_manage_cab_save"> <a href="#" data-toggle="tab">
                            <button class="btn btn-info form-control">Save</button>
                        </a> </div>
                    <div class="col-sm-2 pull-right margin-bttom10px display-none" id="distance_fair_manage_vehicle">
                        <a href="#" data-toggle="tab">
                            <button class="btn btn-info form-control">Save</button>
                        </a> </div>
                </div>
            </div>
        </div>
    </div>
</div>
