<?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-invoice-type-container" style="margin-bottom: 10px;">
    <label><?php echo wpautop( wptexturize( esc_html( $data['invoice_type_intro_text'] ) ) ); ?></label>
    <p>
        <label for="cembrapay-invoice-type-email">
            <input style="margin-right: 5px;" type="radio" name="cembrapay_invoice_type" value="EMAIL" id="cembrapay-invoice-type-email" class="cembrapay-invoice-type" /> 
            <span><?php echo str_replace( '{email}', '<span class="value"></span>', esc_html( $data['invoice_via_email'] ) ); ?></span>
        </label>
	</p>
    <p>
        <label style="margin-right: 5px;" for="cembrapay-invoice-type-post">
            <input style="margin-right: 5px;" type="radio" name="cembrapay_invoice_type" value="POSTAL" id="cembrapay-invoice-type-post" class="cembrapay-invoice-type" /> 
            <span><?php echo str_replace( '{address}', '<span class="value"></span>', esc_html( $data['invoice_via_post'] ) ); ?></span>
        </label>
	</p>
</div>