*/ 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/emergency-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/emergency-contact-details.html.twig")); // line 1 yield "

Emergency Contact Details

Contact 1
"; // line 20 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.', 20, $this->source); })()) == "view"))) { // line 21 yield "
"; // line 22 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.', 22, $this->source); })()), "emergency_contact_1_name", [], "any", false, false, false, 22) != "")) { // line 23 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.', 23, $this->source); })()), "emergency_contact_1_name", [], "any", false, false, false, 23), "html", null, true); yield " "; } else { // line 25 yield " Not provided "; } // line 27 yield "
"; } elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 28 ($context["user"] ?? null), "roles", [], "any", false, true, false, 28), "ROLE_SUPERADMIN", [], "any", true, true, false, 28) || (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.', 28, $this->source); })()), "id", [], "any", false, false, false, 28) == CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 28, $this->source); })()), "id", [], "any", false, false, false, 28)))) { // line 29 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.', 29, $this->source); })()), "emergency_contact_1_name", [], "any", false, false, false, 29), "html", null, true); yield "\"> "; } // line 31 yield "
"; // line 38 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.', 38, $this->source); })()) == "view"))) { // line 39 yield "
"; // line 40 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.', 40, $this->source); })()), "emergency_contact_1_telephone", [], "any", false, false, false, 40) != "")) { // line 41 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.', 41, $this->source); })()), "emergency_contact_1_telephone", [], "any", false, false, false, 41), "html", null, true); yield " "; } else { // line 43 yield " Not provided "; } // line 45 yield "
"; } elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 46 ($context["user"] ?? null), "roles", [], "any", false, true, false, 46), "ROLE_SUPERADMIN", [], "any", true, true, false, 46) || (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.', 46, $this->source); })()), "id", [], "any", false, false, false, 46) == CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 46, $this->source); })()), "id", [], "any", false, false, false, 46)))) { // line 47 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.', 47, $this->source); })()), "emergency_contact_1_telephone", [], "any", false, false, false, 47), "html", null, true); yield "\"> "; } // line 49 yield "
Contact 2
"; // line 68 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.', 68, $this->source); })()) == "view"))) { // line 69 yield "
"; // line 70 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.', 70, $this->source); })()), "emergency_contact_2_name", [], "any", false, false, false, 70) != "")) { // line 71 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.', 71, $this->source); })()), "emergency_contact_2_name", [], "any", false, false, false, 71), "html", null, true); yield " "; } else { // line 73 yield " Not provided "; } // line 75 yield "
"; } elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 76 ($context["user"] ?? null), "roles", [], "any", false, true, false, 76), "ROLE_SUPERADMIN", [], "any", true, true, false, 76) || (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.', 76, $this->source); })()), "id", [], "any", false, false, false, 76) == CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 76, $this->source); })()), "id", [], "any", false, false, false, 76)))) { // line 77 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.', 77, $this->source); })()), "emergency_contact_2_name", [], "any", false, false, false, 77), "html", null, true); yield "\"> "; } // line 79 yield "
"; // line 86 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.', 86, $this->source); })()) == "view"))) { // line 87 yield "
"; // line 88 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.', 88, $this->source); })()), "emergency_contact_2_telephone", [], "any", false, false, false, 88) != "")) { // line 89 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.', 89, $this->source); })()), "emergency_contact_2_telephone", [], "any", false, false, false, 89), "html", null, true); yield " "; } else { // line 91 yield " Not provided "; } // line 93 yield "
"; } elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 94 ($context["user"] ?? null), "roles", [], "any", false, true, false, 94), "ROLE_SUPERADMIN", [], "any", true, true, false, 94) || (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.', 94, $this->source); })()), "id", [], "any", false, false, false, 94) == CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 94, $this->source); })()), "id", [], "any", false, false, false, 94)))) { // line 95 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.', 95, $this->source); })()), "emergency_contact_2_telephone", [], "any", false, false, false, 95), "html", null, true); yield "\"> "; } // line 97 yield "
"; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "partials/user/emergency-contact-details.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 239 => 109, 235 => 107, 231 => 105, 229 => 104, 220 => 97, 214 => 95, 212 => 94, 209 => 93, 205 => 91, 199 => 89, 197 => 88, 194 => 87, 192 => 86, 183 => 79, 177 => 77, 175 => 76, 172 => 75, 168 => 73, 162 => 71, 160 => 70, 157 => 69, 155 => 68, 134 => 49, 128 => 47, 126 => 46, 123 => 45, 119 => 43, 113 => 41, 111 => 40, 108 => 39, 106 => 38, 97 => 31, 91 => 29, 89 => 28, 86 => 27, 82 => 25, 76 => 23, 74 => 22, 71 => 21, 69 => 20, 48 => 1,); } public function getSourceContext(): Source { return new Source("

Emergency Contact Details

Contact 1
{% if mode is defined and mode == 'view' %}
{% if data.emergency_contact_1_name != '' %} {{ data.emergency_contact_1_name }} {% else %} Not provided {% endif %}
{% elseif user.roles.ROLE_SUPERADMIN is defined or data.id == user.id %} {% endif %}
{% if mode is defined and mode == 'view' %}
{% if data.emergency_contact_1_telephone != '' %} {{ data.emergency_contact_1_telephone }} {% else %} Not provided {% endif %}
{% elseif user.roles.ROLE_SUPERADMIN is defined or data.id == user.id %} {% endif %}
Contact 2
{% if mode is defined and mode == 'view' %}
{% if data.emergency_contact_2_name != '' %} {{ data.emergency_contact_2_name }} {% else %} Not provided {% endif %}
{% elseif user.roles.ROLE_SUPERADMIN is defined or data.id == user.id %} {% endif %}
{% if mode is defined and mode == 'view' %}
{% if data.emergency_contact_2_telephone != '' %} {{ data.emergency_contact_2_telephone }} {% else %} Not provided {% endif %}
{% elseif user.roles.ROLE_SUPERADMIN is defined or data.id == user.id %} {% endif %}
", "partials/user/emergency-contact-details.html.twig", "/var/www/cds-intranet/app/templates/partials/user/emergency-contact-details.html.twig"); } }