<?php
/**
 * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
 */
?>
<?php /** @var \Temando\Shipping\Block\Adminhtml\System\Config\Form\Field\Activation $block */ ?>
<table>
    <tbody>
        <tr>
            <td>
                <?php
                $message = 'This is where you can activate Magento Shipping.';
                $message.= ' In order to use Magento Shipping you will require a shipping account.';
                ?>
                <p><?= $block->escapeHtml(__($message)) ?></p>

                <p>
                    <?php if ($block->isMerchantRegistered()) : ?>
                        <a class="shipping_portal__link" target="_blank" rel="noopener noreferrer"
                           href="<?= $block->escapeUrl($block->getShippingPortalUrl()); ?>">
                            <?= $block->escapeHtml(__('Access the Magento Shipping Portal here')); ?>
                            <span></span>
                        </a>
                    <?php else : ?>
                        <a href="<?= $block->escapeUrl($block->getRegisterAccountUrl()); ?>"
                           target="_blank" rel="noopener noreferrer">
                            <?= $block->escapeHtml(__('Request Shipping Account')); ?>
                            <span></span>
                        </a>
                    <?php endif; ?>
                </p>
            </td>
        </tr>
    </tbody>
</table>
