<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* @bundles/ReportBundle/Controller/AjaxController.php */
class __TwigTemplate_b4d62c62434613b7aff02c2080309b811ffbb80a6bdefc46636d907bfc2caff3 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<?php

namespace Mautic\\ReportBundle\\Controller;

use Mautic\\CoreBundle\\Controller\\AjaxController as CommonAjaxController;
use Symfony\\Component\\HttpFoundation\\Request;

/**
 * Class AjaxController.
 */
class AjaxController extends CommonAjaxController
{
    /**
     * Get updated data for context.
     *
     * @return \\Symfony\\Component\\HttpFoundation\\JsonResponse|\\Symfony\\Component\\HttpFoundation\\Response
     */
    public function getSourceDataAction(Request \$request)
    {
        /* @type \\Mautic\\ReportBundle\\Model\\ReportModel \$model */
        \$model   = \$this->getModel('report');
        \$context = \$request->get('context');

        \$graphs  = \$model->getGraphList(\$context);
        \$columns = \$model->getColumnList(\$context);
        \$filters = \$model->getFilterList(\$context);

        return \$this->sendJsonResponse(
            [
                'columns'           => \$columns->choiceHtml,
                'columnDefinitions' => \$columns->definitions,
                'filters'           => \$filters->choiceHtml,
                'filterDefinitions' => \$filters->definitions,
                'filterOperators'   => \$filters->operatorHtml,
                'graphs'            => \$graphs->choiceHtml,
            ]
        );
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/ReportBundle/Controller/AjaxController.php";
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@bundles/ReportBundle/Controller/AjaxController.php", "/var/www/mautic/app/bundles/ReportBundle/Controller/AjaxController.php");
    }
}
