<?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/Views/Report/export.html.php */
class __TwigTemplate_b6f6fe9a196fddd6c9b02c524b842aa158ac507351d6e8a08a4c29e170299695 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

/*
 * @copyright   2014 Mautic Contributors. All rights reserved
 * @author      Mautic
 *
 * @link        http://mautic.org
 *
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

use Mautic\\ReportBundle\\Crate\\ReportDataResult;

\$view->extend('MauticCoreBundle:Default:slim.html.php');
\$view['slots']->set('pageTitle', \$pageTitle);
\$view['slots']->set('headerTitle', \$report->getName());
\$view['slots']->set('mauticContent', 'report');

\$showGraphsAboveTable = (true === !empty(\$report->getSettings()['showGraphsAboveTable']));
\$dataCount            = count(\$data);
\$columnOrder          = \$report->getColumns();
\$graphOrder           = \$report->getGraphs();
\$reportDataResult     = new ReportDataResult(\$reportData);
?>
<style>
    #app-content.content-only.container {
        overflow-x: scroll;
    }
</style>

<div class=\"pa-md\">
    <h3><?php echo \$report->getName(); ?></h3>
    <div class=\"small\">
        <?php echo \$view['date']->toDate(\$dateFrom, 'UTC').' - '.\$view['date']->toDate(\$dateTo, 'UTC'); ?>
    </div>
</div>

<?php if (!empty(\$showGraphsAboveTable)): ?>
    <?php echo \$view->render(
        'MauticReportBundle:Report:details_data_graphs.html.php',
        [
            'graphOrder' => \$graphOrder,
            'graphs'     => \$graphs,
            'report'     => \$report,
        ]
    );
    ?>
<?php endif; ?>


<?php if (!empty(\$columnOrder)): ?>
    <table class=\"table table-hover table-striped table-bordered report-list\" id=\"reportTable\">
        <thead>
        <tr>
            <th class=\"col-report-count\"></th>

            <?php foreach (\$reportDataResult->getHeaders() as \$header):?>
                <th><?php echo \$header; ?></th>
            <?php endforeach; ?>
        </tr>
        </thead>
        <tbody>
        <?php if (\$dataCount): ?>
            <?php foreach (\$reportDataResult->getData() as \$count => \$data):?>
                <tr>
                    <td><?php echo \$count + 1; ?></td>
                    <?php foreach (\$data as \$k => \$v): ?>
                        <td><?php echo \$view['formatter']->_(\$v, \$reportDataResult->getType(\$k)); ?></td>
                    <?php endforeach; ?>
                </tr>
            <?php endforeach; ?>
        <?php else: ?>
            <tr>
                <td>&nbsp;</td>
                <?php foreach (\$columnOrder as \$key): ?>
                    <td>&nbsp;</td>
                <?php endforeach; ?>
            </tr>
        <?php endif; ?>
        </tbody>
    </table>
<?php endif; ?>

<?php if (empty(\$showGraphsAboveTable)): ?>
    <?php echo \$view->render(
        'MauticReportBundle:Report:details_data_graphs.html.php',
        [
            'graphOrder' => \$graphOrder,
            'graphs'     => \$graphs,
            'report'     => \$report,
        ]
    );
    ?>
<?php endif; ?>
";
    }

    public function getTemplateName()
    {
        return "@bundles/ReportBundle/Views/Report/export.html.php";
    }

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

    public function getSourceContext()
    {
        return new Source("", "@bundles/ReportBundle/Views/Report/export.html.php", "/var/www/mautic/app/bundles/ReportBundle/Views/Report/export.html.php");
    }
}
