<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile
/**
 * @var $block \Threepartment\Debitpayment\Block\Form\Debitpayment
 */
$instructions = $block->getInstructions();
$remoteURL = $block->getRemoteURL();
$autopopulate = $block->getAutoPopulate();
$moreinfo = $block->getMoreInfo();
$checkbox = $block->getCheckbox();
$checkboxtext = $block->getCheckboxText();
?>
<?php if ($instructions): ?>
    <?php $methodCode = $block->escapeHtml($block->getMethodCode());?>
    <ul class="form-list checkout-agreements" id="payment_form_<?php /* @noEscape */ echo $methodCode ?>" style="display:none;">
        <li>
            <div class="<?php /* @noEscape */ echo $methodCode ?>-instructions-content checkout-agreement-item-content">
                <?php /* @noEscape */ echo nl2br($block->escapeHtml($instructions)) ?>
            </div>
        </li>
    </ul>
<?php endif; ?>

<?php if ($remoteURL): ?>
    <?php $methodCode = $block->escapeHtml($block->getMethodCode());?>
    <ul class="form-list checkout-agreements" id="payment_form_<?php /* @noEscape */ echo $methodCode ?>" style="display:none;">
        <li>
            <div class="<?php /* @noEscape */ echo $methodCode ?>-remoteURL-content checkout-agreement-item-content">
                <?php /* @noEscape */ echo nl2br($block->escapeHtml($remoteURL)) ?>
            </div>
        </li>
    </ul>
<?php endif; ?>

<?php if ($autopopulate): ?>
    <?php $methodCode = $block->escapeHtml($block->getMethodCode());?>
    <ul class="form-list checkout-agreements" id="payment_form_<?php /* @noEscape */ echo $methodCode ?>" style="display:none;">
        <li>
            <div class="<?php /* @noEscape */ echo $methodCode ?>-autopopulate-content checkout-agreement-item-content">
                <?php /* @noEscape */ echo nl2br($block->escapeHtml($autopopulate)) ?>
            </div>
        </li>
    </ul>
<?php endif; ?>

<?php if ($checkbox && $checkbox=='1'): ?>
    <?php $methodCode = $block->escapeHtml($block->getMethodCode());?>
    <ul class="form-list checkout-agreements" id="payment_form_<?php /* @noEscape */ echo $methodCode ?>" style="display:none;">
        <li>
            <div class="<?php /* @noEscape */ echo $methodCode ?>-checkbox-content checkout-agreement-item-content">
                <?php /* @noEscape */ echo nl2br($block->escapeHtml($checkboxtext)) ?>
            </div>
        </li>
    </ul>
<?php endif; ?>
<?php if ($checkbox && $checkbox=='1'): ?>
    <?php $methodCode = $block->escapeHtml($block->getMethodCode());?>
    <ul class="form-list checkout-agreements" id="payment_form_<?php /* @noEscape */ echo $methodCode ?>" style="display:none;">
        <li>
            <div class="<?php /* @noEscape */ echo $methodCode ?>-checkbox-content checkout-agreement-item-content">
                <?php /* @noEscape */ echo nl2br($block->escapeHtml($moreinfo)) ?>
            </div>
        </li>
    </ul>
<?php endif; ?>