<?php
$taxFare    =   isset($fareDetails['tax_fare'])?$fareDetails['tax_fare']:'';
$fareSetting    =   isset($fareDetails['fare_setting'])?$fareDetails['fare_setting']:'';
?>
<?php
$form = $this->basicfareform;
$form->setAttribute('action', $this->url('cabfare', ['action' => 'add-price-basic-fare']));
$form->setAttribute('method', 'post');
echo $this->form()->openTag($form);
echo $this->formHidden($form->get('tax_fare_id')->setValue(isset($taxFare['id'])?$taxFare['id']:''));
echo $this->formHidden($form->get('tax_fare_setting_id')->setValue(isset($taxFare['id'])?$taxFare['id']:''));
?>
<div id="displayMsg"></div>
<div class="row">
    <div class="col-sm-12">
        <div class="col-sm-12 col-md-12">
            <div class="portlet-body">
                <h4 class="tax_basic"><?php echo $this->translate('GST Tax'); ?></h4>
                <div class="col-sm-12 no-padding">

                    <div class="col-sm-4 no-padding form-group">
                        <label class="col-sm-12"><?php echo $this->translate($form->get('sgst')->getLabel()); ?></label>
                        <div class="input-group col-sm-12 pull-left">
                            <span class="input-group-addon taxPercent_basic">%</span>
                            <?php echo $this->formElement($form->get('sgst')->setValue(isset($taxFare['sgst'])?$taxFare['sgst']:'')); ?>
                            <?php echo $this->formElementErrors($form->get('sgst'), ['class' => 'error']); ?>
                        </div>
                    </div>



                    <div class="col-sm-4 padding07px form-group">
                        <label class="col-sm-12"><?php echo $this->translate($form->get('cgst')->getLabel()); ?></label>
                        <div class="input-group col-sm-12 pull-left ">
                            <span class="input-group-addon taxPercent_basic">%</span>
                            <?php echo $this->formElement($form->get('cgst')->setValue(isset($taxFare['cgst'])?$taxFare['cgst']:'')); ?>
                            <?php echo $this->formElementErrors($form->get('cgst'), ['class' => 'error']); ?>
                        </div>

                    </div>



                    <div class="col-sm-4 padding07px form-group">
                        <label class="col-sm-12"><?php echo $this->translate($form->get('igst')->getLabel()); ?></label>
                        <div class="input-group col-sm-12 pull-left">
                            <span class="input-group-addon taxPercent_basic">%</span>
                            <?php echo $this->formElement($form->get('igst')->setValue(isset($taxFare['igst'])?$taxFare['igst']:'')); ?>
                            <?php echo $this->formElementErrors($form->get('igst'), ['class' => 'error']); ?>
                        </div>

                    </div>

                </div>


                <hr>


                <h4 class="cancellationFees_distance">&nbsp;</h4>

                <hr>

                <h4 class="rounding_basic"><?php echo $this->translate('Rounding'); ?></h4>
                <div class="col-sm-12 no-padding">
                    <div class="col-sm-2 ">
                        <div class="carbooking">
                            <input type="radio" value="1" name="rounding" id="roundingCash" <?php if(isset($fareSetting['rounding'])==1){ echo 'checked="checked"';}else{echo 'checked="checked"';}?>/>
                            <label for="roundingCash"><span class="radio"><?php echo $this->translate('Cash'); ?></span></label>
                        </div>

                    </div>

                    <div class="col-sm-3">
                        <div class="carbooking">
                            <input type="radio" value="2" name="rounding" id="roundingCredit" <?php if(isset($fareSetting['rounding'])==2){ echo 'checked="checked"';}?>/>
                            <label for="roundingCredit"><span class="radio"><?php echo $this->translate('Account / Credit Card'); ?></span></label>
                        </div>
                    </div>

                </div>
                <h4 class="level_basic"><?php echo $this->translate('Level'); ?></h4>
                <div class="col-sm-12 no-padding">

                    <div class="col-sm-2">
                        <div class="carbooking">
                            <input type="radio" value="1" name="level" id="levelRadio1" <?php if(isset($fareSetting['level'])==1){ echo 'checked="checked"';}else{echo 'checked="checked"';}?>/>
                            <label for="levelRadio1"><span class="radio"><?php echo $this->translate('Normal'); ?></span></label>
                        </div>
                    </div>

                    <div class="col-sm-2">
                        <div class="carbooking">
                            <input type="radio" value="2" name="level" id="levelRadio2" <?php if(isset($fareSetting['level'])==2){ echo 'checked="checked"';}?>/>
                            <label for="levelRadio2"><span class="radio"><?php echo $this->translate('Decimal'); ?></span></label>
                        </div>
                    </div>

                    <div class="col-sm-2">
                        <div class="carbooking">
                            <input type="radio" value="3" name="level" id="levelRadio3" <?php if(isset($fareSetting['level'])==3){ echo 'checked="checked"';}?>/>
                            <label for="levelRadio3"><span class="radio"><?php echo $this->translate('Unit'); ?></span></label>
                        </div>
                    </div>

                </div>
                <h4 class="direction_basic"><?php echo $this->translate('Direction'); ?></h4>
                <div class="col-sm-12 no-padding">

                    <div class="col-sm-2">
                        <div class="carbooking">
                            <input type="radio" value="1" name="direction" id="directionRadio1" <?php if(isset($fareSetting['direction'])==1){ echo 'checked="checked"';}else{echo 'checked="checked"';}?>/>
                            <label for="directionRadio1"><span class="radio"><?php echo $this->translate('Nearest'); ?></span></label>
                        </div>
                    </div>

                    <div class="col-sm-2">
                        <div class="carbooking">
                            <input type="radio" value="2" name="direction" id="directionRadio2" <?php if(isset($fareSetting['direction'])==2){ echo 'checked="checked"';}?>/>
                            <label for="directionRadio2"><span class="radio"><?php echo $this->translate('Upward'); ?></span></label>
                        </div>
                    </div>

                    <div class="col-sm-2">
                        <div class="carbooking">
                            <input type="radio" value="3" name="direction" id="directionRadio3" <?php if(isset($fareSetting['direction'])==3){ echo 'checked="checked"';}?>/>
                            <label for="directionRadio3"><span class="radio"><?php echo $this->translate('Downward'); ?></span></label>
                        </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="#PremiumVehicle" id="basicVehiclen" data-toggle="tab">
                            <?php echo $this->formElement($form->get('next')); ?>
                        </a> </div>
                    <div class="col-sm-2 pull-right margin-bttom10px"> <a href="#" data-toggle="tab">
                             <?php if(!isset($VndViewFare)){echo $this->formElement($form->get('save'));}?>
                          
                        </a> </div>
                    <div class="col-sm-2 pull-right display-none" id="basic_fair_manage_vehicle">
                        <a href="#" data-toggle="tab">
                            <button class="btn btn-info form-control margin-bttom10px">Save</button>
                        </a> </div>
                </div>
            </div>
        </div>
        <div class="col-sm-4 col-md-4"></div>
    </div>
</div>
<?php echo $this->form()->closeTag(); ?>