<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<table class="form-table">
    <tr valign="top">
        <th scope="row" class="align-middle">
        </th>

        <td>
            <div class="premium-feature-box">
                <div class="text-center px-4">
                    <div class="flex items-center justify-center mb-2">
                        <img class="w-6 h-6" src="<?php echo esc_url(plugins_url('../../Assets/Img/crown.svg', __FILE__ )); ?>" alt="<?php echo esc_attr( 'WP Invoices' ) ?>" />
                        <h3><?php esc_html_e( 'Premium Feature', 'kirilkirkov-pdf-invoice-manager' ); ?></h3>
                    </div>
                    <p class="mb-4"><?php esc_html_e( 'Currency Exchange is available in the premium version of the plugin.', 'kirilkirkov-pdf-invoice-manager' ); ?></p>
                    <a href="<?php echo esc_url($Config::PREMIUM_LINK); ?>" target="_blank" class="kkinv-btn-primary"><?php esc_html_e( 'Get Premium Now', 'kirilkirkov-pdf-invoice-manager' ); ?></a>
                </div>
            </div>
        </td>
    </tr>

    <tr valign="top" class="premium-feature-container">
        <th scope="row" class="align-middle">
            <div class="th-div">
                <span class="mr-5"><?php esc_html_e( 'XE API Credentials', 'kirilkirkov-pdf-invoice-manager' ); ?></span>
                <a class="show-info" data-info="<?php esc_attr_e( 'To get XE.com API Credentials, go to XE.com API section into your account.', 'kirilkirkov-pdf-invoice-manager' ) ?>" href="javascript:;"></a>
            </div>
        </th>

        <td>
            <div class="mb-4">
                <input type="hidden" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'premium_feature'; ?>" value="0" />
                <label>
                    <input type="checkbox" name="<?php echo esc_attr($Config::INPUTS_PREFIX).'premium_feature'; ?>" value="1">
                    <?php esc_html_e( 'Enable XE.com exchange', 'kirilkirkov-pdf-invoice-manager' ); ?>
                </label>
            </div>

            <div class="mb-4">
                <label><?php esc_html_e( 'Account API ID', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="text" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>premium_feature" value="" />
            </div>

            <div class="mb-4">
                <label><?php esc_html_e( 'Account API Key', 'kirilkirkov-pdf-invoice-manager' ); ?></label>
                <input type="text" name="<?php echo esc_attr($Config::INPUTS_PREFIX); ?>premium_feature" value="" />
            </div>
        </td>
    </tr>
</table>

<input type="hidden" name="page_options" value="<?php echo esc_attr(sanitize_text_field($Config::CURRENCY_EXCHANGE_INPUT_GROUP)); ?>" />
<?php settings_fields($Config::CURRENCY_EXCHANGE_INPUT_GROUP); ?>