<?php

/* default/template/extension/module/xtensions/checkout/xshipping_method.twig */
class __TwigTemplate_10a3e2d16898528392f171d043f47fab30b478b07b95dabb37fe4a75c0abd4e8 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        if ((isset($context["shipping_methods"]) ? $context["shipping_methods"] : null)) {
            echo "            
<table class=\"table\">
";
            // line 3
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["shipping_methods"]) ? $context["shipping_methods"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["shipping_method"]) {
                echo "          
";
                // line 4
                if ( !$this->getAttribute($context["shipping_method"], "error", array())) {
                    echo " 
";
                    // line 5
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["shipping_method"], "quote", array()));
                    foreach ($context['_seq'] as $context["_key"] => $context["quote"]) {
                        echo " 
<tbody><tr>
<td><label for=\"";
                        // line 7
                        echo $this->getAttribute($context["quote"], "code", array());
                        echo "\">
";
                        // line 8
                        if ((($this->getAttribute($context["quote"], "code", array()) == (isset($context["shipping_code"]) ? $context["shipping_code"] : null)) ||  !(isset($context["shipping_code"]) ? $context["shipping_code"] : null))) {
                            echo " 
";
                            // line 9
                            $context["shipping_code"] = $this->getAttribute($context["quote"], "code", array());
                            echo " 
<input type=\"radio\" class=\"input-radio\" name=\"shipping_method\" value=\"";
                            // line 10
                            echo $this->getAttribute($context["quote"], "code", array());
                            echo "\" id=\"";
                            echo $this->getAttribute($context["quote"], "code", array());
                            echo "\" checked=\"checked\" />
";
                        } else {
                            // line 11
                            echo " 
<input type=\"radio\" class=\"input-radio\" name=\"shipping_method\" value=\"";
                            // line 12
                            echo $this->getAttribute($context["quote"], "code", array());
                            echo "\" id=\"";
                            echo $this->getAttribute($context["quote"], "code", array());
                            echo "\" />
";
                        }
                        // line 13
                        echo " 
";
                        // line 14
                        echo $this->getAttribute($context["quote"], "title", array());
                        echo "</label></td>
<td class=\"text-right\"><label class=\"text-strong\" for=\"";
                        // line 15
                        echo $this->getAttribute($context["quote"], "code", array());
                        echo "\">";
                        echo $this->getAttribute($context["quote"], "text", array());
                        echo "</label></td>
</tr></tbody>
";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['quote'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 17
                    echo " 
";
                } else {
                    // line 18
                    echo " 
<tbody><tr>
<td colspan=\"2\"><div class=\"xerror\">";
                    // line 20
                    echo $this->getAttribute($context["shipping_method"], "error", array());
                    echo "</div></td>
</tr></tbody>
";
                }
                // line 22
                echo " 
";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['shipping_method'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 23
            echo " 
</table>
";
        }
    }

    public function getTemplateName()
    {
        return "default/template/extension/module/xtensions/checkout/xshipping_method.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  109 => 23,  102 => 22,  96 => 20,  92 => 18,  88 => 17,  77 => 15,  73 => 14,  70 => 13,  63 => 12,  60 => 11,  53 => 10,  49 => 9,  45 => 8,  41 => 7,  34 => 5,  30 => 4,  24 => 3,  19 => 1,);
    }
}
/* {% if shipping_methods  %}            */
/* <table class="table">*/
/* {% for shipping_method in shipping_methods %}          */
/* {% if not shipping_method.error  %} */
/* {% for quote in shipping_method.quote %} */
/* <tbody><tr>*/
/* <td><label for="{{ quote.code }}">*/
/* {% if quote.code == shipping_code or not shipping_code  %} */
/* {% set shipping_code = quote.code %} */
/* <input type="radio" class="input-radio" name="shipping_method" value="{{ quote.code }}" id="{{ quote.code }}" checked="checked" />*/
/* {% else %} */
/* <input type="radio" class="input-radio" name="shipping_method" value="{{ quote.code }}" id="{{ quote.code }}" />*/
/* {% endif %} */
/* {{ quote.title }}</label></td>*/
/* <td class="text-right"><label class="text-strong" for="{{ quote.code }}">{{ quote.text }}</label></td>*/
/* </tr></tbody>*/
/* {% endfor %} */
/* {% else %} */
/* <tbody><tr>*/
/* <td colspan="2"><div class="xerror">{{ shipping_method.error }}</div></td>*/
/* </tr></tbody>*/
/* {% endif %} */
/* {% endfor %} */
/* </table>*/
/* {% endif %}*/
