<div id="uap_woo_wsr_variation_settings" clas="panel woocommerce_options_panel" >

    <div class="form-row form-row-full options">

    <h4><?php esc_html_e( 'Ultimate Affiliate Pro - Specific Referral Rate', 'uap' );?></h4>

    <p class="form-row form-row-full"><?php esc_html_e( 'Customize Referral Rate for current product variation.', 'uap');?></p>

    <p class="form-row form-row-full">

        <label><?php esc_html_e('Referral Rate Type', 'uap');?></label>

            <select name="uap-woo-wsr-variable-product-type[<?php echo $data['variantion_id'];?>]">

                <?php if ( $data['types'] ):?>

                    <?php foreach ( $data['types'] as $key => $value ):?>

                        <option value="<?php echo $key;?>" <?php echo ( $data['uap-woo-wsr-type'] == $key ) ? 'selected' : '';?> ><?php echo $value;?></option>

                    <?php endforeach;?>

                <?php endif;?>

            </select>

    </p>



    <p class="form-row form-row-full">

        <label><?php esc_html_e('Referral Value', 'uap');?></label>

        <input type="number" step="0.01" min="0" name="uap-woo-wsr-variable-product-value[<?php echo $data['variantion_id'];?>]" value="<?php echo $data['uap-woo-wsr-value'];?>" />

    </p>

    <?php

    $offerType = get_option( 'uap_referral_offer_type' );

    if ( $offerType == 'biggest' ){

    		$offerType = esc_html__( 'Biggest', 'uap' );

    } else {

    		$offerType = esc_html__( 'Lowest', 'uap' );

    }

    echo esc_html__( 'If there are multiple Amounts set for the same action, like Ranks, Offers, Product or Category rate the ', 'uap' ) . '<strong>' . $offerType . '</strong> ' . esc_html__( 'will be taken in consideration. You may change that from', 'uap' ) . ' <a href="' . admin_url( 'admin.php?page=ultimate_affiliates_pro&tab=settings' ) . '" target="_blank">' . esc_html__( 'here.', 'uap' ) . '</a>';

    ?>

  </div>

</div>

