var/cache/test/twig/b3/b385c67761ae68f71e597b399d175f42.php line 49

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @PlatformControlPanel/Dashboard/Stats/modules.html.twig */
  14. class __TwigTemplate_329ba76a358734500f9fe607fd73c5be extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'header' => [$this'block_header'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@PlatformControlPanel/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Stats/modules.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Stats/modules.html.twig"));
  39.         $this->parent $this->loadTemplate("@PlatformControlPanel/base.html.twig""@PlatformControlPanel/Dashboard/Stats/modules.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_header($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  54.         // line 4
  55.         echo "    ";
  56.         $this->loadTemplate("@PlatformControlPanel/Dashboard/Stats/modules.html.twig""@PlatformControlPanel/Dashboard/Stats/modules.html.twig"4"754453498")->display(twig_array_merge(twig_array_merge($context, ["subtitle" => "Module Activity Stats""title" => (( !twig_test_empty(        // line 6
  57. (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"falsefalsefalse6)) : ("SYSTEM"))]), ['_args' => twig_to_array(["subtitle" => "Module Activity 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"falsefalsefalse6)) : ("SYSTEM"))])]));
  58.         // line 18
  59.         echo "    ";
  60.         $this->loadTemplate("@PlatformControlPanel/Dashboard/Stats/includes/navbar.html.twig""@PlatformControlPanel/Dashboard/Stats/modules.html.twig"18)->display(twig_array_merge($context, ['_args' => []]));
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.     }
  66.     // line 21
  67.     public function block_content($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  74.         // line 22
  75.         echo "    <div style=\"background-color: #FFFFFF; height: 500px;\">
  76.         <canvas id=\"statsChart\"></canvas>
  77.     </div>
  78.     <pre><code>";
  79.         // line 25
  80.         echo json_encode((isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'25$this->source); })()), twig_constant("JSON_PRETTY_PRINT"));
  81.         echo "</code></pre>
  82.     <script type=\"text/javascript\">
  83.         ;(function (window, document, \$, undefined) {
  84.             \$(function () {
  85.                 new Chart(
  86.                     \$('#statsChart'),
  87.                     {
  88.                         type: 'line',
  89.                         data: ";
  90.         // line 33
  91.         echo json_encode((isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'33$this->source); })()));
  92.         echo ",
  93.                         options: {
  94.                             responsive: true,
  95.                             maintainAspectRatio: false,
  96.                             tooltips: {
  97.                                 mode: 'index',
  98.                                 intersect: false,
  99.                                 position: 'nearest'
  100.                             },
  101.                             hover: {
  102.                                 animationDuration: 0
  103.                             }
  104.                         }
  105.                     }
  106.                 );
  107.             });
  108.         })(window, document, jQuery);
  109.     </script>
  110. ";
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.         
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  115.     }
  116.     public function getTemplateName()
  117.     {
  118.         return "@PlatformControlPanel/Dashboard/Stats/modules.html.twig";
  119.     }
  120.     public function isTraitable()
  121.     {
  122.         return false;
  123.     }
  124.     public function getDebugInfo()
  125.     {
  126.         return array (  110 => 33,  99 => 25,  94 => 22,  84 => 21,  73 => 18,  71 => 6,  69 => 4,  59 => 3,  36 => 1,);
  127.     }
  128.     public function getSourceContext()
  129.     {
  130.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  131. {% block header %}
  132.     {% embed '@ui/common/headers/new.html.twig' with {
  133.         subtitle: 'Module Activity Stats',
  134.         title: (tenant is not empty) ? tenant.name : 'SYSTEM'
  135.     } %}
  136.         {% block actions %}
  137.             {% if tenant is not empty %}
  138.                 {% include '@ui/common/buttons/default.html.twig' with {
  139.                     text: 'Back to Tenants',
  140.                     helper: 'default',
  141.                     link: path('platform.control_panel.dashboard.tenant.index')
  142.                 } %}
  143.             {% endif %}
  144.         {% endblock %}
  145.     {% endembed %}
  146.     {% include '@PlatformControlPanel/Dashboard/Stats/includes/navbar.html.twig' %}
  147. {% endblock %}
  148. {% block content %}
  149.     <div style=\"background-color: #FFFFFF; height: 500px;\">
  150.         <canvas id=\"statsChart\"></canvas>
  151.     </div>
  152.     <pre><code>{{- data|json_encode(constant('JSON_PRETTY_PRINT'))|raw -}}</code></pre>
  153.     <script type=\"text/javascript\">
  154.         ;(function (window, document, \$, undefined) {
  155.             \$(function () {
  156.                 new Chart(
  157.                     \$('#statsChart'),
  158.                     {
  159.                         type: 'line',
  160.                         data: {{ data|json_encode|raw }},
  161.                         options: {
  162.                             responsive: true,
  163.                             maintainAspectRatio: false,
  164.                             tooltips: {
  165.                                 mode: 'index',
  166.                                 intersect: false,
  167.                                 position: 'nearest'
  168.                             },
  169.                             hover: {
  170.                                 animationDuration: 0
  171.                             }
  172.                         }
  173.                     }
  174.                 );
  175.             });
  176.         })(window, document, jQuery);
  177.     </script>
  178. {% endblock %}
  179. ""@PlatformControlPanel/Dashboard/Stats/modules.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Stats/modules.html.twig");
  180.     }
  181. }
  182. /* @PlatformControlPanel/Dashboard/Stats/modules.html.twig */
  183. class __TwigTemplate_329ba76a358734500f9fe607fd73c5be___754453498 extends \Twig\Template
  184. {
  185.     private $source;
  186.     private $macros = [];
  187.     public function __construct(Environment $env)
  188.     {
  189.         parent::__construct($env);
  190.         $this->source $this->getSourceContext();
  191.         $this->blocks = [
  192.             'actions' => [$this'block_actions'],
  193.         ];
  194.     }
  195.     protected function doGetParent(array $context)
  196.     {
  197.         // line 4
  198.         return "@ui/common/headers/new.html.twig";
  199.     }
  200.     protected function doDisplay(array $context, array $blocks = [])
  201.     {
  202.         $macros $this->macros;
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  204.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Stats/modules.html.twig"));
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Stats/modules.html.twig"));
  207.         $this->parent $this->loadTemplate("@ui/common/headers/new.html.twig""@PlatformControlPanel/Dashboard/Stats/modules.html.twig"4);
  208.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  209.         
  210.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  211.         
  212.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  213.     }
  214.     // line 8
  215.     public function block_actions($context, array $blocks = [])
  216.     {
  217.         $macros $this->macros;
  218.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  219.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  220.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  221.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  222.         // line 9
  223.         echo "            ";
  224.         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); })()))) {
  225.             // line 10
  226.             echo "                ";
  227.             $this->loadTemplate("@ui/common/buttons/default.html.twig""@PlatformControlPanel/Dashboard/Stats/modules.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")])]));
  228.             // line 15
  229.             echo "            ";
  230.         }
  231.         // line 16
  232.         echo "        ";
  233.         
  234.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  235.         
  236.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  237.     }
  238.     public function getTemplateName()
  239.     {
  240.         return "@PlatformControlPanel/Dashboard/Stats/modules.html.twig";
  241.     }
  242.     public function isTraitable()
  243.     {
  244.         return false;
  245.     }
  246.     public function getDebugInfo()
  247.     {
  248.         return array (  273 => 16,  270 => 15,  267 => 10,  264 => 9,  254 => 8,  231 => 4,  110 => 33,  99 => 25,  94 => 22,  84 => 21,  73 => 18,  71 => 6,  69 => 4,  59 => 3,  36 => 1,);
  249.     }
  250.     public function getSourceContext()
  251.     {
  252.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  253. {% block header %}
  254.     {% embed '@ui/common/headers/new.html.twig' with {
  255.         subtitle: 'Module Activity Stats',
  256.         title: (tenant is not empty) ? tenant.name : 'SYSTEM'
  257.     } %}
  258.         {% block actions %}
  259.             {% if tenant is not empty %}
  260.                 {% include '@ui/common/buttons/default.html.twig' with {
  261.                     text: 'Back to Tenants',
  262.                     helper: 'default',
  263.                     link: path('platform.control_panel.dashboard.tenant.index')
  264.                 } %}
  265.             {% endif %}
  266.         {% endblock %}
  267.     {% endembed %}
  268.     {% include '@PlatformControlPanel/Dashboard/Stats/includes/navbar.html.twig' %}
  269. {% endblock %}
  270. {% block content %}
  271.     <div style=\"background-color: #FFFFFF; height: 500px;\">
  272.         <canvas id=\"statsChart\"></canvas>
  273.     </div>
  274.     <pre><code>{{- data|json_encode(constant('JSON_PRETTY_PRINT'))|raw -}}</code></pre>
  275.     <script type=\"text/javascript\">
  276.         ;(function (window, document, \$, undefined) {
  277.             \$(function () {
  278.                 new Chart(
  279.                     \$('#statsChart'),
  280.                     {
  281.                         type: 'line',
  282.                         data: {{ data|json_encode|raw }},
  283.                         options: {
  284.                             responsive: true,
  285.                             maintainAspectRatio: false,
  286.                             tooltips: {
  287.                                 mode: 'index',
  288.                                 intersect: false,
  289.                                 position: 'nearest'
  290.                             },
  291.                             hover: {
  292.                                 animationDuration: 0
  293.                             }
  294.                         }
  295.                     }
  296.                 );
  297.             });
  298.         })(window, document, jQuery);
  299.     </script>
  300. {% endblock %}
  301. ""@PlatformControlPanel/Dashboard/Stats/modules.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Stats/modules.html.twig");
  302.     }
  303. }