<?php

/*
 * @author     M2E Pro Developers Team
 * @copyright  M2E LTD
 * @license    Commercial use is forbidden
 */

// @codingStandardsIgnoreFile

/** @var $this Ess_M2ePro_Block_Adminhtml_Amazon_Account_Edit_Tabs_Order_ExcludedCountries */

?>

<div class="entry-edit" id="magento_block_amazon_accounts_magento_orders_tax_excluded_countries" style="margin-top: 10px;" collapseable="no">

    <div class="fieldset">
        <div class="hor-scroll">
            <table class="form-list" cellspacing="0" cellpadding="0">
                <tr>
                    <?php foreach ($this->getCountriesList() as $column) : ?>
                        <td class="value">
                            <?php foreach ($column as $code => $name) : ?>
                                <div class="checkbox_container excluded_countries" style="display: block; margin: 5px;">
                                    <input class="excluded_country_checkbox" type="checkbox" value="<?php echo $code; ?>" <?php if (in_array($code, $this->getSelectedCountries(), true)): ?>checked="checked"<?php endif; ?>/>
                                    <label><?php echo $name; ?></label>
                                </div>
                            <?php endforeach; ?>
                        </td>
                    <?php endforeach; ?>
                </tr>
            </table>
        </div>
    </div>
</div>

<div style="float: right; margin-top: 5px; margin-bottom: 20px;">
    <?php echo $this->getChildHtml('excluded_countries_close_btn'); ?>
</div>