public function results_markup($html, $data, $form, $fields)
    {
        $html = "<table width='100%' id='gaddon-results-summary'>\n                    <tr>\n                        <td class='gaddon-results-summary-label'>" . esc_html__('Today', 'gravityforms') . "</td>\n                        <td class='gaddon-results-summary-label'>" . esc_html__('Yesterday', 'gravityforms') . "</td>\n                        <td class='gaddon-results-summary-label'>" . esc_html__('Last 30 Days', 'gravityforms') . "</td>\n                        <td class='gaddon-results-summary-label'>" . esc_html__('Total', 'gravityforms') . "</td>\n                    </tr>\n                    <tr>\n                        <td class='gaddon-results-summary-data'>\n                            <div class='gaddon-results-summary-data-box'>\n                                <div class='gaddon-results-summary-primary'>{$data['summary']['today']['revenue']}</div>\n                                <div class='gaddon-results-summary-secondary'>{$data['summary']['today']['subscriptions']} " . esc_html__('subscriptions', 'gravityforms') . "</div>\n                                <div class='gaddon-results-summary-secondary'>{$data['summary']['today']['orders']} " . esc_html__('orders', 'gravityforms') . "</div>\n                            </div>\n                        </td>\n                        <td class='gaddon-results-summary-data'>\n                            <div class='gaddon-results-summary-data-box'>\n                                <div class='gaddon-results-summary-primary'>{$data['summary']['yesterday']['revenue']}</div>\n                                <div class='gaddon-results-summary-secondary'>{$data['summary']['yesterday']['subscriptions']} " . esc_html__('subscriptions', 'gravityforms') . "</div>\n                                <div class='gaddon-results-summary-secondary'>{$data['summary']['yesterday']['orders']} " . esc_html__('orders', 'gravityforms') . "</div>\n                            </div>\n                        </td>\n\n                        <td class='gaddon-results-summary-data'>\n                            <div class='gaddon-results-summary-data-box'>\n                                <div class='gaddon-results-summary-primary'>{$data['summary']['last30']['revenue']}</div>\n                                <div class='gaddon-results-summary-secondary'>{$data['summary']['last30']['subscriptions']} " . esc_html__('subscriptions', 'gravityforms') . "</div>\n                                <div class='gaddon-results-summary-secondary'>{$data['summary']['last30']['orders']} " . esc_html__('orders', 'gravityforms') . "</div>\n                            </div>\n                        </td>\n                        <td class='gaddon-results-summary-data'>\n                            <div class='gaddon-results-summary-data-box'>\n                                <div class='gaddon-results-summary-primary'>{$data['summary']['total']['revenue']}</div>\n                                <div class='gaddon-results-summary-secondary'>{$data['summary']['total']['subscriptions']} " . esc_html__('subscriptions', 'gravityforms') . "</div>\n                                <div class='gaddon-results-summary-secondary'>{$data['summary']['total']['orders']} " . esc_html__('orders', 'gravityforms') . '</div>
                            </div>
                        </td>

                    </tr>
                 </table>';
        if ($data['row_count'] == '0') {
            $html .= "<div class='updated' style='padding:20px; margin-top:40px;'>" . esc_html__("There aren't any transactions that match your criteria.", 'gravityforms') . '</div>';
        } else {
            $chart_data = $this->get_chart_data($data);
            $html .= $this->get_sales_chart($chart_data);
            //Getting sales table markup
            $sales_table = new GFPaymentStatsTable($data['table']['header'], $data['data'], $data['row_count'], $data['page_size']);
            $sales_table->prepare_items();
            ob_start();
            $sales_table->display();
            $html .= ob_get_clean();
        }
        $html .= '</form>';
        return $html;
    }
 public function results_markup($html, $data, $form, $fields)
 {
     $html = "<table width='100%' id='gaddon-results-summary'>\n                    <tr>\n                        <td class='gaddon-results-summary-label'>" . __("Today", "gravityforms") . "</td>\n                        <td class='gaddon-results-summary-label'>" . __("Yesterday", "gravityforms") . "</td>\n                        <td class='gaddon-results-summary-label'>" . __("Last 30 Days", "gravityforms") . "</td>\n                        <td class='gaddon-results-summary-label'>" . __("Total", "gravityforms") . "</td>\n                    </tr>\n                    <tr>\n                        <td class='gaddon-results-summary-data'>\n                            <div class='gaddon-results-summary-data-box'>\n                                <div class='gaddon-results-summary-primary'>{$data["summary"]["today"]["revenue"]}</div>\n                                <div class='gaddon-results-summary-secondary'>{$data["summary"]["today"]["subscriptions"]} " . __("subscriptions", "gravityforms") . "</div>\n                                <div class='gaddon-results-summary-secondary'>{$data["summary"]["today"]["orders"]} " . __("orders", "gravityforms") . "</div>\n                            </div>\n                        </td>\n                        <td class='gaddon-results-summary-data'>\n                            <div class='gaddon-results-summary-data-box'>\n                                <div class='gaddon-results-summary-primary'>{$data["summary"]["yesterday"]["revenue"]}</div>\n                                <div class='gaddon-results-summary-secondary'>{$data["summary"]["yesterday"]["subscriptions"]} " . __("subscriptions", "gravityforms") . "</div>\n                                <div class='gaddon-results-summary-secondary'>{$data["summary"]["yesterday"]["orders"]} " . __("orders", "gravityforms") . "</div>\n                            </div>\n                        </td>\n\n                        <td class='gaddon-results-summary-data'>\n                            <div class='gaddon-results-summary-data-box'>\n                                <div class='gaddon-results-summary-primary'>{$data["summary"]["last30"]["revenue"]}</div>\n                                <div class='gaddon-results-summary-secondary'>{$data["summary"]["last30"]["subscriptions"]} " . __("subscriptions", "gravityforms") . "</div>\n                                <div class='gaddon-results-summary-secondary'>{$data["summary"]["last30"]["orders"]} " . __("orders", "gravityforms") . "</div>\n                            </div>\n                        </td>\n                        <td class='gaddon-results-summary-data'>\n                            <div class='gaddon-results-summary-data-box'>\n                                <div class='gaddon-results-summary-primary'>{$data["summary"]["total"]["revenue"]}</div>\n                                <div class='gaddon-results-summary-secondary'>{$data["summary"]["total"]["subscriptions"]} " . __("subscriptions", "gravityforms") . "</div>\n                                <div class='gaddon-results-summary-secondary'>{$data["summary"]["total"]["orders"]} " . __("orders", "gravityforms") . "</div>\n                            </div>\n                        </td>\n\n                    </tr>\n                 </table>";
     if ($data["row_count"] == "0") {
         $html .= "<div class='updated' style='padding:20px; margin-top:40px;'>" . __("There aren't any transactions that match your criteria.", "gravityforms") . "</div>";
     } else {
         $chart_data = $this->get_chart_data($data);
         $html .= $this->get_sales_chart($chart_data);
         //Getting sales table markup
         $sales_table = new GFPaymentStatsTable($data["table"]["header"], $data["data"], $data["row_count"], $data["page_size"]);
         $sales_table->prepare_items();
         ob_start();
         $sales_table->display();
         $html .= ob_get_clean();
     }
     $html .= "</form>";
     return $html;
 }