<?php
if(!empty($vehicleData['netrate_commissionrate'])){
    if($vehicleData['netrate_commissionrate']!="Commissionable Rate"){
        $displayClass = "display-none";
        $netChecked = "checked='checked'";
        $commChecked="";
    }else{
        $displayClass = "";
        $netChecked = "";
        $commChecked="checked='checked'";
    }
    if($vehicleData['commission_rate_type']=="Percentage"){
        $perChecked = "checked='checked'";
        $fixChecked="";
    }else{
        $fixChecked = "checked='checked'";
        $perChecked = "";
    }
}
?>

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

                        <div class="col-sm-2 no-padding">
                            <div class="carbooking">
                                <input type="radio" name="typeofcommission" id="net-rate" <?php echo $netChecked;?> value="Net Rate"/>
                                <label for="net-rate"><span class="radio"><?php echo $this->translate('Net'); ?></span></label>
                            </div>
                        </div>

                        <div class="col-sm-2">
                            <div class="carbooking">
                                <input type="radio" name="typeofcommission" id="commission-rate" value="Commissionable Rate" <?php echo $commChecked;?>/>
                                <label for="commission-rate"><span class="radio"><?php echo $this->translate('Commissionable'); ?></span></label>
                            </div>
                        </div>
                        <div class="col-sm-6 no-padding <?php echo $displayClass;?>" id="Type_of_commission">

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

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

                            </div>

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

                        </div>


                    </div>