function colabs_property_parse_query($wp_query)
{
    if ($wp_query->is_main_query() && is_page(get_option('colabs_dashboard_page_id'))) {
        if (get_query_var('order_cancel') || get_query_var('order_status')) {
            $wp_query->set('tab', 'orders');
        }
        if (get_query_var('order_status')) {
            $wp_query->set('order_status', array_map('wp_strip_all_tags', get_query_var('order_status')));
        }
        if (get_query_var('order_cancel')) {
            $order = colabs_get_order(intval(get_query_var('order_cancel')));
            if (get_current_user_id() != $order->get_author()) {
                $wp_query->set('order_cancel_msg', -1);
                return;
            }
            if (COLABS_ORDER_COMPLETED == $order->get_status()) {
                $wp_query->set('order_cancel_msg', -2);
                return;
            }
            if (!empty($order) && get_query_var('confirm_order_cancel')) {
                $order->failed();
                $wp_query->set('order_cancel_success', 1);
            }
        } elseif (get_query_var('property_end') && get_query_var('confirm')) {
            $property_id = intval(get_query_var('property_end'));
            $property = get_post($property_id);
            if ($property->ID != $property_id || $property->post_author != get_current_user_id()) {
                $wp_query->set('property_action', -1);
                return;
            }
            if (get_query_var('cancel')) {
                $pending_payment = colabs_get_pending_payment($property_id);
                $order = colabs_get_order($pending_payment[$property_id]['order_id']);
                if ($order && !in_array($order->get_status(), array(COLABS_ORDER_ACTIVATED, COLABS_ORDER_COMPLETED))) {
                    $order->failed();
                } else {
                    _colabs_end_property($property_id, $cancel = true);
                }
                $wp_query->set('property_action', 1);
            } else {
                _colabs_end_property($property_id);
                $wp_query->set('property_action', 2);
            }
            // Property delete
        } elseif (get_query_var('property_delete')) {
            _colabs_delete_property(get_query_var('property_delete'));
            // Property mark as sold
        } elseif (get_query_var('property_marksold')) {
            $property_id = get_query_var('property_marksold');
            update_post_meta($property_id, 'colabs_property_sold', 'true');
            $sold_term = get_term_by('slug', 'sold', COLABS_TAX_STATUS);
            if ($sold_term) {
                // Save previous property_status into a post meta
                update_post_meta($property_id, '_colabs_previous_property_status', wp_get_post_terms($property_id, COLABS_TAX_STATUS, array('fields' => 'ids')));
                wp_set_post_terms($property_id, $sold_term->term_id, COLABS_TAX_STATUS);
            }
            // Property set unsold
        } elseif (get_query_var('property_unsold')) {
            $property_id = get_query_var('property_unsold');
            update_post_meta($property_id, 'colabs_property_sold', 'false');
            $previous_status = get_post_meta($property_id, '_colabs_previous_property_status', true);
            if ($previous_status) {
                wp_set_post_terms($property_id, $previous_status, COLABS_TAX_STATUS);
            } else {
                $sell_term = get_term_by('slug', 'sell', COLABS_TAX_STATUS);
                if ($sell_term) {
                    wp_set_post_terms($id, $sell_term->term_id, COLABS_TAX_STATUS);
                }
            }
        }
    }
    if ($wp_query->is_main_query() && is_page(get_option('colabs_submit_page_id'))) {
        if ($wp_query->get('property_relist')) {
            $property_id = $wp_query->get('property_relist');
            // if ( is_user_logged_in() && ! current_user_can('can_submit_property') ) {
            //   wp_redirect( home_url() );
            //   exit();
            // }
            if (!colabs_allow_relist()) {
                redirect_myproperties();
            }
            $wp_query->set('property_id', $property_id);
        }
    }
}
      <th class="text-center" width="120px"><?php 
    _e('Expired', 'colabsthemes');
    ?>
</th>
      <th width="90px"><?php 
    _e('Actions', 'colabsthemes');
    ?>
</th>
    </tr>
  </thead>

  <tbody>
    <?php 
    while ($publish_query->have_posts()) {
        $publish_query->the_post();
        $pending_payment = colabs_get_pending_payment($post->ID);
        $expire_date = '';
        $poststatus = colabs_get_post_status($post);
        global $wpdb;
        $total_cost = $wpdb->get_var($wpdb->prepare("SELECT cost FROM " . $wpdb->prefix . "colabs_orders WHERE property_id=%d;", $post->ID));
        ?>
 
    <tr>
      <td class="property-col-image text-center"><?php 
        colabs_image('key=property_image&width=100&height=100');
        ?>
</td>
      
      <td class="property-col-title">
        <h5>
          <?php