<?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 for="cembrapay_salutation">
        <?php echo esc_html( $salutation_label ); ?> 
        <?php if( $salutation_required ) { ?>
        <span class="required">*</span>
        <?php } ?>
    </label>
    <?php if( $salutations ) { ?>
    <select name="cembrapay_salutation" id="cembrapay_salutation" class="woocommerce-select">
        <option value=""><?php esc_html_e( 'Select', 'cembrapay' ); ?></option>
        <?php foreach( $salutations as $value => $label ) { ?>
        <option value="<?php echo esc_attr( $value ); ?>"><?php echo esc_html( $label ); ?></option>
        <?php } ?>
    </select>
    <?php } ?>
</div>