if (isset($post_id)) {
    ?>
			<input type="hidden" name="post_id" value="<?php 
    echo esc_attr($post_id);
    ?>
" />
			<?php 
}
?>
        <table class="discount-table">
            <tbody>
				<?php 
foreach ($fields as $field) {
    ?>
					<?php 
    if ($discounts->is_valid_discount_field_type($field['field_type'])) {
        ?>
    
						<tr valign="top">

							<th scope="row"><label for="<?php 
        echo $field['field_name'];
        ?>
"><?php 
        echo $field['field_title'];
        ?>
</label></th>

							<td>
								<?php 
        do_action('tc_before_discounts_field_type_check');