<?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-salutation-container" style="margin-bottom: 10px;">
    <label style="flex-basis: 100%">
        <?php echo esc_html( $salutation_label ); ?> 
        <?php if( $salutation_required ) { ?>
        <span class="required">*</span>
        <?php } ?>
    </label>
    <?php 
        if( $salutations ) { 
            foreach( $salutations as $value => $label ) {
    ?>
    <label style="display: inline; margin-right: 5px;" for="cembrapay_salutation_<?php echo esc_attr( $value ); ?>">
        <input style="margin-right: 5px;" type="radio" id="cembrapay_salutation_<?php echo esc_attr( $value ); ?>" name="cembrapay_salutation" value="<?php echo esc_attr( $value ); ?>" />
        <span><?php echo esc_html( $label ); ?></span>
    </label>
    <?php } } ?>
</div>