<?php
if (!defined('WPINC')) {
    die();
}

use EstatebudConnect\Utilities\Helper;

$default_class = 'estatebud-field-select';

if (isset($extra_class) && !empty($extra_class)) {
    $default_class .= ' ' . $extra_class;
}
?>
<div class="estatebud-form-field-container">
    <label class="estatebud-form-field-label"><?php echo esc_html(Helper::term('currency')); ?></label>
    <?php Helper::render_markup_from_views('Public/partials/components/fields/select.php', [
        'variable_name' => $variable_name ?? '',
        'id' => 'currency_selector',
        'extra_class' => $default_class,
        'options' => $options ?? [],
        'multiple' => false,
        'add_empty_option' => false
    ]); ?>
</div>
