var/cache/test/twig/d0/d0ac5f7bb1876ac60273d209d529687a.php line 39

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/logins.html.twig */
  14. class __TwigTemplate_b5497383fa30dd2f4a4a3a6c9a73600f 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/logins.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/logins.html.twig"));
  39.         $this->parent $this->loadTemplate("@PlatformControlPanel/base.html.twig""@PlatformControlPanel/Dashboard/Stats/logins.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/logins.html.twig""@PlatformControlPanel/Dashboard/Stats/logins.html.twig"4"848102594")->display(twig_array_merge(twig_array_merge($context, ["subtitle" => "Login 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" => "Login 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/logins.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.     <script type=\"text/javascript\">
  79.         ;(function (window, document, \$, undefined) {
  80.             \$(function () {
  81.                 new Chart(
  82.                     \$('#statsChart'),
  83.                     {
  84.                         type: 'line',
  85.                         data: ";
  86.         // line 32
  87.         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); })()));
  88.         echo ",
  89.                         options: {
  90.                             responsive: true,
  91.                             maintainAspectRatio: false,
  92.                             tooltips: {
  93.                                 mode: 'index',
  94.                                 intersect: false,
  95.                                 position: 'nearest'
  96.                             },
  97.                             hover: {
  98.                                 animationDuration: 0
  99.                             }
  100.                         }
  101.                     }
  102.                 );
  103.             });
  104.         })(window, document, jQuery);
  105.     </script>
  106. ";
  107.         
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  109.         
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  111.     }
  112.     public function getTemplateName()
  113.     {
  114.         return "@PlatformControlPanel/Dashboard/Stats/logins.html.twig";
  115.     }
  116.     public function isTraitable()
  117.     {
  118.         return false;
  119.     }
  120.     public function getDebugInfo()
  121.     {
  122.         return array (  106 => 32,  94 => 22,  84 => 21,  73 => 18,  71 => 6,  69 => 4,  59 => 3,  36 => 1,);
  123.     }
  124.     public function getSourceContext()
  125.     {
  126.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  127. {% block header %}
  128.     {% embed '@ui/common/headers/new.html.twig' with {
  129.         subtitle: 'Login Activity Stats',
  130.         title: (tenant is not empty) ? tenant.name : 'SYSTEM'
  131.     } %}
  132.         {% block actions %}
  133.             {% if tenant is not empty %}
  134.                 {% include '@ui/common/buttons/default.html.twig' with {
  135.                     text: 'Back to Tenants',
  136.                     helper: 'default',
  137.                     link: path('platform.control_panel.dashboard.tenant.index')
  138.                 } %}
  139.             {% endif %}
  140.         {% endblock %}
  141.     {% endembed %}
  142.     {% include '@PlatformControlPanel/Dashboard/Stats/includes/navbar.html.twig' %}
  143. {% endblock %}
  144. {% block content %}
  145.     <div style=\"background-color: #FFFFFF; height: 500px;\">
  146.         <canvas id=\"statsChart\"></canvas>
  147.     </div>
  148.     <script type=\"text/javascript\">
  149.         ;(function (window, document, \$, undefined) {
  150.             \$(function () {
  151.                 new Chart(
  152.                     \$('#statsChart'),
  153.                     {
  154.                         type: 'line',
  155.                         data: {{ data|json_encode|raw }},
  156.                         options: {
  157.                             responsive: true,
  158.                             maintainAspectRatio: false,
  159.                             tooltips: {
  160.                                 mode: 'index',
  161.                                 intersect: false,
  162.                                 position: 'nearest'
  163.                             },
  164.                             hover: {
  165.                                 animationDuration: 0
  166.                             }
  167.                         }
  168.                     }
  169.                 );
  170.             });
  171.         })(window, document, jQuery);
  172.     </script>
  173. {% endblock %}
  174. ""@PlatformControlPanel/Dashboard/Stats/logins.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Stats/logins.html.twig");
  175.     }
  176. }
  177. /* @PlatformControlPanel/Dashboard/Stats/logins.html.twig */
  178. class __TwigTemplate_b5497383fa30dd2f4a4a3a6c9a73600f___848102594 extends \Twig\Template
  179. {
  180.     private $source;
  181.     private $macros = [];
  182.     public function __construct(Environment $env)
  183.     {
  184.         parent::__construct($env);
  185.         $this->source $this->getSourceContext();
  186.         $this->blocks = [
  187.             'actions' => [$this'block_actions'],
  188.         ];
  189.     }
  190.     protected function doGetParent(array $context)
  191.     {
  192.         // line 4
  193.         return "@ui/common/headers/new.html.twig";
  194.     }
  195.     protected function doDisplay(array $context, array $blocks = [])
  196.     {
  197.         $macros $this->macros;
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Stats/logins.html.twig"));
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Stats/logins.html.twig"));
  202.         $this->parent $this->loadTemplate("@ui/common/headers/new.html.twig""@PlatformControlPanel/Dashboard/Stats/logins.html.twig"4);
  203.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  204.         
  205.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  206.         
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  208.     }
  209.     // line 8
  210.     public function block_actions($context, array $blocks = [])
  211.     {
  212.         $macros $this->macros;
  213.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  214.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  215.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  216.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  217.         // line 9
  218.         echo "            ";
  219.         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); })()))) {
  220.             // line 10
  221.             echo "                ";
  222.             $this->loadTemplate("@ui/common/buttons/default.html.twig""@PlatformControlPanel/Dashboard/Stats/logins.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")])]));
  223.             // line 15
  224.             echo "            ";
  225.         }
  226.         // line 16
  227.         echo "        ";
  228.         
  229.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  230.         
  231.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  232.     }
  233.     public function getTemplateName()
  234.     {
  235.         return "@PlatformControlPanel/Dashboard/Stats/logins.html.twig";
  236.     }
  237.     public function isTraitable()
  238.     {
  239.         return false;
  240.     }
  241.     public function getDebugInfo()
  242.     {
  243.         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,);
  244.     }
  245.     public function getSourceContext()
  246.     {
  247.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  248. {% block header %}
  249.     {% embed '@ui/common/headers/new.html.twig' with {
  250.         subtitle: 'Login Activity Stats',
  251.         title: (tenant is not empty) ? tenant.name : 'SYSTEM'
  252.     } %}
  253.         {% block actions %}
  254.             {% if tenant is not empty %}
  255.                 {% include '@ui/common/buttons/default.html.twig' with {
  256.                     text: 'Back to Tenants',
  257.                     helper: 'default',
  258.                     link: path('platform.control_panel.dashboard.tenant.index')
  259.                 } %}
  260.             {% endif %}
  261.         {% endblock %}
  262.     {% endembed %}
  263.     {% include '@PlatformControlPanel/Dashboard/Stats/includes/navbar.html.twig' %}
  264. {% endblock %}
  265. {% block content %}
  266.     <div style=\"background-color: #FFFFFF; height: 500px;\">
  267.         <canvas id=\"statsChart\"></canvas>
  268.     </div>
  269.     <script type=\"text/javascript\">
  270.         ;(function (window, document, \$, undefined) {
  271.             \$(function () {
  272.                 new Chart(
  273.                     \$('#statsChart'),
  274.                     {
  275.                         type: 'line',
  276.                         data: {{ data|json_encode|raw }},
  277.                         options: {
  278.                             responsive: true,
  279.                             maintainAspectRatio: false,
  280.                             tooltips: {
  281.                                 mode: 'index',
  282.                                 intersect: false,
  283.                                 position: 'nearest'
  284.                             },
  285.                             hover: {
  286.                                 animationDuration: 0
  287.                             }
  288.                         }
  289.                     }
  290.                 );
  291.             });
  292.         })(window, document, jQuery);
  293.     </script>
  294. {% endblock %}
  295. ""@PlatformControlPanel/Dashboard/Stats/logins.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Stats/logins.html.twig");
  296.     }
  297. }