*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []): iterable { $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", "partials/user/work-contact-details.html.twig")); $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/user/work-contact-details.html.twig")); // line 1 yield "

Work Contact Details

"; // line 12 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 12, $this->source); })()) == "view"))) { // line 13 yield "
"; // line 14 if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 14, $this->source); })()), "work_telephone", [], "any", false, false, false, 14) != "")) { // line 15 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 15, $this->source); })()), "work_telephone", [], "any", false, false, false, 15), "html", null, true); yield " "; } else { // line 17 yield " Not provided "; } // line 19 yield "
"; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 20 ($context["user"] ?? null), "roles", [], "any", false, true, false, 20), "ROLE_SUPERADMIN", [], "any", true, true, false, 20)) { // line 21 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 21, $this->source); })()), "work_telephone", [], "any", false, false, false, 21), "html", null, true); yield "\"> "; } else { // line 23 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 23, $this->source); })()), "work_telephone", [], "any", false, false, false, 23), "html", null, true); yield "\" disabled> "; } // line 25 yield "
"; // line 31 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 31, $this->source); })()) == "view"))) { // line 32 yield "
"; // line 33 if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 33, $this->source); })()), "work_telephone_extension", [], "any", false, false, false, 33) != "")) { // line 34 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 34, $this->source); })()), "work_telephone_extension", [], "any", false, false, false, 34), "html", null, true); yield " "; } else { // line 36 yield " Not provided "; } // line 38 yield "
"; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 39 ($context["user"] ?? null), "roles", [], "any", false, true, false, 39), "ROLE_SUPERADMIN", [], "any", true, true, false, 39)) { // line 40 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 40, $this->source); })()), "work_telephone_extension", [], "any", false, false, false, 40), "html", null, true); yield "\"> "; } else { // line 42 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 42, $this->source); })()), "work_telephone_extension", [], "any", false, false, false, 42), "html", null, true); yield "\" disabled> "; } // line 44 yield "
"; // line 51 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 51, $this->source); })()) == "view"))) { // line 52 yield "
"; // line 53 if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 53, $this->source); })()), "work_mobile", [], "any", false, false, false, 53) != "")) { // line 54 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 54, $this->source); })()), "work_mobile", [], "any", false, false, false, 54), "html", null, true); yield " "; } else { // line 56 yield " Not provided "; } // line 58 yield "
"; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 59 ($context["user"] ?? null), "roles", [], "any", false, true, false, 59), "ROLE_SUPERADMIN", [], "any", true, true, false, 59)) { // line 60 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 60, $this->source); })()), "work_mobile", [], "any", false, false, false, 60), "html", null, true); yield "\"> "; } else { // line 62 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 62, $this->source); })()), "work_mobile", [], "any", false, false, false, 62), "html", null, true); yield "\" disabled> "; } // line 64 yield "
"; // line 75 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 75, $this->source); })()) == "view"))) { // line 76 yield "
"; // line 77 if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 77, $this->source); })()), "work_telephone_alt1", [], "any", false, false, false, 77) != "")) { // line 78 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 78, $this->source); })()), "work_telephone_alt1", [], "any", false, false, false, 78), "html", null, true); yield " "; } else { // line 80 yield " Not provided "; } // line 82 yield "
"; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 83 ($context["user"] ?? null), "roles", [], "any", false, true, false, 83), "ROLE_SUPERADMIN", [], "any", true, true, false, 83)) { // line 84 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 84, $this->source); })()), "work_telephone_alt1", [], "any", false, false, false, 84), "html", null, true); yield "\"> "; } else { // line 86 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 86, $this->source); })()), "work_telephone_alt1", [], "any", false, false, false, 86), "html", null, true); yield "\" disabled> "; } // line 88 yield "
"; // line 94 if ((array_key_exists("mode", $context) && ((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 94, $this->source); })()) == "view"))) { // line 95 yield "
"; // line 96 if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 96, $this->source); })()), "work_telephone_alt2", [], "any", false, false, false, 96) != "")) { // line 97 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 97, $this->source); })()), "work_telephone_alt2", [], "any", false, false, false, 97), "html", null, true); yield " "; } else { // line 99 yield " Not provided "; } // line 101 yield "
"; } elseif (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 102 ($context["user"] ?? null), "roles", [], "any", false, true, false, 102), "ROLE_SUPERADMIN", [], "any", true, true, false, 102)) { // line 103 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 103, $this->source); })()), "work_telephone_alt2", [], "any", false, false, false, 103), "html", null, true); yield "\"> "; } else { // line 105 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 105, $this->source); })()), "work_telephone_alt2", [], "any", false, false, false, 105), "html", null, true); yield "\" disabled> "; } // line 107 yield "
"; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "partials/user/work-contact-details.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 289 => 119, 285 => 117, 283 => 116, 280 => 115, 278 => 114, 269 => 107, 263 => 105, 257 => 103, 255 => 102, 252 => 101, 248 => 99, 242 => 97, 240 => 96, 237 => 95, 235 => 94, 227 => 88, 221 => 86, 215 => 84, 213 => 83, 210 => 82, 206 => 80, 200 => 78, 198 => 77, 195 => 76, 193 => 75, 180 => 64, 174 => 62, 168 => 60, 166 => 59, 163 => 58, 159 => 56, 153 => 54, 151 => 53, 148 => 52, 146 => 51, 137 => 44, 131 => 42, 125 => 40, 123 => 39, 120 => 38, 116 => 36, 110 => 34, 108 => 33, 105 => 32, 103 => 31, 95 => 25, 89 => 23, 83 => 21, 81 => 20, 78 => 19, 74 => 17, 68 => 15, 66 => 14, 63 => 13, 61 => 12, 48 => 1,); } public function getSourceContext(): Source { return new Source("

Work Contact Details

{% if mode is defined and mode == 'view' %}
{% if data.work_telephone != '' %} {{ data.work_telephone }} {% else %} Not provided {% endif %}
{% elseif user.roles.ROLE_SUPERADMIN is defined %} {% else %} {% endif %}
{% if mode is defined and mode == 'view' %}
{% if data.work_telephone_extension != '' %} {{ data.work_telephone_extension }} {% else %} Not provided {% endif %}
{% elseif user.roles.ROLE_SUPERADMIN is defined %} {% else %} {% endif %}
{% if mode is defined and mode == 'view' %}
{% if data.work_mobile != '' %} {{ data.work_mobile }} {% else %} Not provided {% endif %}
{% elseif user.roles.ROLE_SUPERADMIN is defined %} {% else %} {% endif %}
{% if mode is defined and mode == 'view' %}
{% if data.work_telephone_alt1 != '' %} {{ data.work_telephone_alt1 }} {% else %} Not provided {% endif %}
{% elseif user.roles.ROLE_SUPERADMIN is defined %} {% else %} {% endif %}
{% if mode is defined and mode == 'view' %}
{% if data.work_telephone_alt2 != '' %} {{ data.work_telephone_alt2 }} {% else %} Not provided {% endif %}
{% elseif user.roles.ROLE_SUPERADMIN is defined %} {% else %} {% endif %}
", "partials/user/work-contact-details.html.twig", "/var/www/cds-intranet/app/templates/partials/user/work-contact-details.html.twig"); } }