<h3 class='ex-sec-title mep_extra_service_title'><?php echo $extra_service_label; ?></h3>
            <table id='mep_event_extra_service_table'>
                <tr class='mep_extra_service_table_head'>
                    <td align="left"><?php echo mep_get_option('mep_name_text', 'label_setting_sec', __('Name:', 'mage-eventpress')); ?></td>
                    <td class="mage_text_center"><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec', __('Quantity:', 'mage-eventpress')); ?></td>
                    <td class="mage_text_center"><?php echo mep_get_option('mep_price_text', 'label_setting_sec', __('Price:', 'mage-eventpress')); ?></td>
                </tr>
                <?php

                foreach ($mep_events_extra_prices as $field) {  
                    
                    $service_name       = array_key_exists('option_name',$field) ? $field['option_name'] : '';
                    $service_qty        = array_key_exists('option_qty',$field) ? $field['option_qty'] : 0;
                    $service_price      = array_key_exists('option_price',$field) ? $field['option_price'] : 0;
                    $service_qty_type   = array_key_exists('option_qty_type',$field) ? $field['option_qty_type'] : 'input';



                    $total_extra_service = (int) $service_qty;
                    $qty_type = $service_qty_type;
                    $total_sold = (int) mep_extra_service_sold($post_id, $service_name, $event_date);
                    $ext_left = ($total_extra_service - $total_sold);
					
					$tic_price=mep_get_price_including_tax($post_id, $service_price);
					$actual_price=strip_tags(wc_price(mep_get_price_including_tax($post_id, $service_price)));
	                $data_price=str_replace(get_woocommerce_currency_symbol(), '', $actual_price);
	                $data_price=str_replace(wc_get_price_thousand_separator(), '', $data_price);
					$data_price=str_replace(wc_get_price_decimal_separator(), '.', $data_price);
                ?>
                    <tr>
                        <td align="Left"><?php echo $service_name; ?>
                            <div class="xtra-item-left"><?php echo $ext_left; ?>
                                <?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : _e('Left:', 'mage-eventpress');  ?>
                            </div>
                            <input type="hidden" name='mep_event_start_date_es[]' value='<?php echo $event_date; ?>'>
                        </td>
                        <td class="mage_text_center">
                            <?php
                            if ($ext_left > 0) {
                                if ($qty_type == 'dropdown') { ?>
                                    <select name="event_extra_service_qty[]" id="eventpxtp_<?php //echo $count;
                                                                                            ?>" class='extra-qty-box'>
                                        <?php for ($i = 0; $i <= $ext_left; $i++) { ?>
                                            <option value="<?php echo $i; ?>"><?php echo $i; ?> <?php echo $service_name; ?></option>
                                        <?php } ?>
                                    </select>
                                <?php } else { ?>
                                    <div class="mage_input_group">
                                        <span class="fa fa-minus qty_dec"></span>
                                        <input id="eventpx" <?php //if($ext_left<=0){ echo "disabled"; }
                                                            ?> size="4" inputmode="numeric" type="text" class='extra-qty-box' name='event_extra_service_qty[]' data-price='<?php echo $data_price; ?>' value='0' min="0" max="<?php echo $ext_left; ?>">
                                        <span class="fa fa-plus qty_inc"></span>
                                    </div>
                            <?php }
                            } else {
                                echo mep_get_option('mep_not_available_text', 'label_setting_sec') ? mep_get_option('mep_not_available_text', 'label_setting_sec') : _e('Not Available', 'mage-eventpress');
                            } ?>
                        </td>
                        <td class="mage_text_center"><?php echo wc_price(mep_get_price_including_tax($post_id, $service_price));
                                                        if ($ext_left > 0) { ?>
                                <p style="display: none;" class="price_jq"><?php echo $tic_price > 0 ? $tic_price : 0;  ?></p>
                                <input type="hidden" name='event_extra_service_name[]' value='<?php echo $service_name; ?>'>
                                <input type="hidden" name='event_extra_service_price[]' value='<?php echo $service_price; ?>'>
                            <?php } ?>
                        </td>
                    </tr>
                <?php
                    $count++;
                }
                ?>
            </table>