var/cache/dev/twig/c8/c8545fe62cdcc7603de7f2533cb7fb5c.php line 51

  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. /* @WebProfiler/Collector/notifier.html.twig */
  14. class __TwigTemplate_38206b1e2f653345005ac50abd64d16b extends 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.             'toolbar' => [$this'block_toolbar'],
  24.             'head' => [$this'block_head'],
  25.             'menu' => [$this'block_menu'],
  26.             'panel' => [$this'block_panel'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "@WebProfiler/Profiler/layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Collector/notifier.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@WebProfiler/Collector/notifier.html.twig"));
  41.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@WebProfiler/Collector/notifier.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_toolbar($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  56.         // line 4
  57.         echo "    ";
  58.         $context["events"] = twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'4$this->source); })()), "events", [], "any"falsefalsefalse4);
  59.         // line 5
  60.         echo "
  61.     ";
  62.         // line 6
  63.         if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'6$this->source); })()), "messages", [], "any"falsefalsefalse6))) {
  64.             // line 7
  65.             echo "        ";
  66.             ob_start();
  67.             // line 8
  68.             echo "            ";
  69.             echo twig_source($this->env"@WebProfiler/Icon/notifier.svg");
  70.             echo "
  71.             <span class=\"sf-toolbar-value\">";
  72.             // line 9
  73.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'9$this->source); })()), "messages", [], "any"falsefalsefalse9)), "html"nulltrue);
  74.             echo "</span>
  75.         ";
  76.             $context["icon"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  77.             // line 11
  78.             echo "
  79.         ";
  80.             // line 12
  81.             ob_start();
  82.             // line 13
  83.             echo "            <div class=\"sf-toolbar-info-piece\">
  84.                 <b>Sent notifications</b>
  85.                 <span class=\"sf-toolbar-status\">";
  86.             // line 15
  87.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'15$this->source); })()), "messages", [], "any"falsefalsefalse15)), "html"nulltrue);
  88.             echo "</span>
  89.             </div>
  90.             ";
  91.             // line 18
  92.             $context['_parent'] = $context;
  93.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'18$this->source); })()), "transports", [], "any"falsefalsefalse18));
  94.             foreach ($context['_seq'] as $context["_key"] => $context["transport"]) {
  95.                 // line 19
  96.                 echo "                <div class=\"sf-toolbar-info-piece\">
  97.                     <b>";
  98.                 // line 20
  99.                 echo twig_escape_filter($this->env$context["transport"], "html"nulltrue);
  100.                 echo "</b>
  101.                     <span class=\"sf-toolbar-status\">";
  102.                 // line 21
  103.                 echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'21$this->source); })()), "messages", [=> $context["transport"]], "method"falsefalsefalse21)), "html"nulltrue);
  104.                 echo "</span>
  105.                 </div>
  106.             ";
  107.             }
  108.             $_parent $context['_parent'];
  109.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['transport'], $context['_parent'], $context['loop']);
  110.             $context array_intersect_key($context$_parent) + $_parent;
  111.             // line 24
  112.             echo "        ";
  113.             $context["text"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  114.             // line 25
  115.             echo "
  116.         ";
  117.             // line 26
  118.             echo twig_include($this->env$context"@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url"$context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.'26$this->source); })())]);
  119.             echo "
  120.     ";
  121.         }
  122.         
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124.         
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  126.     }
  127.     // line 30
  128.     public function block_head($context, array $blocks = [])
  129.     {
  130.         $macros $this->macros;
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  135.         // line 31
  136.         echo "    ";
  137.         $this->displayParentBlock("head"$context$blocks);
  138.         echo "
  139.     <style type=\"text/css\">
  140.         /* utility classes */
  141.         .m-t-0 { margin-top: 0 !important; }
  142.         .m-t-10 { margin-top: 10px !important; }
  143.         /* basic grid */
  144.         .row {
  145.             display: flex;
  146.             flex-wrap: wrap;
  147.             margin-right: -15px;
  148.             margin-left: -15px;
  149.         }
  150.         .col {
  151.             flex-basis: 0;
  152.             flex-grow: 1;
  153.             max-width: 100%;
  154.             position: relative;
  155.             width: 100%;
  156.             min-height: 1px;
  157.             padding-right: 15px;
  158.             padding-left: 15px;
  159.         }
  160.         .col-4 {
  161.             flex: 0 0 33.333333%;
  162.             max-width: 33.333333%;
  163.         }
  164.         /* small tabs */
  165.         .sf-tabs-sm .tab-navigation li {
  166.             font-size: 14px;
  167.             padding: .3em .5em;
  168.         }
  169.     </style>
  170. ";
  171.         
  172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  173.         
  174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  175.     }
  176.     // line 67
  177.     public function block_menu($context, array $blocks = [])
  178.     {
  179.         $macros $this->macros;
  180.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  182.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  184.         // line 68
  185.         echo "    ";
  186.         $context["events"] = twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'68$this->source); })()), "events", [], "any"falsefalsefalse68);
  187.         // line 69
  188.         echo "
  189.     <span class=\"label ";
  190.         // line 70
  191.         echo ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'70$this->source); })()), "messages", [], "any"falsefalsefalse70))) ? ("") : ("disabled"));
  192.         echo "\">
  193.         <span class=\"icon\">";
  194.         // line 71
  195.         echo twig_source($this->env"@WebProfiler/Icon/notifier.svg");
  196.         echo "</span>
  197.         <strong>Notifications</strong>
  198.         ";
  199.         // line 74
  200.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'74$this->source); })()), "messages", [], "any"falsefalsefalse74)) > 0)) {
  201.             // line 75
  202.             echo "            <span class=\"count\">
  203.                 <span>";
  204.             // line 76
  205.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'76$this->source); })()), "messages", [], "any"falsefalsefalse76)), "html"nulltrue);
  206.             echo "</span>
  207.             </span>
  208.         ";
  209.         }
  210.         // line 79
  211.         echo "    </span>
  212. ";
  213.         
  214.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  215.         
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  217.     }
  218.     // line 82
  219.     public function block_panel($context, array $blocks = [])
  220.     {
  221.         $macros $this->macros;
  222.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  223.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  224.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  225.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  226.         // line 83
  227.         echo "    ";
  228.         $context["events"] = twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'83$this->source); })()), "events", [], "any"falsefalsefalse83);
  229.         // line 84
  230.         echo "
  231.     <h2>Notifications</h2>
  232.     ";
  233.         // line 87
  234.         if ( !twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'87$this->source); })()), "messages", [], "any"falsefalsefalse87))) {
  235.             // line 88
  236.             echo "        <div class=\"empty empty-panel\">
  237.             <p>No notifications were sent.</p>
  238.         </div>
  239.     ";
  240.         }
  241.         // line 92
  242.         echo "
  243.     <div class=\"metrics\">
  244.         ";
  245.         // line 94
  246.         $context['_parent'] = $context;
  247.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'94$this->source); })()), "transports", [], "any"falsefalsefalse94));
  248.         foreach ($context['_seq'] as $context["_key"] => $context["transport"]) {
  249.             // line 95
  250.             echo "            <div class=\"metric\">
  251.                 <span class=\"value\">";
  252.             // line 96
  253.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'96$this->source); })()), "messages", [=> $context["transport"]], "method"falsefalsefalse96)), "html"nulltrue);
  254.             echo "</span>
  255.                 <span class=\"label\">";
  256.             // line 97
  257.             echo twig_escape_filter($this->env$context["transport"], "html"nulltrue);
  258.             echo "</span>
  259.             </div>
  260.         ";
  261.         }
  262.         $_parent $context['_parent'];
  263.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['transport'], $context['_parent'], $context['loop']);
  264.         $context array_intersect_key($context$_parent) + $_parent;
  265.         // line 100
  266.         echo "    </div>
  267.     ";
  268.         // line 102
  269.         $context['_parent'] = $context;
  270.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'102$this->source); })()), "transports", [], "any"falsefalsefalse102));
  271.         foreach ($context['_seq'] as $context["_key"] => $context["transport"]) {
  272.             // line 103
  273.             echo "        <h3>";
  274.             echo twig_escape_filter($this->env$context["transport"], "html"nulltrue);
  275.             echo "</h3>
  276.         <div class=\"card-block\">
  277.             <div class=\"sf-tabs sf-tabs-sm\">
  278.                 ";
  279.             // line 107
  280.             $context['_parent'] = $context;
  281.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'107$this->source); })()), "events", [=> $context["transport"]], "method"falsefalsefalse107));
  282.             $context['loop'] = [
  283.               'parent' => $context['_parent'],
  284.               'index0' => 0,
  285.               'index'  => 1,
  286.               'first'  => true,
  287.             ];
  288.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  289.                 $length count($context['_seq']);
  290.                 $context['loop']['revindex0'] = $length 1;
  291.                 $context['loop']['revindex'] = $length;
  292.                 $context['loop']['length'] = $length;
  293.                 $context['loop']['last'] = === $length;
  294.             }
  295.             foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
  296.                 // line 108
  297.                 echo "                    ";
  298.                 $context["message"] = twig_get_attribute($this->env$this->source$context["event"], "message", [], "any"falsefalsefalse108);
  299.                 // line 109
  300.                 echo "                    <div class=\"tab\">
  301.                         <h3 class=\"tab-title\">Message #";
  302.                 // line 110
  303.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse110), "html"nulltrue);
  304.                 echo " <small>(";
  305.                 echo ((twig_get_attribute($this->env$this->source$context["event"], "isQueued", [], "method"falsefalsefalse110)) ? ("queued") : ("sent"));
  306.                 echo ")</small></h3>
  307.                         <div class=\"tab-content\">
  308.                             <div class=\"card\">
  309.                                 <div class=\"card-block\">
  310.                                     <span class=\"label\">Subject</span>
  311.                                     <h2 class=\"m-t-10\">";
  312.                 // line 115
  313.                 (((twig_get_attribute($this->env$this->source, ($context["message"] ?? null), "getSubject", [], "method"truetruefalse115) &&  !(null === twig_get_attribute($this->env$this->source, ($context["message"] ?? null), "getSubject", [], "method"falsefalsefalse115)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "getSubject", [], "method"falsefalsefalse115), "html"nulltrue))) : (print ("(empty)")));
  314.                 echo "</h2>
  315.                                 </div>
  316.                                 ";
  317.                 // line 117
  318.                 if (twig_get_attribute($this->env$this->source, ($context["message"] ?? null), "getNotification", [], "any"truetruefalse117)) {
  319.                     // line 118
  320.                     echo "                                    <div class=\"card-block\">
  321.                                         <div class=\"row\">
  322.                                             <div class=\"col\">
  323.                                                 <span class=\"label\">Content</span>
  324.                                                 <pre class=\"prewrap\">";
  325.                     // line 122
  326.                     (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "getNotification", [], "method"falsetruefalse122), "getContent", [], "method"truetruefalse122) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "getNotification", [], "method"falsetruefalse122), "getContent", [], "method"falsefalsefalse122)))) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["message"] ?? null), "getNotification", [], "method"falsetruefalse122), "getContent", [], "method"falsefalsefalse122), "html"nulltrue))) : (print ("(empty)")));
  327.                     echo "</pre>
  328.                                                 <span class=\"label\">Importance</span>
  329.                                                 <pre class=\"prewrap\">";
  330.                     // line 124
  331.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'124$this->source); })()), "getNotification", [], "method"falsefalsefalse124), "getImportance", [], "method"falsefalsefalse124), "html"nulltrue);
  332.                     echo "</pre>
  333.                                             </div>
  334.                                         </div>
  335.                                     </div>
  336.                                 ";
  337.                 }
  338.                 // line 129
  339.                 echo "                                    <div class=\"card-block\">
  340.                                         <div class=\"sf-tabs sf-tabs-sm\">
  341.                                             ";
  342.                 // line 131
  343.                 if (twig_get_attribute($this->env$this->source, ($context["message"] ?? null), "getNotification", [], "any"truetruefalse131)) {
  344.                     // line 132
  345.                     echo "                                                <div class=\"tab\">
  346.                                                     <h3 class=\"tab-title\">Notification</h3>
  347.                                                     ";
  348.                     // line 134
  349.                     $context["notification"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["event"], "message", [], "any"falsefalsefalse134), "getNotification", [], "method"falsefalsefalse134);
  350.                     // line 135
  351.                     echo "                                                    <div class=\"tab-content\">
  352.                                                         <pre class=\"prewrap\" style=\"max-height: 600px\">";
  353.                     // line 137
  354.                     echo twig_escape_filter($this->env, ("Subject: " twig_get_attribute($this->env$this->source, (isset($context["notification"]) || array_key_exists("notification"$context) ? $context["notification"] : (function () { throw new RuntimeError('Variable "notification" does not exist.'137$this->source); })()), "getSubject", [], "method"falsefalsefalse137)), "html"nulltrue);
  355.                     echo "<br/>";
  356.                     // line 138
  357.                     echo twig_escape_filter($this->env, ("Content: " twig_get_attribute($this->env$this->source, (isset($context["notification"]) || array_key_exists("notification"$context) ? $context["notification"] : (function () { throw new RuntimeError('Variable "notification" does not exist.'138$this->source); })()), "getContent", [], "method"falsefalsefalse138)), "html"nulltrue);
  358.                     echo "<br/>";
  359.                     // line 139
  360.                     echo twig_escape_filter($this->env, ("Importance: " twig_get_attribute($this->env$this->source, (isset($context["notification"]) || array_key_exists("notification"$context) ? $context["notification"] : (function () { throw new RuntimeError('Variable "notification" does not exist.'139$this->source); })()), "getImportance", [], "method"falsefalsefalse139)), "html"nulltrue);
  361.                     echo "<br/>";
  362.                     // line 140
  363.                     echo twig_escape_filter($this->env, ("Emoji: " . ((twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["notification"]) || array_key_exists("notification"$context) ? $context["notification"] : (function () { throw new RuntimeError('Variable "notification" does not exist.'140$this->source); })()), "getEmoji", [], "method"falsefalsefalse140))) ? ("(empty)") : (twig_get_attribute($this->env$this->source, (isset($context["notification"]) || array_key_exists("notification"$context) ? $context["notification"] : (function () { throw new RuntimeError('Variable "notification" does not exist.'140$this->source); })()), "getEmoji", [], "method"falsefalsefalse140)))), "html"nulltrue);
  364.                     echo "<br/>";
  365.                     // line 141
  366.                     echo twig_escape_filter($this->env, ("Exception: " . (((twig_get_attribute($this->env$this->source, ($context["notification"] ?? null), "getException", [], "method"truetruefalse141) &&  !(null === twig_get_attribute($this->env$this->source, ($context["notification"] ?? null), "getException", [], "method"falsefalsefalse141)))) ? (twig_get_attribute($this->env$this->source, ($context["notification"] ?? null), "getException", [], "method"falsefalsefalse141)) : ("(empty)"))), "html"nulltrue);
  367.                     echo "<br/>";
  368.                     // line 142
  369.                     echo twig_escape_filter($this->env, ("ExceptionAsString: " . ((twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["notification"]) || array_key_exists("notification"$context) ? $context["notification"] : (function () { throw new RuntimeError('Variable "notification" does not exist.'142$this->source); })()), "getExceptionAsString", [], "method"falsefalsefalse142))) ? ("(empty)") : (twig_get_attribute($this->env$this->source, (isset($context["notification"]) || array_key_exists("notification"$context) ? $context["notification"] : (function () { throw new RuntimeError('Variable "notification" does not exist.'142$this->source); })()), "getExceptionAsString", [], "method"falsefalsefalse142)))), "html"nulltrue);
  370.                     echo "
  371.                                                         </pre>
  372.                                                     </div>
  373.                                                 </div>
  374.                                             ";
  375.                 }
  376.                 // line 147
  377.                 echo "                                                <div class=\"tab\">
  378.                                                     <h3 class=\"tab-title\">Message Options</h3>
  379.                                                     <div class=\"tab-content\">
  380.                                                         <pre class=\"prewrap\" style=\"max-height: 600px\">";
  381.                 // line 151
  382.                 if ((null === twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'151$this->source); })()), "getOptions", [], "method"falsefalsefalse151))) {
  383.                     // line 152
  384.                     echo "(empty)";
  385.                 } else {
  386.                     // line 154
  387.                     echo twig_escape_filter($this->envjson_encode(twig_get_attribute($this->env$this->source, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'154$this->source); })()), "getOptions", [], "method"falsefalsefalse154), twig_constant("JSON_PRETTY_PRINT")), "html"nulltrue);
  388.                 }
  389.                 // line 156
  390.                 echo "                                                        </pre>
  391.                                                     </div>
  392.                                                 </div>
  393.                                         </div>
  394.                                     </div>
  395.                             </div>
  396.                         </div>
  397.                     </div>
  398.                 ";
  399.                 ++$context['loop']['index0'];
  400.                 ++$context['loop']['index'];
  401.                 $context['loop']['first'] = false;
  402.                 if (isset($context['loop']['length'])) {
  403.                     --$context['loop']['revindex0'];
  404.                     --$context['loop']['revindex'];
  405.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  406.                 }
  407.             }
  408.             $_parent $context['_parent'];
  409.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['event'], $context['_parent'], $context['loop']);
  410.             $context array_intersect_key($context$_parent) + $_parent;
  411.             // line 165
  412.             echo "            </div>
  413.         </div>
  414.     ";
  415.         }
  416.         $_parent $context['_parent'];
  417.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['transport'], $context['_parent'], $context['loop']);
  418.         $context array_intersect_key($context$_parent) + $_parent;
  419.         
  420.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  421.         
  422.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  423.     }
  424.     public function getTemplateName()
  425.     {
  426.         return "@WebProfiler/Collector/notifier.html.twig";
  427.     }
  428.     public function isTraitable()
  429.     {
  430.         return false;
  431.     }
  432.     public function getDebugInfo()
  433.     {
  434.         return array (  448 => 165,  426 => 156,  423 => 154,  420 => 152,  418 => 151,  413 => 147,  405 => 142,  402 => 141,  399 => 140,  396 => 139,  393 => 138,  390 => 137,  387 => 135,  385 => 134,  381 => 132,  379 => 131,  375 => 129,  367 => 124,  362 => 122,  356 => 118,  354 => 117,  349 => 115,  339 => 110,  336 => 109,  333 => 108,  316 => 107,  308 => 103,  304 => 102,  300 => 100,  291 => 97,  287 => 96,  284 => 95,  280 => 94,  276 => 92,  270 => 88,  268 => 87,  263 => 84,  260 => 83,  250 => 82,  239 => 79,  233 => 76,  230 => 75,  228 => 74,  222 => 71,  218 => 70,  215 => 69,  212 => 68,  202 => 67,  156 => 31,  146 => 30,  133 => 26,  130 => 25,  127 => 24,  118 => 21,  114 => 20,  111 => 19,  107 => 18,  101 => 15,  97 => 13,  95 => 12,  92 => 11,  87 => 9,  82 => 8,  79 => 7,  77 => 6,  74 => 5,  71 => 4,  61 => 3,  38 => 1,);
  435.     }
  436.     public function getSourceContext()
  437.     {
  438.         return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  439. {% block toolbar %}
  440.     {% set events = collector.events %}
  441.     {% if events.messages|length %}
  442.         {% set icon %}
  443.             {{ source('@WebProfiler/Icon/notifier.svg') }}
  444.             <span class=\"sf-toolbar-value\">{{ events.messages|length }}</span>
  445.         {% endset %}
  446.         {% set text %}
  447.             <div class=\"sf-toolbar-info-piece\">
  448.                 <b>Sent notifications</b>
  449.                 <span class=\"sf-toolbar-status\">{{ events.messages|length }}</span>
  450.             </div>
  451.             {% for transport in events.transports %}
  452.                 <div class=\"sf-toolbar-info-piece\">
  453.                     <b>{{ transport }}</b>
  454.                     <span class=\"sf-toolbar-status\">{{ events.messages(transport)|length }}</span>
  455.                 </div>
  456.             {% endfor %}
  457.         {% endset %}
  458.         {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': profiler_url }) }}
  459.     {% endif %}
  460. {% endblock %}
  461. {% block head %}
  462.     {{ parent() }}
  463.     <style type=\"text/css\">
  464.         /* utility classes */
  465.         .m-t-0 { margin-top: 0 !important; }
  466.         .m-t-10 { margin-top: 10px !important; }
  467.         /* basic grid */
  468.         .row {
  469.             display: flex;
  470.             flex-wrap: wrap;
  471.             margin-right: -15px;
  472.             margin-left: -15px;
  473.         }
  474.         .col {
  475.             flex-basis: 0;
  476.             flex-grow: 1;
  477.             max-width: 100%;
  478.             position: relative;
  479.             width: 100%;
  480.             min-height: 1px;
  481.             padding-right: 15px;
  482.             padding-left: 15px;
  483.         }
  484.         .col-4 {
  485.             flex: 0 0 33.333333%;
  486.             max-width: 33.333333%;
  487.         }
  488.         /* small tabs */
  489.         .sf-tabs-sm .tab-navigation li {
  490.             font-size: 14px;
  491.             padding: .3em .5em;
  492.         }
  493.     </style>
  494. {% endblock %}
  495. {% block menu %}
  496.     {% set events = collector.events %}
  497.     <span class=\"label {{ events.messages|length ? '' : 'disabled' }}\">
  498.         <span class=\"icon\">{{ source('@WebProfiler/Icon/notifier.svg') }}</span>
  499.         <strong>Notifications</strong>
  500.         {% if events.messages|length > 0 %}
  501.             <span class=\"count\">
  502.                 <span>{{ events.messages|length }}</span>
  503.             </span>
  504.         {% endif %}
  505.     </span>
  506. {% endblock %}
  507. {% block panel %}
  508.     {% set events = collector.events %}
  509.     <h2>Notifications</h2>
  510.     {% if not events.messages|length %}
  511.         <div class=\"empty empty-panel\">
  512.             <p>No notifications were sent.</p>
  513.         </div>
  514.     {% endif %}
  515.     <div class=\"metrics\">
  516.         {% for transport in events.transports %}
  517.             <div class=\"metric\">
  518.                 <span class=\"value\">{{ events.messages(transport)|length }}</span>
  519.                 <span class=\"label\">{{ transport }}</span>
  520.             </div>
  521.         {% endfor %}
  522.     </div>
  523.     {% for transport in events.transports %}
  524.         <h3>{{ transport }}</h3>
  525.         <div class=\"card-block\">
  526.             <div class=\"sf-tabs sf-tabs-sm\">
  527.                 {% for event in events.events(transport) %}
  528.                     {% set message = event.message %}
  529.                     <div class=\"tab\">
  530.                         <h3 class=\"tab-title\">Message #{{ loop.index }} <small>({{ event.isQueued() ? 'queued' : 'sent' }})</small></h3>
  531.                         <div class=\"tab-content\">
  532.                             <div class=\"card\">
  533.                                 <div class=\"card-block\">
  534.                                     <span class=\"label\">Subject</span>
  535.                                     <h2 class=\"m-t-10\">{{ message.getSubject() ?? '(empty)' }}</h2>
  536.                                 </div>
  537.                                 {% if message.getNotification is defined %}
  538.                                     <div class=\"card-block\">
  539.                                         <div class=\"row\">
  540.                                             <div class=\"col\">
  541.                                                 <span class=\"label\">Content</span>
  542.                                                 <pre class=\"prewrap\">{{ message.getNotification().getContent() ?? '(empty)' }}</pre>
  543.                                                 <span class=\"label\">Importance</span>
  544.                                                 <pre class=\"prewrap\">{{ message.getNotification().getImportance() }}</pre>
  545.                                             </div>
  546.                                         </div>
  547.                                     </div>
  548.                                 {% endif %}
  549.                                     <div class=\"card-block\">
  550.                                         <div class=\"sf-tabs sf-tabs-sm\">
  551.                                             {% if message.getNotification is defined %}
  552.                                                 <div class=\"tab\">
  553.                                                     <h3 class=\"tab-title\">Notification</h3>
  554.                                                     {% set notification = event.message.getNotification() %}
  555.                                                     <div class=\"tab-content\">
  556.                                                         <pre class=\"prewrap\" style=\"max-height: 600px\">
  557.                                                             {{- 'Subject: ' ~ notification.getSubject() }}<br/>
  558.                                                             {{- 'Content: ' ~ notification.getContent() }}<br/>
  559.                                                             {{- 'Importance: ' ~ notification.getImportance() }}<br/>
  560.                                                             {{- 'Emoji: ' ~ (notification.getEmoji() is empty ? '(empty)' : notification.getEmoji()) }}<br/>
  561.                                                             {{- 'Exception: ' ~ notification.getException() ?? '(empty)' }}<br/>
  562.                                                             {{- 'ExceptionAsString: ' ~ (notification.getExceptionAsString() is empty ? '(empty)' : notification.getExceptionAsString()) }}
  563.                                                         </pre>
  564.                                                     </div>
  565.                                                 </div>
  566.                                             {% endif %}
  567.                                                 <div class=\"tab\">
  568.                                                     <h3 class=\"tab-title\">Message Options</h3>
  569.                                                     <div class=\"tab-content\">
  570.                                                         <pre class=\"prewrap\" style=\"max-height: 600px\">
  571.                                                             {%- if message.getOptions() is null %}
  572.                                                                 {{- '(empty)' }}
  573.                                                             {%- else %}
  574.                                                                 {{- message.getOptions()|json_encode(constant('JSON_PRETTY_PRINT')) }}
  575.                                                             {%- endif %}
  576.                                                         </pre>
  577.                                                     </div>
  578.                                                 </div>
  579.                                         </div>
  580.                                     </div>
  581.                             </div>
  582.                         </div>
  583.                     </div>
  584.                 {% endfor %}
  585.             </div>
  586.         </div>
  587.     {% endfor %}
  588. {% endblock %}
  589. ""@WebProfiler/Collector/notifier.html.twig""/home/bestofi/bestof/vendor/symfony/web-profiler-bundle/Resources/views/Collector/notifier.html.twig");
  590.     }
  591. }