<?php
if(!empty($vehicleData['service_charge'])){
    if($vehicleData['service_charge']=="Yes"){
        $displayServiceClass = "";
        $serviceYesChecked = "checked='checked'";
        $serviceNoChecked= "";
    }else{
        $displayServiceClass = "display-none";
        $serviceYesChecked = "";
        $serviceNoChecked="checked='checked'";
    }
    if($vehicleData['service_charge_type']=="Percentage"){
        $servicePerChecked = "checked='checked'";
        $serviceFixChecked="";
    }else{
        $serviceFixChecked = "checked='checked'";
        $servicePerChecked = "";
    }
}else{
    $serviceNoChecked = "checked='checked'";
    $displayServiceClass = "display-none";
    $serviceYesChecked = "";
    $servicePerChecked = "";
    $serviceFixChecked = "";
}
?>

<div class="col-sm-12">
                       <div class="col-sm-2 no-padding">
                               <label><?php echo $this->translate('Service Charge'); ?></label>
                        </div>

                        <div class="col-sm-2 no-padding">
                            <div class="carbooking">
                                <input type="radio" name="service_charge" id="no-service-charge" <?php echo $serviceNoChecked;?> value="No"/>
                                <label for="no-service-charge"><span class="radio"><?php echo $this->translate('No'); ?></span></label>
                            </div>
                        </div>

                        <div class="col-sm-2">
                            <div class="carbooking">
                                <input type="radio" name="service_charge" id="yes-service-charge" <?php echo $serviceYesChecked;?> value="Yes"/>
                                <label for="yes-service-charge"><span class="radio"><?php echo $this->translate('Yes'); ?></span></label>
                            </div>
                        </div>
                        <div class="col-sm-6 no-padding <?php echo $displayServiceClass;?>" id="type_of_service">

                            <div class="col-sm-3">
                                <div class="carbooking">
                                    <input type="radio" name="service_charge_type" id="service_charge_per" <?php echo $servicePerChecked;?> value="Percentage"/>
                                    <label for="service_charge_per"><span class="radio"><?php echo $this->translate('Percent'); ?></span></label>
                                </div>
                            </div>

                            <div class="col-sm-3">
                                <div class="carbooking">
                                    <input type="radio" name="service_charge_type" id="service_charge_rs" <?php echo $serviceFixChecked;?> value="Fixed"/>
                                    <label for="service_charge_rs"><span class="radio"><?php echo $this->translate('Fixed'); ?></span></span></label>
                                </div>

                            </div>

                            <div class="col-sm-6">
                                <?php echo $this->FormElement($form->get('service_charge_value')); ?>
                            </div>

                        </div>


                    </div>