<?php
/**
* @package CembraPay Payment Gateway for WooCommerce
* @author  Adrian Emil Tudorache
* @license GPL-2.0+
* @link    https://www.tudorache.me/
**/

namespace CembraPayWoo;

if ( ! defined( 'ABSPATH' ) ) {
    header( 'Status: 403 Forbidden' );
	header( 'HTTP/1.1 403 Forbidden' );
    exit;
}
?>
<div class="form-row form-row-wide cembrapay-installments-container" style="margin-bottom: 10px;">
    <label><?php echo wpautop( wptexturize( esc_html( $installments_intro_text ) ) ); ?></label>
    <?php $i = 1; foreach( $installments as $type => $installment ) { ?>
    <p>
        <label for="cembrapay-installment-type-<?php echo esc_attr( $type ); ?>">
            <input style="margin-right: 5px;" <?php echo 1 == $i ? 'checked="checked"' : ''; ?> type="radio" name="cembrapay_installment" value="<?php echo esc_attr( $type ) ?>" data-for="<?php echo esc_attr( $installment['for'] ); ?>" id="cembrapay-installment-type-<?php echo esc_attr( $type ); ?>" class="cembrapay-installment"> 
            <span><?php echo esc_html( $installment['template'] ); ?></span>
        </label>
	</p>
    <?php $i++; } ?>
</div>