var/cache/dev/twig/d8/d8378e935b8f2b3243149560795f3e8e.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\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* email/technician/tickets_assigned.html.twig */
  15. class __TwigTemplate_ab4e6053327a9553ae038c6c3066d132 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "email/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""email/technician/tickets_assigned.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""email/technician/tickets_assigned.html.twig"));
  39.         $this->parent $this->loadTemplate("email/base.html.twig""email/technician/tickets_assigned.html.twig"1);
  40.         yield from $this->parent->unwrap()->yield($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_content($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""content"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         yield "    <tr>
  56.         <td style=\"padding: 10px 0px\">
  57.             <p style=\"color:#333\">
  58.                 Ciao ";
  59.         // line 7
  60.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'7$this->source); })()), "html"nulltrue);
  61.         yield ",
  62.             </p>
  63.         </td>
  64.     </tr>
  65.     <tr>
  66.         <td style=\"padding: 10px 0px\">
  67.             <p style=\"color:#333\">
  68.                Ti informiamo che hai <b>";
  69.         // line 14
  70.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["tickets"]) || array_key_exists("tickets"$context) ? $context["tickets"] : (function () { throw new RuntimeError('Variable "tickets" does not exist.'14$this->source); })())), "html"nulltrue);
  71.         yield " ticket</b> assegnati ancora in attesa di essere presi in carico, in particolare:
  72.             </p>
  73.             <table cellspacing=\"0\" style=\"font-size:12px\">
  74.                 <tr>
  75.                     <th style=\"min-width:100px; border-collapse:collpase; border:1px solid #333; padding:2px\">Numero</th>
  76.                     <th style=\"min-width:100px; border-collapse:collpase; border:1px solid #333; padding:2px\">Termid</th>
  77.                     <th style=\"min-width:120px; border-collapse:collpase; border:1px solid #333; padding:2px\">Scadenza</th>
  78.                     <th style=\"min-width:200px; border-collapse:collpase; border:1px solid #333; padding:2px\">Cliente</th>
  79.                     <th style=\"min-width:150px; border-collapse:collpase; border:1px solid #333; padding:2px\">Operazione</th>
  80.                     <th style=\"min-width:150px; border-collapse:collpase; border:1px solid #333; padding:2px\">Fornitore</th>
  81.                     <th style=\"min-width:200px; border-collapse:collpase; border:1px solid #333; padding:2px\">Città</th>
  82.                     <th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Indirizzo</th>
  83.                     <th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Risorsa</th>
  84.                     <th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Risorsa upgrade</th>
  85.                 </tr>
  86.                 ";
  87.         // line 29
  88.         $context['_parent'] = $context;
  89.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["tickets"]) || array_key_exists("tickets"$context) ? $context["tickets"] : (function () { throw new RuntimeError('Variable "tickets" does not exist.'29$this->source); })()));
  90.         foreach ($context['_seq'] as $context["_key"] => $context["ticket"]) {
  91.             // line 30
  92.             yield "                    <tr>
  93.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
  94.             // line 31
  95.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["ticket"], "number", [], "any"falsefalsefalse31), "html"nulltrue);
  96.             yield "</td>
  97.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
  98.             // line 32
  99.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ticket"], "termid", [], "any"falsefalsefalse32), "code", [], "any"falsefalsefalse32), "html"nulltrue);
  100.             yield "</td>
  101.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
  102.             // line 33
  103.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::default($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["ticket"], "datetimeExpiration", [], "any"falsefalsefalse33), "d-m-Y H:i"), "---"), "html"nulltrue);
  104.             yield "</td>
  105.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
  106.             // line 34
  107.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["ticket"], "client", [], "any"falsefalsefalse34), "html"nulltrue);
  108.             yield "</td>
  109.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
  110.             // line 35
  111.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ticket"], "operation", [], "any"falsefalsefalse35), "value", [], "any"falsefalsefalse35), "html"nulltrue);
  112.             yield "</td>
  113.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
  114.             // line 36
  115.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["ticket"], "supplier", [], "any"falsefalsefalse36), "html"nulltrue);
  116.             yield "</td>
  117.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
  118.             // line 37
  119.             if ((CoreExtension::getAttribute($this->env$this->source$context["ticket"], "idCity", [], "any"falsefalsefalse37) != null)) {
  120.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\Extension\AppExtension']->translateCityOnly(CoreExtension::getAttribute($this->env$this->source$context["ticket"], "idCity", [], "any"falsefalsefalse37)), "html"nulltrue);
  121.             }
  122.             yield "</td>
  123.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
  124.             // line 38
  125.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["ticket"], "address", [], "any"falsefalsefalse38), "html"nulltrue);
  126.             yield "</td>
  127.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
  128.             // line 39
  129.             if (CoreExtension::getAttribute($this->env$this->source$context["ticket"], "displayJsonValueByColumn", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ticket"], "operation", [], "any"falsefalsefalse39), "getKeyValueByValue", ["Risorsa"], "method"falsefalsefalse39)], "method"falsefalsefalse39)) {
  130.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["ticket"], "displayJsonValueByColumn", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ticket"], "operation", [], "any"falsefalsefalse39), "getKeyValueByValue", ["Risorsa"], "method"falsefalsefalse39)], "method"falsefalsefalse39), "html"nulltrue);
  131.             }
  132.             yield "</td>
  133.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
  134.             // line 40
  135.             if (CoreExtension::getAttribute($this->env$this->source$context["ticket"], "displayJsonValueByColumn", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ticket"], "operation", [], "any"falsefalsefalse40), "getKeyValueByValue", ["Risorsa upgrade"], "method"falsefalsefalse40)], "method"falsefalsefalse40)) {
  136.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["ticket"], "displayJsonValueByColumn", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["ticket"], "operation", [], "any"falsefalsefalse40), "getKeyValueByValue", ["Risorsa upgrade"], "method"falsefalsefalse40)], "method"falsefalsefalse40), "html"nulltrue);
  137.             }
  138.             yield "</td>
  139.                     </tr>
  140.                 ";
  141.         }
  142.         $_parent $context['_parent'];
  143.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ticket'], $context['_parent'], $context['loop']);
  144.         $context array_intersect_key($context$_parent) + $_parent;
  145.         // line 43
  146.         yield "            </table>
  147.             <p style=\"color:#333\">
  148.                 Entra subito in <a href=\"https://www.eposmanager.software/scrivania\">www.eposmanager.software</a> per prenderli in carico.
  149.             </p>
  150.         </td>
  151.     </tr>
  152. ";
  153.         
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  155.         
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  157.         return; yield '';
  158.     }
  159.     /**
  160.      * @codeCoverageIgnore
  161.      */
  162.     public function getTemplateName()
  163.     {
  164.         return "email/technician/tickets_assigned.html.twig";
  165.     }
  166.     /**
  167.      * @codeCoverageIgnore
  168.      */
  169.     public function isTraitable()
  170.     {
  171.         return false;
  172.     }
  173.     /**
  174.      * @codeCoverageIgnore
  175.      */
  176.     public function getDebugInfo()
  177.     {
  178.         return array (  160 => 43,  149 => 40,  143 => 39,  139 => 38,  133 => 37,  129 => 36,  125 => 35,  121 => 34,  117 => 33,  113 => 32,  109 => 31,  106 => 30,  102 => 29,  84 => 14,  74 => 7,  69 => 4,  59 => 3,  36 => 1,);
  179.     }
  180.     public function getSourceContext()
  181.     {
  182.         return new Source("{% extends \"email/base.html.twig\" %}
  183. {% block content %}
  184.     <tr>
  185.         <td style=\"padding: 10px 0px\">
  186.             <p style=\"color:#333\">
  187.                 Ciao {{ user }},
  188.             </p>
  189.         </td>
  190.     </tr>
  191.     <tr>
  192.         <td style=\"padding: 10px 0px\">
  193.             <p style=\"color:#333\">
  194.                Ti informiamo che hai <b>{{ tickets|length }} ticket</b> assegnati ancora in attesa di essere presi in carico, in particolare:
  195.             </p>
  196.             <table cellspacing=\"0\" style=\"font-size:12px\">
  197.                 <tr>
  198.                     <th style=\"min-width:100px; border-collapse:collpase; border:1px solid #333; padding:2px\">Numero</th>
  199.                     <th style=\"min-width:100px; border-collapse:collpase; border:1px solid #333; padding:2px\">Termid</th>
  200.                     <th style=\"min-width:120px; border-collapse:collpase; border:1px solid #333; padding:2px\">Scadenza</th>
  201.                     <th style=\"min-width:200px; border-collapse:collpase; border:1px solid #333; padding:2px\">Cliente</th>
  202.                     <th style=\"min-width:150px; border-collapse:collpase; border:1px solid #333; padding:2px\">Operazione</th>
  203.                     <th style=\"min-width:150px; border-collapse:collpase; border:1px solid #333; padding:2px\">Fornitore</th>
  204.                     <th style=\"min-width:200px; border-collapse:collpase; border:1px solid #333; padding:2px\">Città</th>
  205.                     <th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Indirizzo</th>
  206.                     <th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Risorsa</th>
  207.                     <th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Risorsa upgrade</th>
  208.                 </tr>
  209.                 {% for ticket in tickets %}
  210.                     <tr>
  211.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.number }}</td>
  212.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.termid.code }}</td>
  213.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.datetimeExpiration|date(\"d-m-Y H:i\")|default(\"---\") }}</td>
  214.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.client }}</td>
  215.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.operation.value }}</td>
  216.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.supplier }}</td>
  217.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{% if ticket.idCity != null %}{{ ticket.idCity|translate_city_only }}{% endif %}</td>
  218.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.address }}</td>
  219.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{% if ticket.displayJsonValueByColumn(ticket.operation.getKeyValueByValue('Risorsa')) %}{{ ticket.displayJsonValueByColumn(ticket.operation.getKeyValueByValue('Risorsa')) }}{% endif %}</td>
  220.                         <td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{% if ticket.displayJsonValueByColumn(ticket.operation.getKeyValueByValue('Risorsa upgrade')) %}{{ ticket.displayJsonValueByColumn(ticket.operation.getKeyValueByValue('Risorsa upgrade')) }}{% endif %}</td>
  221.                     </tr>
  222.                 {% endfor %}
  223.             </table>
  224.             <p style=\"color:#333\">
  225.                 Entra subito in <a href=\"https://www.eposmanager.software/scrivania\">www.eposmanager.software</a> per prenderli in carico.
  226.             </p>
  227.         </td>
  228.     </tr>
  229. {% endblock %}
  230. ""email/technician/tickets_assigned.html.twig""/var/www/vhosts/eposmanager.software/templates/email/technician/tickets_assigned.html.twig");
  231.     }
  232. }