<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

$options = $field['select_options'];
if (count($options)){
	?>
	<span class="wppb-form-field-item wppb-form-field-select">
		<select name="wppb_default_form[<?php echo $fieldIndex; ?>]" <?php echo $fieldAttr; ?> >
			<?php
			foreach ($options as $key => $option){
				?>
				<option value="<?php echo $option['label']; ?>"><?php echo $option['label']; ?></option>
				<?php
			}
			?>
		</select>
	</span>
	<?php
}