<?php $products = QuickCal_WC_Functions::get_products(); ?>
<?php if ( $field_type==='single-paid-service' ): ?>
	<li id="bookedCFTemplate-single-paid-service" class="ui-state-default"><i class="sub-handle fa-solid fa-bars"></i>
		<select name="<?php echo $name ?>" >
			<option value=""><?php _e('Select a Product', 'booked'); ?></option>
			<?php foreach ($products['options'] as $product_id => $product_title): ?>
				<?php $product = QuickCal_WC_Product::get( intval($product_id) ); ?>
				<option <?php echo intval($value)===$product_id ? 'selected="selected"' : '' ?> value="<?php echo $product_id ?>"><?php echo esc_html($product->title); ?></option>
			<?php endforeach ?>
		</select>
		<span class="cf-delete"><i class="fa-solid fa-trash-can"></i></span>
	</li>
<?php endif ?>