<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* email/technician/tickets_assigned.html.twig */
class __TwigTemplate_ab4e6053327a9553ae038c6c3066d132 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "email/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "email/technician/tickets_assigned.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "email/technician/tickets_assigned.html.twig"));
$this->parent = $this->loadTemplate("email/base.html.twig", "email/technician/tickets_assigned.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
yield " <tr>
<td style=\"padding: 10px 0px\">
<p style=\"color:#333\">
Ciao ";
// line 7
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", null, true);
yield ",
</p>
</td>
</tr>
<tr>
<td style=\"padding: 10px 0px\">
<p style=\"color:#333\">
Ti informiamo che hai <b>";
// line 14
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", null, true);
yield " ticket</b> assegnati ancora in attesa di essere presi in carico, in particolare:
</p>
<table cellspacing=\"0\" style=\"font-size:12px\">
<tr>
<th style=\"min-width:100px; border-collapse:collpase; border:1px solid #333; padding:2px\">Numero</th>
<th style=\"min-width:100px; border-collapse:collpase; border:1px solid #333; padding:2px\">Termid</th>
<th style=\"min-width:120px; border-collapse:collpase; border:1px solid #333; padding:2px\">Scadenza</th>
<th style=\"min-width:200px; border-collapse:collpase; border:1px solid #333; padding:2px\">Cliente</th>
<th style=\"min-width:150px; border-collapse:collpase; border:1px solid #333; padding:2px\">Operazione</th>
<th style=\"min-width:150px; border-collapse:collpase; border:1px solid #333; padding:2px\">Fornitore</th>
<th style=\"min-width:200px; border-collapse:collpase; border:1px solid #333; padding:2px\">Città </th>
<th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Indirizzo</th>
<th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Risorsa</th>
<th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Risorsa upgrade</th>
</tr>
";
// line 29
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["ticket"]) {
// line 30
yield " <tr>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "number", [], "any", false, false, false, 31), "html", null, true);
yield "</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "termid", [], "any", false, false, false, 32), "code", [], "any", false, false, false, 32), "html", null, true);
yield "</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
// line 33
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", false, false, false, 33), "d-m-Y H:i"), "---"), "html", null, true);
yield "</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "client", [], "any", false, false, false, 34), "html", null, true);
yield "</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "operation", [], "any", false, false, false, 35), "value", [], "any", false, false, false, 35), "html", null, true);
yield "</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
// line 36
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "supplier", [], "any", false, false, false, 36), "html", null, true);
yield "</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
// line 37
if ((CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "idCity", [], "any", false, false, false, 37) != null)) {
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", false, false, false, 37)), "html", null, true);
}
yield "</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "address", [], "any", false, false, false, 38), "html", null, true);
yield "</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
// line 39
if (CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "displayJsonValueByColumn", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "operation", [], "any", false, false, false, 39), "getKeyValueByValue", ["Risorsa"], "method", false, false, false, 39)], "method", false, false, false, 39)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "displayJsonValueByColumn", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "operation", [], "any", false, false, false, 39), "getKeyValueByValue", ["Risorsa"], "method", false, false, false, 39)], "method", false, false, false, 39), "html", null, true);
}
yield "</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">";
// line 40
if (CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "displayJsonValueByColumn", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "operation", [], "any", false, false, false, 40), "getKeyValueByValue", ["Risorsa upgrade"], "method", false, false, false, 40)], "method", false, false, false, 40)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "displayJsonValueByColumn", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["ticket"], "operation", [], "any", false, false, false, 40), "getKeyValueByValue", ["Risorsa upgrade"], "method", false, false, false, 40)], "method", false, false, false, 40), "html", null, true);
}
yield "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ticket'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 43
yield " </table>
<p style=\"color:#333\">
Entra subito in <a href=\"https://www.eposmanager.software/scrivania\">www.eposmanager.software</a> per prenderli in carico.
</p>
</td>
</tr>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "email/technician/tickets_assigned.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"email/base.html.twig\" %}
{% block content %}
<tr>
<td style=\"padding: 10px 0px\">
<p style=\"color:#333\">
Ciao {{ user }},
</p>
</td>
</tr>
<tr>
<td style=\"padding: 10px 0px\">
<p style=\"color:#333\">
Ti informiamo che hai <b>{{ tickets|length }} ticket</b> assegnati ancora in attesa di essere presi in carico, in particolare:
</p>
<table cellspacing=\"0\" style=\"font-size:12px\">
<tr>
<th style=\"min-width:100px; border-collapse:collpase; border:1px solid #333; padding:2px\">Numero</th>
<th style=\"min-width:100px; border-collapse:collpase; border:1px solid #333; padding:2px\">Termid</th>
<th style=\"min-width:120px; border-collapse:collpase; border:1px solid #333; padding:2px\">Scadenza</th>
<th style=\"min-width:200px; border-collapse:collpase; border:1px solid #333; padding:2px\">Cliente</th>
<th style=\"min-width:150px; border-collapse:collpase; border:1px solid #333; padding:2px\">Operazione</th>
<th style=\"min-width:150px; border-collapse:collpase; border:1px solid #333; padding:2px\">Fornitore</th>
<th style=\"min-width:200px; border-collapse:collpase; border:1px solid #333; padding:2px\">Città </th>
<th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Indirizzo</th>
<th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Risorsa</th>
<th style=\"min-width:300px; border-collapse:collpase; border:1px solid #333; padding:2px\">Risorsa upgrade</th>
</tr>
{% for ticket in tickets %}
<tr>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.number }}</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.termid.code }}</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.datetimeExpiration|date(\"d-m-Y H:i\")|default(\"---\") }}</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.client }}</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.operation.value }}</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.supplier }}</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{% if ticket.idCity != null %}{{ ticket.idCity|translate_city_only }}{% endif %}</td>
<td style=\"border-collapse:collpase; border:1px solid #333; padding:2px\">{{ ticket.address }}</td>
<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>
<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>
</tr>
{% endfor %}
</table>
<p style=\"color:#333\">
Entra subito in <a href=\"https://www.eposmanager.software/scrivania\">www.eposmanager.software</a> per prenderli in carico.
</p>
</td>
</tr>
{% endblock %}
", "email/technician/tickets_assigned.html.twig", "/var/www/vhosts/eposmanager.software/templates/email/technician/tickets_assigned.html.twig");
}
}