<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* survey/questions/answer/arrays/array/no_dropdown/rows/answer_row.twig */
class __TwigTemplate_f30e5a22f666a180ea75ca0f55de2981d744eb5384fe3bbb15448bae18ad3a98 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
        $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
        $this->checkSecurity();
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 13
        echo "
<!-- answer_row -->
<tr id=\"javatbd";
        // line 15
        echo $this->sandbox->ensureToStringAllowed(($context["myfname"] ?? null), 15, $this->source);
        echo "\" class=\"answers-list radio-list ";
        if (($context["odd"] ?? null)) {
            echo " ls-odd";
        } else {
            echo " ls-even";
        }
        // line 16
        if (($context["error"] ?? null)) {
            echo " ls-error-mandatory has-error";
        }
        echo "\" role=\"radiogroup\"  aria-labelledby=\"answertext";
        echo $this->sandbox->ensureToStringAllowed(($context["myfname"] ?? null), 16, $this->source);
        echo "\">
    <th id=\"answertext";
        // line 17
        echo $this->sandbox->ensureToStringAllowed(($context["myfname"] ?? null), 17, $this->source);
        echo "\" class=\"answertext control-label";
        if ((0 === twig_compare(($context["answerwidth"] ?? null), 0))) {
            echo " visually-hidden";
        }
        echo "\">
        ";
        // line 18
        echo LS_Twig_Extension::processString($this->sandbox->ensureToStringAllowed(($context["answertext"] ?? null), 18, $this->source));
        echo "
        
        ";
        // line 21
        echo "        ";
        echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["C"] ?? null), "Html", [], "any", false, false, true, 21), "hiddenField", [("java" . $this->sandbox->ensureToStringAllowed(($context["myfname"] ?? null), 21, $this->source)), ($context["value"] ?? null), ["id" => ("java" . $this->sandbox->ensureToStringAllowed(        // line 22
($context["myfname"] ?? null), 22, $this->source)), "disabled" => true]], "method", false, false, true, 21), 21, $this->source);
        // line 25
        echo "
    </th>

        ";
        // line 28
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["aAnswerColumns"] ?? null));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["aAnswerColumn"]) {
            // line 29
            echo "            ";
            $this->loadTemplate("survey/questions/answer/arrays/array/no_dropdown/rows/cells/answer_td.twig", "survey/questions/answer/arrays/array/no_dropdown/rows/answer_row.twig", 29)->display(twig_array_merge($context, $context["aAnswerColumn"]));
            // line 30
            echo "        ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['aAnswerColumn'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 31
        echo "        ";
        // line 32
        echo "    
    ";
        // line 33
        if (($context["right_exists"] ?? null)) {
            // line 34
            echo "        <th class='answertextright information-item";
            if ((0 === twig_compare(($context["answerwidth"] ?? null), 0))) {
                echo " visually-hidden";
            }
            echo "'>";
            echo LS_Twig_Extension::processString($this->sandbox->ensureToStringAllowed(($context["answertextright"] ?? null), 34, $this->source));
            echo "</th>
    ";
        }
        // line 36
        echo "    
        ";
        // line 38
        echo "        ";
        if ( !twig_test_empty(($context["aNoAnswerColumn"] ?? null))) {
            // line 39
            echo "            ";
            $this->loadTemplate("survey/questions/answer/arrays/array/no_dropdown/rows/cells/answer_td.twig", "survey/questions/answer/arrays/array/no_dropdown/rows/answer_row.twig", 39)->display(twig_array_merge($context, ($context["aNoAnswerColumn"] ?? null)));
            // line 40
            echo "        ";
        }
        // line 41
        echo "    
</tr>
<!-- end of answer_row -->";
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "survey/questions/answer/arrays/array/no_dropdown/rows/answer_row.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  144 => 41,  141 => 40,  138 => 39,  135 => 38,  132 => 36,  122 => 34,  120 => 33,  117 => 32,  115 => 31,  101 => 30,  98 => 29,  81 => 28,  76 => 25,  74 => 22,  72 => 21,  67 => 18,  59 => 17,  51 => 16,  43 => 15,  39 => 13,);
    }

    public function getSourceContext()
    {
        return new Source("", "survey/questions/answer/arrays/array/no_dropdown/rows/answer_row.twig", "/home/mbsinsight/mbs-test.insightlink.com.au/application/views/survey/questions/answer/arrays/array/no_dropdown/rows/answer_row.twig");
    }
    
    public function checkSecurity()
    {
        static $tags = array("if" => 15, "for" => 28, "include" => 29);
        static $filters = array();
        static $functions = array("processString" => 18);

        try {
            $this->sandbox->checkSecurity(
                ['if', 'for', 'include'],
                [],
                ['processString']
            );
        } catch (SecurityError $e) {
            $e->setSourceContext($this->source);

            if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
                $e->setTemplateLine($tags[$e->getTagName()]);
            } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
                $e->setTemplateLine($filters[$e->getFilterName()]);
            } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
                $e->setTemplateLine($functions[$e->getFunctionName()]);
            }

            throw $e;
        }

    }
}
