<?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;
/* @PlatformControlPanel/Dashboard/Stats/widgets.html.twig */
class __TwigTemplate_8d730b9192116aefbf88f0bd36e0ce4b extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'header' => [$this, 'block_header'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@PlatformControlPanel/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig"));
$this->parent = $this->loadTemplate("@PlatformControlPanel/base.html.twig", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 4
echo " ";
$this->loadTemplate("@PlatformControlPanel/Dashboard/Stats/widgets.html.twig", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig", 4, "540307083")->display(twig_array_merge(twig_array_merge($context, ["subtitle" => "Widget Stats", "title" => (( !twig_test_empty( // line 6
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 6, $this->source); })()))) ? (twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 6, $this->source); })()), "name", [], "any", false, false, false, 6)) : ("SYSTEM"))]), ['_args' => twig_to_array(["subtitle" => "Widget Stats", "title" => (( !twig_test_empty((isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 6, $this->source); })()))) ? (twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 6, $this->source); })()), "name", [], "any", false, false, false, 6)) : ("SYSTEM"))])]));
// line 18
echo " ";
$this->loadTemplate("@PlatformControlPanel/Dashboard/Stats/includes/navbar.html.twig", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig", 18)->display(twig_array_merge($context, ['_args' => []]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 21
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 22
echo " <div style=\"background-color: #FFFFFF; height: 500px;\">
<canvas id=\"statsChart\"></canvas>
</div>
<script type=\"text/javascript\">
;(function (window, document, \$, undefined) {
\$(function () {
new Chart(
\$('#statsChart'),
{
type: 'bar',
data: ";
// line 32
echo json_encode((isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 32, $this->source); })()));
echo ",
options: {
responsive: true,
maintainAspectRatio: false,
tooltips: {
mode: 'index',
intersect: false,
position: 'nearest'
},
hover: {
animationDuration: 0
}
}
}
);
});
})(window, document, jQuery);
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 106 => 32, 94 => 22, 84 => 21, 73 => 18, 71 => 6, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
{% block header %}
{% embed '@ui/common/headers/new.html.twig' with {
subtitle: 'Widget Stats',
title: (tenant is not empty) ? tenant.name : 'SYSTEM'
} %}
{% block actions %}
{% if tenant is not empty %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Back to Tenants',
helper: 'default',
link: path('platform.control_panel.dashboard.tenant.index')
} %}
{% endif %}
{% endblock %}
{% endembed %}
{% include '@PlatformControlPanel/Dashboard/Stats/includes/navbar.html.twig' %}
{% endblock %}
{% block content %}
<div style=\"background-color: #FFFFFF; height: 500px;\">
<canvas id=\"statsChart\"></canvas>
</div>
<script type=\"text/javascript\">
;(function (window, document, \$, undefined) {
\$(function () {
new Chart(
\$('#statsChart'),
{
type: 'bar',
data: {{ data|json_encode|raw }},
options: {
responsive: true,
maintainAspectRatio: false,
tooltips: {
mode: 'index',
intersect: false,
position: 'nearest'
},
hover: {
animationDuration: 0
}
}
}
);
});
})(window, document, jQuery);
</script>
{% endblock %}
", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig", "/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Stats/widgets.html.twig");
}
}
/* @PlatformControlPanel/Dashboard/Stats/widgets.html.twig */
class __TwigTemplate_8d730b9192116aefbf88f0bd36e0ce4b___540307083 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'actions' => [$this, 'block_actions'],
];
}
protected function doGetParent(array $context)
{
// line 4
return "@ui/common/headers/new.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig"));
$this->parent = $this->loadTemplate("@ui/common/headers/new.html.twig", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig", 4);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 8
public function block_actions($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "actions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "actions"));
// line 9
echo " ";
if ( !twig_test_empty((isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 9, $this->source); })()))) {
// line 10
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig", 10)->display(twig_array_merge(twig_array_merge($context, ["text" => "Back to Tenants", "helper" => "default", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.index")]), ['_args' => twig_to_array(["text" => "Back to Tenants", "helper" => "default", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.index")])]));
// line 15
echo " ";
}
// line 16
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 268 => 16, 265 => 15, 262 => 10, 259 => 9, 249 => 8, 226 => 4, 106 => 32, 94 => 22, 84 => 21, 73 => 18, 71 => 6, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
{% block header %}
{% embed '@ui/common/headers/new.html.twig' with {
subtitle: 'Widget Stats',
title: (tenant is not empty) ? tenant.name : 'SYSTEM'
} %}
{% block actions %}
{% if tenant is not empty %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Back to Tenants',
helper: 'default',
link: path('platform.control_panel.dashboard.tenant.index')
} %}
{% endif %}
{% endblock %}
{% endembed %}
{% include '@PlatformControlPanel/Dashboard/Stats/includes/navbar.html.twig' %}
{% endblock %}
{% block content %}
<div style=\"background-color: #FFFFFF; height: 500px;\">
<canvas id=\"statsChart\"></canvas>
</div>
<script type=\"text/javascript\">
;(function (window, document, \$, undefined) {
\$(function () {
new Chart(
\$('#statsChart'),
{
type: 'bar',
data: {{ data|json_encode|raw }},
options: {
responsive: true,
maintainAspectRatio: false,
tooltips: {
mode: 'index',
intersect: false,
position: 'nearest'
},
hover: {
animationDuration: 0
}
}
}
);
});
})(window, document, jQuery);
</script>
{% endblock %}
", "@PlatformControlPanel/Dashboard/Stats/widgets.html.twig", "/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Stats/widgets.html.twig");
}
}