<div data-china-payments-component-admin-dashboard-section="optimizations_list">

  <div data-china-payments-component-admin-dashboard-section="optimization_card">
    <div data-china-payments-component-admin-dashboard-section="optimization_header">
      <h3>💱 {{ data.lang.optimization_multi_currency_title }}</h3>
      <# if( parseInt( data.is_premium ) ) { #>
        <label>
          <input data-china-payments-component-admin-dashboard-trigger="optimization_toggle" data-china-payments-optimization-setting="multi_currency_enabled" type="checkbox" {{{ parseInt( data.optimizations.multi_currency_enabled ) ? 'checked="checked"' : '' }}} />
          <span></span>
        </label>
        <# } #>
    </div>
    <p>{{ data.lang.optimization_multi_currency_desc }}</p>
    <# if( !parseInt( data.is_premium ) ) { #>
      <div data-china-payments-component-admin-dashboard-section="optimization_upgrade">
        <p>{{{ data.lang.optimization_upgrade_required.replace( "%s", '<a href="' + data.upgrade_link + '" target="_blank">' + data.lang.upgrade + '</a>' ) }}}</p>
      </div>
      <# } #>
  </div>

  <div data-china-payments-component-admin-dashboard-section="optimization_card">
    <div data-china-payments-component-admin-dashboard-section="optimization_header">
      <h3>🇨🇳 {{ data.lang.optimization_localization_title }}</h3>
      <# if( parseInt( data.is_premium ) ) { #>
        <label>
          <input data-china-payments-component-admin-dashboard-trigger="optimization_toggle" data-china-payments-optimization-setting="chinese_localization_enabled" type="checkbox" {{{ parseInt( data.optimizations.chinese_localization_enabled ) ? 'checked="checked"' : '' }}} />
          <span></span>
        </label>
        <# } #>
    </div>
    <p>{{ data.lang.optimization_localization_desc }}</p>
    <div data-china-payments-component-admin-dashboard-section="optimization_preview">
      <p><strong>{{ data.lang.optimization_preview_label }}</strong></p>
      <table>
        <tr>
          <td>"Add to cart"</td>
          <td>→</td>
          <td>"加入购物车"</td>
        </tr>
        <tr>
          <td>"Place order"</td>
          <td>→</td>
          <td>"提交订单"</td>
        </tr>
        <tr>
          <td>"Subtotal"</td>
          <td>→</td>
          <td>"小计"</td>
        </tr>
      </table>
    </div>
    <# if( !parseInt( data.is_premium ) ) { #>
      <div data-china-payments-component-admin-dashboard-section="optimization_upgrade">
        <p>{{{ data.lang.optimization_upgrade_required.replace( "%s", '<a href="' + data.upgrade_link + '" target="_blank">' + data.lang.upgrade + '</a>' ) }}}</p>
      </div>
      <# } #>
  </div>
</div>

<div data-china-payments-component="admin-marketing-notifications"
  data-china-payments-component-args="{{{ _.escape( JSON.stringify( { area_slug : 'optimizations' } ) ) }}}"></div>