<?php if ($orders) { ?>
    <?php if (($filter_group == 'year' or $filter_group == 'quarter' or $filter_group == 'month' and $filter_report == 'sales_summary' and $filter_details != 'all_details_products' and $filter_details != 'all_details_orders' and $filter_limit != '999999') or ( $filter_report == 'day_of_week' or $filter_report == 'hour' or $filter_report == 'store' or $filter_report == 'currency' or $filter_report == 'customer_group' or $filter_report == 'country' or $filter_report == 'payment_method' or $filter_report == 'shipping_method' and $filter_details != 'all_details_products' and $filter_details != 'all_details_orders' and $filter_limit != '999999')) { ?>
        <div class="col-sm-12" align="right" style="margin-bottom:10px;">
            <a class="btn btn-danger btn-xs chart-button"><i class="fa fa-area-chart"></i> <span class="chart_button"><?php echo $button_chart; ?></span></a>
        </div>
    <?php } ?>
<?php } ?>
<?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) { ?>
    <div style="overflow:scroll; padding:1px;">
    <?php } else { ?>
        <div style="overflow:auto; padding:1px;">
        <?php } ?>
        <?php if ($filter_details == 'all_details_products' or $filter_details == 'all_details_orders') { ?>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <?php if ($orders && $filter_limit != '999999') { ?>
                            <table class="list_detail">
                                <thead>
                                    <tr>
                                        <td class="left" nowrap="nowrap"><?php echo $column_order_order_id; ?></td>
                                        <td class="left" nowrap="nowrap"><?php echo $column_order_date_added; ?></td>
                                        <?php if (in_array('all_order_inv_no', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_order_inv_no; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_customer_name', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_order_customer; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_email', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_order_email; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_customer_group', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_order_customer_group; ?></td>
                                        <?php } ?>
                                        <?php if ($filter_details == 'all_details_products') { ?>
                                            <?php if (in_array('all_prod_id', $advso_settings_all_columns)) { ?>
                                                <td class="left" nowrap="nowrap"><?php echo $column_prod_id; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_sku', $advso_settings_all_columns)) { ?>
                                                <td class="left" nowrap="nowrap"><?php echo $column_prod_sku; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_model', $advso_settings_all_columns)) { ?>
                                                <td class="left" nowrap="nowrap"><?php echo $column_prod_model; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_name', $advso_settings_all_columns)) { ?>
                                                <td class="left" nowrap="nowrap"><?php echo $column_prod_name; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_option', $advso_settings_all_columns)) { ?>
                                                <td class="left" nowrap="nowrap"><?php echo $column_prod_option; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_attributes', $advso_settings_all_columns)) { ?>
                                                <td class="left" nowrap="nowrap"><?php echo $column_prod_attributes; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_category', $advso_settings_all_columns)) { ?>
                                                <td class="left" nowrap="nowrap"><?php echo $column_prod_category; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_manu', $advso_settings_all_columns)) { ?>
                                                <td class="left" nowrap="nowrap"><?php echo $column_prod_manu; ?></td>
                                            <?php } ?>
                                        <?php } ?>
                                        <?php if ($filter_details == 'all_details_products' or $filter_details == 'all_details_orders') { ?>
                                            <?php if (in_array('all_prod_currency', $advso_settings_all_columns)) { ?>
                                                <td class="left" nowrap="nowrap"><?php echo $column_prod_currency; ?></td>
                                            <?php } ?>
                                        <?php } ?>
                                        <?php if ($filter_details == 'all_details_products') { ?>
                                            <?php if (in_array('all_prod_price', $advso_settings_all_columns)) { ?>
                                                <td class="right" nowrap="nowrap"><?php echo $column_prod_price; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_quantity', $advso_settings_all_columns)) { ?>
                                                <td class="right" nowrap="nowrap"><?php echo $column_prod_quantity; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_total_excl_vat', $advso_settings_all_columns)) { ?>
                                                <td class="right" nowrap="nowrap"><?php echo $column_prod_total_excl_vat; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_tax', $advso_settings_all_columns)) { ?>
                                                <td class="right" nowrap="nowrap"><?php echo $column_prod_tax; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_total_incl_vat', $advso_settings_all_columns)) { ?>
                                                <td class="right" nowrap="nowrap"><?php echo $column_prod_total_incl_vat; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_qty_refund', $advso_settings_all_columns)) { ?>
                                                <td class="right" nowrap="nowrap"><?php echo $column_prod_qty_refunded; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_refund', $advso_settings_all_columns)) { ?>
                                                <td class="right" nowrap="nowrap"><?php echo $column_prod_refunded; ?></td>
                                            <?php } ?>
                                            <?php if (in_array('all_prod_reward_points', $advso_settings_all_columns)) { ?>
                                                <td class="right" nowrap="nowrap"><?php echo $column_prod_reward_points; ?></td>
                                            <?php } ?>
                                        <?php } ?>
                                        <?php if (in_array('all_sub_total', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_sub_total; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_handling', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_handling; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_loworder', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_loworder; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_order_shipping; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_reward', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_reward; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_reward_points', $advso_settings_all_columns)) { ?>
                                            <td class="right" style="min-width:85px;"><?php echo $column_earned_reward_points; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_reward_points', $advso_settings_all_columns)) { ?>
                                            <td class="right" style="min-width:85px;"><?php echo $column_used_reward_points; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_coupon', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_coupon; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_coupon_name', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_coupon_name; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_coupon_code', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_coupon_code; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_tax', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_order_tax; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_credit', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_credit; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_voucher', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_voucher; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_voucher_code', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_voucher_code; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_commission', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_order_commission; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_value', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_order_value; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_refund', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_order_refund; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_shipping_method', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_order_shipping_method; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_payment_method', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_order_payment_method; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_status', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_order_status; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_store', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_order_store; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_customer_cust_id', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_customer_cust_id; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_custom_fields', $advso_settings_all_columns)) { ?>
                                            <?php if ($custom_fields) { ?>
                                                <?php foreach ($custom_fields as $custom_field) { ?>
                                                    <td class="left" nowrap="nowrap"><?php echo $custom_field['name']; ?></td>
                                                <?php } ?>
                                            <?php } ?>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_first_name', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_first_name; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_last_name', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_last_name; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_company', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_company; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_address_1', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_address_1; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_address_2', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_address_2; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_city', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_city; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_zone', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_zone; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_zone_id', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_zone_id; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_zone_code', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_zone_code; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_postcode', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_postcode; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_country', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_country; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_country_id', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_country_id; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_billing_country_code', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_country_code; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_customer_telephone', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_customer_telephone; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_first_name', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_first_name; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_last_name', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_last_name; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_company', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_company; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_address_1', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_address_1; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_address_2', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_address_2; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_city', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_city; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_zone', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_zone; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_zone_id', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_zone_id; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_zone_code', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_zone_code; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_postcode', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_postcode; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_country', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_country; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_country_id', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_country_id; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_shipping_country_code', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_country_code; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_weight', $advso_settings_all_columns)) { ?>
                                            <td class="right" nowrap="nowrap"><?php echo $column_order_weight; ?></td>
                                        <?php } ?>
                                        <?php if (in_array('all_order_comment', $advso_settings_all_columns)) { ?>
                                            <td class="left" nowrap="nowrap"><?php echo $column_order_comment; ?></td>
                                        <?php } ?>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php foreach ($orders as $order) { ?>
                                        <?php if ($order['product_id']) { ?>
                                            <tr bgcolor="#FFFFFF">
                                                <td class="left" nowrap="nowrap" style="background-color:#fff2d0;" title="<?php echo $column_order_order_id; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><a><?php echo $order['order_id_link']; ?></a></td>
                                                <td class="left" nowrap="nowrap" title="<?php echo $column_order_date_added; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['date_added']; ?></td>
                                                <?php if (in_array('all_order_inv_no', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_order_inv_no; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['invoice']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_customer_name', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_order_customer; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['name']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_email', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_order_email; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['email']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_customer_group', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_order_customer_group; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['cust_group']; ?></td>
                                                <?php } ?>
                                                <?php if ($filter_details == 'all_details_products') { ?>
                                                    <?php if (in_array('all_prod_id', $advso_settings_all_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" title="<?php echo $column_prod_id; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['product_id_link']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_sku', $advso_settings_all_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" title="<?php echo $column_prod_sku; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['product_sku']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_model', $advso_settings_all_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" title="<?php echo $column_prod_model; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['product_model']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_name', $advso_settings_all_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" title="<?php echo $column_prod_name; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['product_name']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_option', $advso_settings_all_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" title="<?php echo $column_prod_option; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['product_options']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_attributes', $advso_settings_all_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" title="<?php echo $column_prod_attributes; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['product_attributes']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_category', $advso_settings_all_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" title="<?php echo $column_prod_category; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['product_category']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_manu', $advso_settings_all_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" title="<?php echo $column_prod_manu; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['product_manu']; ?></td>
                                                    <?php } ?>
                                                <?php } ?>
                                                <?php if ($filter_details == 'all_details_products' or $filter_details == 'all_details_orders') { ?>
                                                    <?php if (in_array('all_prod_currency', $advso_settings_all_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" title="<?php echo $column_prod_currency; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['currency_code']; ?></td>
                                                    <?php } ?>
                                                <?php } ?>
                                                <?php if ($filter_details == 'all_details_products') { ?>
                                                    <?php if (in_array('all_prod_price', $advso_settings_all_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" title="<?php echo $column_prod_price; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_price']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_quantity', $advso_settings_all_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" title="<?php echo $column_prod_quantity; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_quantity']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_total_excl_vat', $advso_settings_all_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" title="<?php echo $column_prod_total_excl_vat; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_total_excl_vat']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_tax', $advso_settings_all_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" title="<?php echo $column_prod_tax; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_tax']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_total_incl_vat', $advso_settings_all_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" title="<?php echo $column_prod_total_incl_vat; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_total_incl_vat']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_qty_refund', $advso_settings_all_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" title="<?php echo $column_prod_qty_refunded; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_qty_refund']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_refund', $advso_settings_all_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" title="<?php echo $column_prod_refunded; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_refund']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('all_prod_reward_points', $advso_settings_all_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" title="<?php echo $column_prod_reward_points; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_reward_points']; ?></td>
                                                    <?php } ?>
                                                <?php } ?>
                                                <?php if (in_array('all_sub_total', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_sub_total; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_sub_total']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_handling', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_handling; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_handling']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_loworder', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_loworder; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_low_order_fee']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_shipping; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_shipping']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_reward', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_reward; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_reward']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_reward_points', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_earned_reward_points; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_earned_points']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_reward_points', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_used_reward_points; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_used_points']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_coupon', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_coupon; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_coupon']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_coupon_name', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_coupon_name; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_coupon_name']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_coupon_code', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_coupon_code; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_coupon_code']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_tax', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_order_tax; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_tax']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_credit', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_credit; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_credit']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_voucher', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_voucher; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_voucher']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_voucher_code', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_voucher_code; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_voucher_code']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_commission', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_order_commission; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_commission']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_value', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_order_value; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_value']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_refund', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_order_refund; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_refund']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_shipping_method', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_order_shipping_method; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_method']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_payment_method', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_order_payment_method; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_method']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_status', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_order_status; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['order_status']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_store', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_order_store; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['store_name']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_customer_cust_id', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_customer_cust_id; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]">
                                                        <?php if ($order['customer_id'] == 0) { ?>
                                                            <?php echo $order['customer_id']; ?>
                                                        <?php } else { ?>
                                                            <?php echo $order['customer_id_link']; ?>
                                                        <?php } ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_custom_fields', $advso_settings_all_columns)) { ?>
                                                    <?php if ($order['custom_fields']) { ?>
                                                        <?php foreach ($order['custom_fields'] as $custom_field) { ?>
                                                            <td class="left" nowrap="nowrap" title="<?php echo $custom_field['name']; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $custom_field['value']; ?></td>
                                                        <?php } ?>
                                                    <?php } else { ?>
                                                        <?php foreach ($custom_fields as $custom_field) { ?>
                                                            <td class="left" nowrap="nowrap" title="<?php echo $custom_field['name']; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"></td>
                                                        <?php } ?>
                                                    <?php } ?>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_first_name', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_first_name); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_firstname']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_last_name', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_last_name); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_lastname']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_company', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_company); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_company']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_address_1', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_address_1); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_address_1']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_address_2', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_address_2); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_address_2']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_city', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_city); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_city']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_zone', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_zone); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_zone']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_zone_id', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_zone_id); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_zone_id']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_zone_code', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_zone_code); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_zone_code']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_postcode', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_postcode); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_postcode']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_country', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_country); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_country']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_country_id', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_country_id); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_country_id']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_billing_country_code', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_billing_country_code); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['payment_country_code']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_customer_telephone', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_customer_telephone; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['telephone']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_first_name', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_first_name); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_firstname']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_last_name', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_last_name); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_lastname']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_company', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_company); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_company']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_address_1', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_address_1); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_address_1']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_address_2', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_address_2); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_address_2']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_city', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_city); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_city']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_zone', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_zone); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_zone']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_zone_id', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_zone_id); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_zone_id']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_zone_code', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_zone_code); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_zone_code']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_postcode', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_postcode); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_postcode']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_country', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_country); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_country']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_country_id', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_country_id); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_country_id']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_shipping_country_code', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo strip_tags($column_shipping_country_code); ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['shipping_country_code']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_weight', $advso_settings_all_columns)) { ?>
                                                    <td class="right" nowrap="nowrap" title="<?php echo $column_order_weight; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['order_weight']; ?></td>
                                                <?php } ?>
                                                <?php if (in_array('all_order_comment', $advso_settings_all_columns)) { ?>
                                                    <td class="left" nowrap="nowrap" title="<?php echo $column_order_comment; ?> [<?php echo $column_order_order_id; ?>: <?php echo $order['order_id']; ?>]"><?php echo $order['order_comment']; ?></td>
                                                <?php } ?>
                                            </tr>
                                        <?php } ?>
                                    <?php } ?>
                                </tbody>
                            </table>
                        <?php } else { ?>
                            <?php if ($filter_limit != '999999') { ?>
                                <table width="100%">
                                    <tr>
                                        <td align="center"><?php echo $text_no_results; ?></td>
                                    </tr>
                                </table>
                            <?php } ?>
                        <?php } ?>
                    </td>
                </tr>
            </table>
        <?php } ?>
        <?php if ($filter_details != 'all_details_products' && $filter_details != 'all_details_orders' && $filter_limit != '999999') { ?>
            <table class="list_main">
                <thead>
                    <tr>
                        <?php $c = 0; ?>
                        <?php if ($filter_report == 'sales_summary' or $filter_report == 'abandoned_orders' or $filter_report == 'tax') { ?>
                            <?php if ($filter_group == 'year') { ?>
                                <td class="left" colspan="2" nowrap="nowrap"><?php
                                    echo $column_year;
                                    $c++;
                                    $c++;
                                    ?></td>
                            <?php } elseif ($filter_group == 'quarter') { ?>
                                <td class="left" nowrap="nowrap"><?php
                                    echo $column_year;
                                    $c++;
                                    ?></td>
                                <td class="left" nowrap="nowrap"><?php
                                    echo $column_quarter;
                                    $c++;
                                    ?></td>
                            <?php } elseif ($filter_group == 'month') { ?>
                                <td class="left" nowrap="nowrap"><?php
                                    echo $column_year;
                                    $c++;
                                    ?></td>
                                <td class="left" nowrap="nowrap"><?php
                                    echo $column_month;
                                    $c++;
                                    ?></td>
                            <?php } elseif ($filter_group == 'day') { ?>
                                <td class="left" colspan="2" nowrap="nowrap"><?php
                                    echo $column_date;
                                    $c++;
                                    $c++;
                                    ?></td>
                            <?php } elseif ($filter_group == 'order') { ?>
                                <td class="left" nowrap="nowrap"><?php
                                    echo $column_order_order_id;
                                    $c++;
                                    ?></td>
                                <td class="left" nowrap="nowrap"><?php
                                    echo $column_order_date_added;
                                    $c++;
                                    ?></td>
                            <?php } else { ?>
                                <td class="left" width="70" nowrap="nowrap"><?php
                                    echo $column_date_start;
                                    $c++;
                                    ?></td>
                                <td class="left" width="70" nowrap="nowrap"><?php
                                    echo $column_date_end;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                        <?php } elseif ($filter_report == 'day_of_week') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_day_of_week;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'hour') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_hour;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'store') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_store;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'currency') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_currency;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'customer_group') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_customer_group;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'country') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_country;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'postcode') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_postcode;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'region_state') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_region_state;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'city') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_city;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'payment_method') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_payment_method;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'shipping_method') { ?>
                            <td class="left" colspan="2" nowrap="nowrap"><?php
                                echo $column_shipping_method;
                                $c++;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'coupon') { ?>
                            <td class="left" width="70" nowrap="nowrap"><?php
                                echo $column_date_start;
                                $c++;
                                ?></td>
                            <td class="left" width="70" nowrap="nowrap"><?php
                                echo $column_date_end;
                                $c++;
                                ?></td>
                        <?php } elseif ($filter_report == 'voucher') { ?>
                            <td class="left" width="70" nowrap="nowrap"><?php
                                echo $column_date_start;
                                $c++;
                                ?></td>
                            <td class="left" width="70" nowrap="nowrap"><?php
                                echo $column_date_end;
                                $c++;
                                ?></td>
                        <?php } ?>
                        <?php if ($filter_report == 'tax') { ?>
                            <?php if (in_array('tr_tax_name', $advso_settings_tr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_tax_title;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('tr_tax_rate', $advso_settings_tr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_tax_rate;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('tr_tax_orders', $advso_settings_tr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_orders;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('tr_tax_total', $advso_settings_tr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_tax_total;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                        <?php } elseif ($filter_report == 'coupon') { ?>
                            <?php if (in_array('cr_coupon_name', $advso_settings_cr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_coupon_name;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('cr_coupon_code', $advso_settings_cr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_coupon_code;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('cr_coupon_discount', $advso_settings_cr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_coupon_discount;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('cr_coupon_type', $advso_settings_cr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_coupon_type;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('cr_coupon_status', $advso_settings_cr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_coupon_status;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('cr_coupon_date_added', $advso_settings_cr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_coupon_date_added;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('cr_coupon_last_used', $advso_settings_cr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_coupon_last_used;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('cr_coupon_amount', $advso_settings_cr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_coupon_amount;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('cr_coupon_orders', $advso_settings_cr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_orders;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('cr_coupon_total', $advso_settings_cr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_total;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                                <?php if ($filter_details == 'basic_details') { ?><td class="center"><?php $c++; ?><a class="btn btn-info btn-sm toggle-all expand" data-original-title="<?php echo $button_expand; ?>" data-toggle="tooltip"><i id="circle" class="fa fa-arrow-circle-down"></i></a></td><?php } ?>
                            <?php } elseif ($filter_report == 'voucher') { ?>
                                <?php if (in_array('vr_voucher_code', $advso_settings_vr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_voucher_code;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_from_name', $advso_settings_vr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_voucher_from_name;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_from_email', $advso_settings_vr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_voucher_from_email;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_to_name', $advso_settings_vr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_voucher_to_name;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_to_email', $advso_settings_vr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_voucher_to_email;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_theme', $advso_settings_vr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_voucher_theme;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_status', $advso_settings_vr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_voucher_status;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_date_added', $advso_settings_vr_columns)) { ?>
                                <td class="left"><?php
                                    echo $column_voucher_date_added;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_amount', $advso_settings_vr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_voucher_amount;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_used_value', $advso_settings_vr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_voucher_used_value;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_remaining_value', $advso_settings_vr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_voucher_remaining_value;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_orders', $advso_settings_vr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_orders;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('vr_voucher_total', $advso_settings_vr_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_total;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                                <?php if ($filter_details == 'basic_details') { ?><td class="center"><?php $c++; ?><a class="btn btn-info btn-sm toggle-all expand" data-original-title="<?php echo $button_expand; ?>" data-toggle="tooltip"><i id="circle" class="fa fa-arrow-circle-down"></i></a></td><?php } ?>
                            <?php } else { ?>
                                <?php if (in_array('mv_orders', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_orders;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_customers', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_customers;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_products', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_products;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_sub_total', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_sub_total;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_handling', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_handling;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_loworder', $advso_settings_mv_columns)) { ?>
                                <td class="right" style="min-width:80px;"><?php
                                    echo $column_loworder;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_shipping', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_shipping;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_reward', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_reward;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_earned_points', $advso_settings_mv_columns)) { ?>
                                <td class="right" style="min-width:105px;"><?php
                                    echo $column_earned_reward_points;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_used_points', $advso_settings_mv_columns)) { ?>
                                <td class="right" style="min-width:105px;"><?php
                                    echo $column_used_reward_points;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_coupon', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_coupon;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_tax', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_taxes;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_credit', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_credit;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_voucher', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_voucher;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_commission', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_commission;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_total', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_total;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_aov', $advso_settings_mv_columns)) { ?>
                                <td class="right" style="min-width:80px;"><?php
                                    echo $column_aov;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                            <?php if (in_array('mv_refunds', $advso_settings_mv_columns)) { ?>
                                <td class="right"><?php
                                    echo $column_refunds;
                                    $c++;
                                    ?></td>
                            <?php } ?>
                                <?php if ($filter_details == 'basic_details') { ?><td class="center"><?php $c++; ?><a class="btn btn-info btn-sm toggle-all expand" data-original-title="<?php echo $button_expand; ?>" data-toggle="tooltip"><i id="circle" class="fa fa-arrow-circle-down"></i></a></td><?php } ?>
                            <?php } ?>
                    </tr>
                </thead>
                <tbody>
                    <?php if ($orders) { ?>
                        <?php foreach ($orders as $order) { ?>
                            <tr <?php echo ($filter_details == 'basic_details') ? 'style="cursor:pointer;" title="' . $text_detail . '"' : '' ?> id="show_details_<?php echo $order['order_id']; ?>">
                                <?php if ($filter_report == 'sales_summary' or $filter_report == 'abandoned_orders' or $filter_report == 'tax') { ?>
                                    <?php if ($filter_group == 'year') { ?>
                                        <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['year']; ?></td>
                                    <?php } elseif ($filter_group == 'quarter') { ?>
                                        <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['year']; ?></td>
                                        <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['quarter']; ?></td>
                                    <?php } elseif ($filter_group == 'month') { ?>
                                        <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['year']; ?></td>
                                        <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['month']; ?></td>
                                    <?php } elseif ($filter_group == 'day') { ?>
                                        <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['date_start']; ?></td>
                                    <?php } elseif ($filter_group == 'order') { ?>
                                        <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['order_id']; ?></td>
                                        <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['date_start']; ?></td>
                                    <?php } else { ?>
                                        <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['date_start']; ?></td>
                                        <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['date_end']; ?></td>
                                    <?php } ?>
                                <?php } elseif ($filter_report == 'day_of_week') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['day_of_week']; ?></td>
                                <?php } elseif ($filter_report == 'hour') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['hour']; ?></td>
                                <?php } elseif ($filter_report == 'store') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['store_name']; ?></td>
                                <?php } elseif ($filter_report == 'currency') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['currency_code']; ?></td>
                                <?php } elseif ($filter_report == 'customer_group') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['customer_group']; ?></td>
                                <?php } elseif ($filter_report == 'country') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['payment_country']; ?></td>
                                <?php } elseif ($filter_report == 'postcode') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['payment_postcode']; ?></td>
                                <?php } elseif ($filter_report == 'region_state') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['payment_zone']; ?></td>
                                <?php } elseif ($filter_report == 'city') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['payment_city']; ?></td>
                                <?php } elseif ($filter_report == 'payment_method') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['payment_method']; ?></td>
                                <?php } elseif ($filter_report == 'shipping_method') { ?>
                                    <td class="left" colspan="2" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['shipping_method']; ?></td>
                                <?php } elseif ($filter_report == 'coupon') { ?>
                                    <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['date_start']; ?></td>
                                    <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['date_end']; ?></td>
                                <?php } elseif ($filter_report == 'voucher') { ?>
                                    <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['date_start']; ?></td>
                                    <td class="left" nowrap="nowrap" style="background-color:#F9F9F9;"><?php echo $order['date_end']; ?></td>
                                <?php } ?>
                                <?php if ($filter_report == 'tax') { ?>
                                    <?php if (in_array('tr_tax_name', $advso_settings_tr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['tax_title']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('tr_tax_rate', $advso_settings_tr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['tax_rate']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('tr_tax_orders', $advso_settings_tr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['orders']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('tr_tax_total', $advso_settings_tr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['total_tax']; ?></td>
                                    <?php } ?>
                                <?php } elseif ($filter_report == 'coupon') { ?>
                                    <?php if (in_array('cr_coupon_name', $advso_settings_cr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['coupon_name']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_code', $advso_settings_cr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['coupon_code']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_discount', $advso_settings_cr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['coupon_discount']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_type', $advso_settings_cr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['coupon_type']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_status', $advso_settings_cr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['coupon_status']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_date_added', $advso_settings_cr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['coupon_date_added']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_last_used', $advso_settings_cr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['coupon_last_used']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_amount', $advso_settings_cr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['coupon_amount']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_orders', $advso_settings_cr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['coupon_orders']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_total', $advso_settings_cr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['coupon_total']; ?></td>
                                    <?php } ?>
                                    <?php if ($filter_details == 'basic_details') { ?><td class="center"><a class="btn btn-info btn-xs"><?php echo $text_detail; ?></a></td><?php } ?>
                                <?php } elseif ($filter_report == 'voucher') { ?>
                                    <?php if (in_array('vr_voucher_code', $advso_settings_vr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['voucher_code']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_from_name', $advso_settings_vr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['voucher_from_name']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_from_email', $advso_settings_vr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['voucher_from_email']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_to_name', $advso_settings_vr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['voucher_to_name']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_to_email', $advso_settings_vr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['voucher_to_email']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_theme', $advso_settings_vr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['voucher_theme']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_status', $advso_settings_vr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['voucher_status']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_date_added', $advso_settings_vr_columns)) { ?>
                                        <td class="left" nowrap="nowrap"><?php echo $order['voucher_date_added']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_amount', $advso_settings_vr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['voucher_amount']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_used_value', $advso_settings_vr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['voucher_used_value']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_remaining_value', $advso_settings_vr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['voucher_remaining_value']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_orders', $advso_settings_vr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['voucher_orders']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_total', $advso_settings_vr_columns)) { ?>
                                        <td class="right" nowrap="nowrap"><?php echo $order['voucher_total']; ?></td>
                                    <?php } ?>
                                    <?php if ($filter_details == 'basic_details') { ?><td class="center"><a class="btn btn-info btn-xs"><?php echo $text_detail; ?></a></td><?php } ?>
                                <?php } else { ?>
                                    <?php if (in_array('mv_orders', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['orders']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_customers', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['customers']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_products', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['products']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_sub_total', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['sub_total']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_handling', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['handling']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_loworder', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['low_order_fee']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_shipping', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['shipping']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_reward', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['reward']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_earned_points', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['earned_reward_points']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_used_points', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['used_reward_points']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_coupon', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['coupon']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_tax', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['taxes']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_credit', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['credit']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_voucher', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['voucher']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_commission', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['commission']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_total', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['total']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_aov', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['aov']; ?></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_refunds', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['refunds']; ?></td>
                                    <?php } ?>
                                    <?php if ($filter_details == 'basic_details') { ?><td class="center" style="padding:5px;"><a class="btn btn-info btn-xs"><?php echo $text_detail; ?></a></td><?php } ?>
                                <?php } ?>
                            </tr>
                            <tr>
                                <td colspan="<?php echo $c; ?>" class="center">
                                    <?php if ($filter_details == 'basic_details' && $filter_report != 'tax') { ?>
                                        <script type="text/javascript">
                                            $('#show_details_<?php echo $order["order_id"]; ?>').click(function () {
                                                $('#tab_details_<?php echo $order["order_id"]; ?>').slideToggle('slow');
                                            });
                                        </script>
                                        <div id="tab_details_<?php echo $order['order_id']; ?>" class="more" style="display:none;">
                                            <table class="list_detail">
                                                <thead>
                                                    <tr>
                                                        <?php if (in_array('ol_order_order_id', $advso_settings_ol_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_order_order_id; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_date_added', $advso_settings_ol_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_order_date_added; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_inv_no', $advso_settings_ol_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_order_inv_no; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_customer', $advso_settings_ol_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_order_customer; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_email', $advso_settings_ol_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_order_email; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_customer_group', $advso_settings_ol_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_order_customer_group; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_shipping_method', $advso_settings_ol_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_order_shipping_method; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_payment_method', $advso_settings_ol_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_order_payment_method; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_status', $advso_settings_ol_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_order_status; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_store', $advso_settings_ol_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_order_store; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_currency', $advso_settings_ol_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_order_currency; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_quantity', $advso_settings_ol_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_order_quantity; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_sub_total', $advso_settings_ol_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_order_sub_total; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_shipping', $advso_settings_ol_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_order_shipping; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_tax', $advso_settings_ol_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_order_tax; ?></td>
                                                        <?php } ?>
                                                        <?php if ($filter_report == 'coupon') { ?>
                                                            <?php if (in_array('cr_coupon_amount', $advso_settings_cr_columns)) { ?>
                                                                <td class="right" nowrap="nowrap"><?php echo $column_coupon; ?></td>
                                                            <?php } ?>
                                                        <?php } ?>
                                                        <?php if ($filter_report == 'voucher') { ?>
                                                            <?php if (in_array('vr_voucher_used_value', $advso_settings_vr_columns)) { ?>
                                                                <td class="right" nowrap="nowrap"><?php echo $column_voucher; ?></td>
                                                            <?php } ?>
                                                        <?php } ?>
                                                        <?php if (in_array('ol_order_value', $advso_settings_ol_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_order_value; ?></td>
                                                        <?php } ?>
                                                    </tr>
                                                </thead>
                                                <tr bgcolor="#FFFFFF">
                                                    <?php if (in_array('ol_order_order_id', $advso_settings_ol_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" style="background-color:#fff2d0;"><a><?php echo $order['order_ord_id_link']; ?></a></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_date_added', $advso_settings_ol_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['order_ord_date']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_inv_no', $advso_settings_ol_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['order_inv_no']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_customer', $advso_settings_ol_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['order_name']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_email', $advso_settings_ol_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['order_email']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_customer_group', $advso_settings_ol_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['order_group']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_shipping_method', $advso_settings_ol_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['order_shipping_method']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_payment_method', $advso_settings_ol_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['order_payment_method']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_status', $advso_settings_ol_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['order_status']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_store', $advso_settings_ol_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['order_store']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_currency', $advso_settings_ol_columns)) { ?>
                                                        <td class="right" nowrap="nowrap"><?php echo $order['order_currency']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_quantity', $advso_settings_ol_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_products']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_sub_total', $advso_settings_ol_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_sub_total']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_shipping', $advso_settings_ol_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_shipping']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_tax', $advso_settings_ol_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_tax']; ?></td>
                                                    <?php } ?>
                                                    <?php if ($filter_report == 'coupon') { ?>
                                                        <?php if (in_array('cr_coupon_amount', $advso_settings_cr_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"<?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_coupon']; ?></td>
                                                        <?php } ?>
                                                    <?php } ?>
                                                    <?php if ($filter_report == 'voucher') { ?>
                                                        <?php if (in_array('vr_voucher_used_value', $advso_settings_vr_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"<?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_voucher']; ?></td>
                                                        <?php } ?>
                                                    <?php } ?>
                                                    <?php if (in_array('ol_order_value', $advso_settings_ol_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['order_value']; ?></td>
                                                    <?php } ?>
                                                </tr>
                                            </table>
                                            <table class="list_detail">
                                                <thead>
                                                    <tr>
                                                        <?php if (in_array('pl_prod_order_id', $advso_settings_pl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_prod_order_id; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_date_added', $advso_settings_pl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_prod_date_added; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_id', $advso_settings_pl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_prod_id; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_sku', $advso_settings_pl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_prod_sku; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_model', $advso_settings_pl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_prod_model; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_name', $advso_settings_pl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_prod_name; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_option', $advso_settings_pl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_prod_option; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_attributes', $advso_settings_pl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_prod_attributes; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_category', $advso_settings_pl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_prod_category; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_manu', $advso_settings_pl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_prod_manu; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_currency', $advso_settings_pl_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_prod_currency; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_price', $advso_settings_pl_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_prod_price; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_quantity', $advso_settings_pl_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_prod_quantity; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_total_excl_vat', $advso_settings_pl_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_prod_total_excl_vat; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_tax', $advso_settings_pl_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_prod_tax; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('pl_prod_total_incl_vat', $advso_settings_pl_columns)) { ?>
                                                            <td class="right" nowrap="nowrap"><?php echo $column_prod_total_incl_vat; ?></td>
                                                        <?php } ?>
                                                    </tr>
                                                </thead>
                                                <tr bgcolor="#FFFFFF">
                                                    <?php if (in_array('pl_prod_order_id', $advso_settings_pl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" style="background-color:#fff2d0;"><a><?php echo $order['product_ord_id_link']; ?></a></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_date_added', $advso_settings_pl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['product_ord_date']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_id', $advso_settings_pl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['product_pid_link']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_sku', $advso_settings_pl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['product_sku']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_model', $advso_settings_pl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['product_model']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_name', $advso_settings_pl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['product_name']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_option', $advso_settings_pl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['product_option']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_attributes', $advso_settings_pl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['product_attributes']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_category', $advso_settings_pl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['product_category']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_manu', $advso_settings_pl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['product_manu']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_currency', $advso_settings_pl_columns)) { ?>
                                                        <td class="right" nowrap="nowrap"><?php echo $order['product_currency']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_price', $advso_settings_pl_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_price']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_quantity', $advso_settings_pl_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_quantity']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_total_excl_vat', $advso_settings_pl_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_total_excl_vat']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_tax', $advso_settings_pl_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_tax']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('pl_prod_total_incl_vat', $advso_settings_pl_columns)) { ?>
                                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="text-decoration:line-through;"' : '' ?> ><?php echo $order['product_total_incl_vat']; ?></td>
                                                    <?php } ?>
                                                </tr>
                                            </table>
                                            <table class="list_detail">
                                                <thead>
                                                    <tr>
                                                        <?php if (in_array('cl_customer_order_id', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_customer_order_id; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_customer_date_added', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_customer_date_added; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_customer_cust_id', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_customer_cust_id; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_billing_name', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_name; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_billing_company', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_company; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_billing_address_1', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_address_1; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_billing_address_2', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_address_2; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_billing_city', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_city; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_billing_zone', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_zone; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_billing_postcode', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_postcode; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_billing_country', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_billing_country; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_customer_telephone', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_customer_telephone; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_shipping_name', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_name; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_shipping_company', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_company; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_shipping_address_1', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_address_1; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_shipping_address_2', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_address_2; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_shipping_city', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_city; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_shipping_zone', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_zone; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_shipping_postcode', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_postcode; ?></td>
                                                        <?php } ?>
                                                        <?php if (in_array('cl_shipping_country', $advso_settings_cl_columns)) { ?>
                                                            <td class="left" nowrap="nowrap"><?php echo $column_shipping_country; ?></td>
                                                        <?php } ?>
                                                    </tr>
                                                </thead>
                                                <tr bgcolor="#FFFFFF">
                                                    <?php if (in_array('cl_customer_order_id', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap" style="background-color:#fff2d0;"><a><?php echo $order['customer_ord_id_link']; ?></a></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_customer_date_added', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['customer_ord_date']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_customer_cust_id', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['customer_cust_id_link']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_billing_name', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['billing_name']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_billing_company', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['billing_company']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_billing_address_1', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['billing_address_1']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_billing_address_2', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['billing_address_2']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_billing_city', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['billing_city']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_billing_zone', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['billing_zone']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_billing_postcode', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['billing_postcode']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_billing_country', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['billing_country']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_customer_telephone', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['customer_telephone']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_shipping_name', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['shipping_name']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_shipping_company', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['shipping_company']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_shipping_address_1', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['shipping_address_1']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_shipping_address_2', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['shipping_address_2']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_shipping_city', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['shipping_city']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_shipping_zone', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['shipping_zone']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_shipping_postcode', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['shipping_postcode']; ?></td>
                                                    <?php } ?>
                                                    <?php if (in_array('cl_shipping_country', $advso_settings_cl_columns)) { ?>
                                                        <td class="left" nowrap="nowrap"><?php echo $order['shipping_country']; ?></td>
                                                    <?php } ?>
                                                </tr>
                                            </table>
                                        </div>
                                    <?php } ?>
                                </td>
                            </tr>
                        <?php } ?>
                        <?php if ($filter_report != 'currency') { ?>
                            <tr>
                                <td colspan="<?php echo $c; ?>"></td>
                            </tr>
                            <tr>
                                <td colspan="2" class="right" style="background-color:#E5E5E5;"><strong><?php echo $text_filter_total; ?></strong></td>
                                <?php if ($filter_report == 'tax') { ?>
                                    <?php if (in_array('tr_tax_name', $advso_settings_tr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('tr_tax_rate', $advso_settings_tr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('tr_tax_orders', $advso_settings_tr_columns)) { ?>
                                        <td class="right" nowrap="nowrap" style="background-color:#E7EFEF; color:#003A88;"><strong><?php echo $order['orders_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('tr_tax_total', $advso_settings_tr_columns)) { ?>
                                        <td class="right" nowrap="nowrap" style="background-color:#E7EFEF; color:#003A88;"><strong><?php echo $order['total_tax_total']; ?></strong></td>
                                    <?php } ?>
                                <?php } elseif ($filter_report == 'coupon') { ?>
                                    <?php if (in_array('cr_coupon_name', $advso_settings_cr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_code', $advso_settings_cr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_discount', $advso_settings_cr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_type', $advso_settings_cr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_status', $advso_settings_cr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_date_added', $advso_settings_cr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_last_used', $advso_settings_cr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_amount', $advso_settings_cr_columns)) { ?>
                                        <td class="right" nowrap="nowrap" style="background-color:#E7EFEF; color:#003A88;"><strong><?php echo $order['coupon_amount_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_orders', $advso_settings_cr_columns)) { ?>
                                        <td class="right" nowrap="nowrap" style="background-color:#E7EFEF; color:#003A88;"><strong><?php echo $order['coupon_orders_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('cr_coupon_total', $advso_settings_cr_columns)) { ?>
                                        <td class="right" nowrap="nowrap" style="background-color:#E7EFEF; color:#003A88;"><strong><?php echo $order['coupon_total_total']; ?></strong></td>
                                    <?php } ?>
                                            <?php if ($filter_details == 'basic_details') { ?><td></td><?php } ?>
                                        <?php } elseif ($filter_report == 'voucher') { ?>
                                            <?php if (in_array('vr_voucher_code', $advso_settings_vr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_from_name', $advso_settings_vr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_from_email', $advso_settings_vr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_to_name', $advso_settings_vr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_to_email', $advso_settings_vr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_theme', $advso_settings_vr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_status', $advso_settings_vr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_date_added', $advso_settings_vr_columns)) { ?>
                                        <td style="background-color:#E5E5E5;"></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_amount', $advso_settings_vr_columns)) { ?>
                                        <td class="right" nowrap="nowrap" style="background-color:#E7EFEF; color:#003A88;"><strong><?php echo $order['voucher_amount_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_used_value', $advso_settings_vr_columns)) { ?>
                                        <td class="right" nowrap="nowrap" style="background-color:#E7EFEF; color:#003A88;"><strong><?php echo $order['voucher_used_value_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_remaining_value', $advso_settings_vr_columns)) { ?>
                                        <td class="right" nowrap="nowrap" style="background-color:#E7EFEF; color:#003A88;"><strong><?php echo $order['voucher_remaining_value_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_orders', $advso_settings_vr_columns)) { ?>
                                        <td class="right" nowrap="nowrap" style="background-color:#E7EFEF; color:#003A88;"><strong><?php echo $order['voucher_orders_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('vr_voucher_total', $advso_settings_vr_columns)) { ?>
                                        <td class="right" nowrap="nowrap" style="background-color:#E7EFEF; color:#003A88;"><strong><?php echo $order['voucher_total_total']; ?></strong></td>
                                    <?php } ?>
                                            <?php if ($filter_details == 'basic_details') { ?><td></td><?php } ?>
                                        <?php } else { ?>
                                            <?php if (in_array('mv_orders', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['orders_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_customers', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['customers_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_products', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['products_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_sub_total', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['sub_total_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_handling', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['handling_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_loworder', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['low_order_fee_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_shipping', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['shipping_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_reward', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['reward_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_earned_points', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['earned_reward_points_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_used_points', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['used_reward_points_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_coupon', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['coupon_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_tax', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['taxes_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_credit', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['credit_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_voucher', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['voucher_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_commission', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['commission_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_total', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['total_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_aov', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['aov_total']; ?></strong></td>
                                    <?php } ?>
                                    <?php if (in_array('mv_refunds', $advso_settings_mv_columns)) { ?>
                                        <td class="right" nowrap="nowrap" <?php echo ($filter_report == 'abandoned_orders') ? 'style="background-color:#E7EFEF; color:#003A88; text-decoration:line-through;"' : 'style="background-color:#E7EFEF; color:#003A88;"' ?> ><strong><?php echo $order['refunds_total']; ?></strong></td>
                                    <?php } ?>
                                            <?php if ($filter_details == 'basic_details') { ?><td></td><?php } ?>
                                        <?php } ?>
                            </tr>
                        <?php } ?>
                    <?php } else { ?>
                        <tr>
                            <td class="noresult" colspan="<?php echo $c; ?>"><?php echo $text_no_results; ?></td>
                        </tr>
                    <?php } ?>
                </tbody>
            </table>
        <?php } ?>
        <?php if ($filter_limit != '999999') { ?>
        </div>
        <div>
            <div style="float:left;"><?php echo $pagination; ?></div>
            <div style="float:right;"><?php echo $results; ?></div>
        </div>
    </div>
<?php } ?>