<?php 
use Google\Ads\GoogleAds\V20\Enums\ConversionAdjustmentTypeEnum\ConversionAdjustmentType;
?>
<form data-adjustment>
    <p>
        Applies a <strong>RESTATEMENT</strong> adjustment which <?php echo __('allows you to change the conversion value, but not the count of conversions. Only the Conv. value and All Conv. value columns and ROAS bid strategies will be affected.') ?>
    </p>
    <table class="admin__control-table">
        <thead>
            <tr>
                <th width="20%"></th>
                <th>Conversion Field</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="20%"><?php echo __('Transaction') ?></td>
                <td><strong><?php echo $block->getOrderId() ?></strong></td>
            </tr>
            <tr>
                <td width="20%"><?php echo __('Adjustment type') ?></td>
                <td>
                    <select name="conversionType" class="admin__control-select">
                        <option value="<?php echo ConversionAdjustmentType::RESTATEMENT  ?>"><?php echo __('Restate') ?></option>
                        <option value="<?php echo ConversionAdjustmentType::RETRACTION  ?>"><?php echo __('Retract') ?></option>
                    </select>
                    <div style="margin-top:10px">
                        <small><strong>RESTATE</strong> <br />Reduce (restate) the value of conversions when you receive partial returns for an order. For example, if a customer is shopping for shoes, he might order shoes in different sizes and return the ones that don't fit, which brings down the total value of the purchase.</small>
                    </div>
                    <div style="margin-top:10px">
                        <small><strong style="color:rgb(182, 0, 0)">RETRACT</strong> <br />Retract conversions that should no longer be counted in your conversion columns, such as canceled reservations or returned purchases.</small>
                    </div>
                 </td>
            </tr>
            <tr>
                <td width="20%"><?php echo __('Conversion Value') ?></td>
                <td>
                    <input type="text" name="conversionValue" class="input-text admin__control-text" value="<?php echo $block->getValue() ?>" />
                </td>
            </tr>
        </tbody>
    </table>
</form>

