<?php

/* default/template/extension/module/xtensions/checkout/xpayment_method.twig */
class __TwigTemplate_0c14d2c24620f45465cc7b29835aa129c07c33032eb92ce64aa58d734c994a1c 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
        echo "<div class=\"container\">
<div class=\"row equal\">
<div id=\"paymentPage\" class=\"col-md-9\">
<ul class=\"hidden nav nav-pills nav-wizard hidden-xs\">
  <li class=\"";
        // line 5
        echo (((isset($context["isLogged"]) ? $context["isLogged"] : null)) ? ("locked\"") : ("unlocked"));
        echo "\"><a ";
        echo (((isset($context["isLogged"]) ? $context["isLogged"] : null)) ? ("") : ("onclick=\"click1();\""));
        echo ">";
        echo (isset($context["text_checkout_step_1"]) ? $context["text_checkout_step_1"] : null);
        echo (((isset($context["isLogged"]) ? $context["isLogged"] : null)) ? ("<i class=\"fa fa-lock\"></i>") : (""));
        echo "</a><div class=\"nav-arrow\"></div></li>
  <li class=\"unlocked\"><div class=\"nav-wedge\"></div><a onclick=\"click2();\">";
        // line 6
        echo (isset($context["text_checkout_step_2"]) ? $context["text_checkout_step_2"] : null);
        echo "</a><div class=\"nav-arrow\"></div></li>
  <li class=\"active\"><div class=\"nav-wedge\"></div><a>";
        // line 7
        echo (isset($context["text_checkout_step_3"]) ? $context["text_checkout_step_3"] : null);
        echo "</a></li>
</ul>
<div class=\"row youpaytext\">
<div class=\"col-xs-6\">";
        // line 10
        echo (isset($context["text_payment_method"]) ? $context["text_payment_method"] : null);
        echo "</div>
<div class=\"col-xs-6 text-right\">";
        // line 11
        echo (isset($context["text_you_pay"]) ? $context["text_you_pay"] : null);
        echo "<span class=\"youpay\">";
        echo (isset($context["total"]) ? $context["total"] : null);
        echo "</span></div>
</div>
";
        // line 13
        if ( !(isset($context["payment_methods"]) ? $context["payment_methods"] : null)) {
            // line 14
            echo "<div class=\"alert alert-danger margintopbottom20\">";
            echo (isset($context["error_payment_warning"]) ? $context["error_payment_warning"] : null);
            echo "</div>
";
        } else {
            // line 16
            if ((isset($context["accordion_view"]) ? $context["accordion_view"] : null)) {
                // line 17
                echo "<div class=\"panel-group\" id=\"payment-accordion\" role=\"tablist\" aria-multiselectable=\"false\">
";
                // line 18
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["payment_methods"]) ? $context["payment_methods"] : null));
                foreach ($context['_seq'] as $context["_key"] => $context["payment_method"]) {
                    echo " 
";
                    // line 19
                    if ((($this->getAttribute($context["payment_method"], "code", array()) == (isset($context["code"]) ? $context["code"] : null)) ||  !(isset($context["code"]) ? $context["code"] : null))) {
                        $context["code"] = $this->getAttribute($context["payment_method"], "code", array());
                    }
                    echo "  
  <div class=\"panel\">
    <div class=\"panel-heading\" role=\"tab\" id=\"heading";
                    // line 21
                    echo $this->getAttribute($context["payment_method"], "code", array());
                    echo "\">
    \t <h4 class=\"panel-title\">     
          <a aria-expanded=\"";
                    // line 23
                    echo ((((isset($context["code"]) ? $context["code"] : null) == $this->getAttribute($context["payment_method"], "code", array()))) ? ("true") : ("false"));
                    echo "\" id=\"anchor";
                    echo $this->getAttribute($context["payment_method"], "code", array());
                    echo "\" class=\"heading-panel";
                    echo ((((isset($context["code"]) ? $context["code"] : null) == $this->getAttribute($context["payment_method"], "code", array()))) ? ("") : (" collapsed"));
                    echo "\" payment_method=\"";
                    echo $this->getAttribute($context["payment_method"], "code", array());
                    echo "\" role=\"button\" data-toggle=\"collapse\" data-parent=\"#payment-accordion\" data-target=\"#collapse";
                    echo $this->getAttribute($context["payment_method"], "code", array());
                    echo "\" aria-controls=\"collapse";
                    echo $this->getAttribute($context["payment_method"], "code", array());
                    echo "\">          
          <label>";
                    // line 24
                    echo $this->getAttribute($context["payment_method"], "title", array());
                    echo "</label>
          </a>
        </h4>
        ";
                    // line 27
                    if (($this->getAttribute((isset($context["payment_images"]) ? $context["payment_images"] : null), $this->getAttribute($context["payment_method"], "code", array()), array(), "array", true, true) && $this->getAttribute((isset($context["payment_images"]) ? $context["payment_images"] : null), $this->getAttribute($context["payment_method"], "code", array()), array(), "array"))) {
                        echo " 
        <div class=\"payment_images\"><img class=\"payment_method_img\" src=\"image/";
                        // line 28
                        echo $this->getAttribute((isset($context["payment_images"]) ? $context["payment_images"] : null), $this->getAttribute($context["payment_method"], "code", array()), array(), "array");
                        echo "\"/></div>
        ";
                    }
                    // line 29
                    echo "        
    </div>      
      <div id=\"collapse";
                    // line 31
                    echo $this->getAttribute($context["payment_method"], "code", array());
                    echo "\" class=\"panel-collapse collapse ";
                    echo ((((isset($context["code"]) ? $context["code"] : null) == $this->getAttribute($context["payment_method"], "code", array()))) ? ("in") : (""));
                    echo "\" role=\"tabpanel\" aria-labelledby=\"heading";
                    echo $this->getAttribute($context["payment_method"], "code", array());
                    echo "\">
      <div id=\"panel-body";
                    // line 32
                    echo $this->getAttribute($context["payment_method"], "code", array());
                    echo "\" class=\"panel-body\">        
      </div>
    </div>
  </div> 
";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['payment_method'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 36
                echo " 
</div>
";
            } else {
                // line 38
                echo " 
<div class=\"row equal bordertop\">
<div class=\"col-md-3 nopadding\">
<div class=\"pside-bar\">
<nav class=\"nav-sidebar\">
<ul id=\"paymentMethodTab\" class=\"nav nav-tabs tabs-left\">
";
                // line 44
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["payment_methods"]) ? $context["payment_methods"] : null));
                foreach ($context['_seq'] as $context["_key"] => $context["payment_method"]) {
                    echo " 
\t";
                    // line 45
                    if ((($this->getAttribute($context["payment_method"], "code", array()) == (isset($context["code"]) ? $context["code"] : null)) ||  !(isset($context["code"]) ? $context["code"] : null))) {
                        echo " 
      ";
                        // line 46
                        $context["code"] = $this->getAttribute($context["payment_method"], "code", array());
                        echo "      \t
    \t  <li id=\"t";
                        // line 47
                        echo $this->getAttribute($context["payment_method"], "code", array());
                        echo "\" class=\"active pointer payment_method_list\">
    ";
                    } else {
                        // line 48
                        echo " 
    \t<li class=\"pointer\" id=\"t";
                        // line 49
                        echo $this->getAttribute($context["payment_method"], "code", array());
                        echo "\">
    ";
                    }
                    // line 50
                    echo "\t  
\t\t\t<a payment_method=\"";
                    // line 51
                    echo $this->getAttribute($context["payment_method"], "code", array());
                    echo "\" data-toggle=\"tab\">";
                    echo $this->getAttribute($context["payment_method"], "title", array());
                    echo " 
\t\t\t";
                    // line 52
                    if (($this->getAttribute((isset($context["payment_images"]) ? $context["payment_images"] : null), $this->getAttribute($context["payment_method"], "code", array()), array(), "array", true, true) && $this->getAttribute((isset($context["payment_images"]) ? $context["payment_images"] : null), $this->getAttribute($context["payment_method"], "code", array()), array(), "array"))) {
                        echo " 
        \t\t<span class=\"payment_images is_list\"><img class=\"payment_method_img\" src=\"image/";
                        // line 53
                        echo $this->getAttribute((isset($context["payment_images"]) ? $context["payment_images"] : null), $this->getAttribute($context["payment_method"], "code", array()), array(), "array");
                        echo "\"/></span>
        \t";
                    }
                    // line 54
                    echo "</a></li>
";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['payment_method'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 55
                echo " 
</ul>
</nav>   
</div>
</div>
<!--col-md-3 ends-->
<div class=\"col-md-9\"><!--col-md-9 starts-->
<div id=\"paymentMethodTabContent\" class=\"tab-content\" >
<div class=\"panel panel-default\"><div class=\"panel-body\">
<div id=\"pLoader\" class=\"loader\"></div>
<div class=\"tab-pane fade in active\" id=\"payment-method-content\">
<div id=\"spayment-method-content\" class=\"center text-center\"></div>
</div>
</div></div>      
</div>
</div>
</div>
";
            }
            // line 72
            echo " 
";
        }
        // line 73
        echo " 
</div>
<div class=\"col-md-3 lborder\">
<div class=\"clearfix\"></div>

<div class=\"panel-default\" >
<div >
<div id=\"xcart\" class=\"animated1 zoomIn1\">";
        // line 80
        echo (isset($context["xcart"]) ? $context["xcart"] : null);
        echo "</div>
<div id=\"totals\" class=\"animated1 zoomIn1\">";
        // line 81
        echo (isset($context["xtotals"]) ? $context["xtotals"] : null);
        echo "</div>
</div>
</div>
<div class=\"panel panel-default sidepanel\" >
<div class=\"panel-heading sidepanel\">
<div class=\"panel-title shippingS\">
<span><i class=\"fa fa-home\"></i></span>&nbsp;<span>";
        // line 87
        echo (isset($context["shipping_address_title"]) ? $context["shipping_address_title"] : null);
        echo "</span>
</div>
</div>                                      
<div class=\"panel-body sidepanel text-muted\">
<span>";
        // line 91
        echo (isset($context["shipaddress"]) ? $context["shipaddress"] : null);
        echo "</span>
";
        // line 92
        if (array_key_exists("shipping_method", $context)) {
            echo "  
<div><span class=\"bold\">";
            // line 93
            echo (isset($context["shipping_method"]) ? $context["shipping_method"] : null);
            echo "</span><span class=\"scost bold\">";
            echo (isset($context["shipping_method_cost"]) ? $context["shipping_method_cost"] : null);
            echo "</span></div>  
";
        }
        // line 94
        echo "              
</div>   
<div class=\"panel-footer sidepanel\">
<div class=\"pchange\"><a class=\"pointer underline\">";
        // line 97
        echo (isset($context["text_change_address"]) ? $context["text_change_address"] : null);
        echo "</a></div>
</div>                        
</div>
</div>
</div>
</div>
<script type=\"text/javascript\">
\$('#step2 a, .pchange a').click(function(event){
    event.preventDefault();        \t    \t
\tclick2();
});
\$(\"#click2\").click(function() {
\tclick2();
});
function click2(){
\t\$('#step3').removeClass('active');
\t\$('#step3').addClass('disabled');
\t\$('#step2').removeClass('complete');
    \$('#step2').addClass('active');    \t\t\t
\t\$('#step2 a').removeAttr('href');
\t\$('#click2').removeClass('clickable');
\t\$('#undo2').hide();
\t\$('#step3').removeClass('active');
\t\$('#step_payment_panel').html('');
\t\$('#step_payment_panel').hide();
\t\$('#step_address_panel').show();
};
</script>
";
        // line 125
        if ((isset($context["payment_methods"]) ? $context["payment_methods"] : null)) {
            // line 126
            echo "<script type=\"text/javascript\">
var payment_method_code = '";
            // line 127
            echo ((array_key_exists("code", $context)) ? ((isset($context["code"]) ? $context["code"] : null)) : (""));
            echo "';

\$(document).ready(function(){
";
            // line 130
            if ((isset($context["accordion_view"]) ? $context["accordion_view"] : null)) {
                echo " 
    \$('.panel-heading a').on('click',function(e){
        if(\$(this).parents('.panel').children('.panel-collapse').hasClass('in')){
            e.stopPropagation();
            e.preventDefault();
        }
    });
\tloadPaymentMethodAccordion(payment_method_code);\t
";
            } else {
                // line 138
                echo "\t
\tloadPaymentMethodTab(payment_method_code);\t\t
";
            }
            // line 140
            echo " 
});
</script>
";
        }
        // line 143
        echo " ";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  341 => 143,  335 => 140,  330 => 138,  318 => 130,  312 => 127,  309 => 126,  307 => 125,  276 => 97,  271 => 94,  264 => 93,  260 => 92,  256 => 91,  249 => 87,  240 => 81,  236 => 80,  227 => 73,  223 => 72,  203 => 55,  196 => 54,  191 => 53,  187 => 52,  181 => 51,  178 => 50,  173 => 49,  170 => 48,  165 => 47,  161 => 46,  157 => 45,  151 => 44,  143 => 38,  138 => 36,  127 => 32,  119 => 31,  115 => 29,  110 => 28,  106 => 27,  100 => 24,  86 => 23,  81 => 21,  74 => 19,  68 => 18,  65 => 17,  63 => 16,  57 => 14,  55 => 13,  48 => 11,  44 => 10,  38 => 7,  34 => 6,  25 => 5,  19 => 1,);
    }
}
/* <div class="container">*/
/* <div class="row equal">*/
/* <div id="paymentPage" class="col-md-9">*/
/* <ul class="hidden nav nav-pills nav-wizard hidden-xs">*/
/*   <li class="{{ isLogged?'locked"':'unlocked'}}"><a {{ isLogged?'':'onclick="click1();"'}}>{{ text_checkout_step_1 }}{{ isLogged?'<i class="fa fa-lock"></i>':''}}</a><div class="nav-arrow"></div></li>*/
/*   <li class="unlocked"><div class="nav-wedge"></div><a onclick="click2();">{{ text_checkout_step_2 }}</a><div class="nav-arrow"></div></li>*/
/*   <li class="active"><div class="nav-wedge"></div><a>{{ text_checkout_step_3 }}</a></li>*/
/* </ul>*/
/* <div class="row youpaytext">*/
/* <div class="col-xs-6">{{ text_payment_method }}</div>*/
/* <div class="col-xs-6 text-right">{{ text_you_pay }}<span class="youpay">{{ total }}</span></div>*/
/* </div>*/
/* {% if not payment_methods  %}*/
/* <div class="alert alert-danger margintopbottom20">{{ error_payment_warning }}</div>*/
/* {% else %}*/
/* {% if accordion_view  %}*/
/* <div class="panel-group" id="payment-accordion" role="tablist" aria-multiselectable="false">*/
/* {% for payment_method in payment_methods %} */
/* {% if  payment_method.code == code or not code  %}{% set code = payment_method.code %}{% endif %}  */
/*   <div class="panel">*/
/*     <div class="panel-heading" role="tab" id="heading{{ payment_method.code }}">*/
/*     	 <h4 class="panel-title">     */
/*           <a aria-expanded="{{ code == payment_method.code?'true':'false' }}" id="anchor{{ payment_method.code }}" class="heading-panel{{ code == payment_method.code?'':' collapsed' }}" payment_method="{{ payment_method.code }}" role="button" data-toggle="collapse" data-parent="#payment-accordion" data-target="#collapse{{ payment_method.code }}" aria-controls="collapse{{ payment_method.code }}">          */
/*           <label>{{ payment_method.title }}</label>*/
/*           </a>*/
/*         </h4>*/
/*         {% if    payment_images[payment_method.code] is defined and payment_images[payment_method.code]  %} */
/*         <div class="payment_images"><img class="payment_method_img" src="image/{{ payment_images[payment_method.code] }}"/></div>*/
/*         {% endif %}        */
/*     </div>      */
/*       <div id="collapse{{ payment_method.code }}" class="panel-collapse collapse {{ code == payment_method.code?'in':'' }}" role="tabpanel" aria-labelledby="heading{{ payment_method.code }}">*/
/*       <div id="panel-body{{ payment_method.code }}" class="panel-body">        */
/*       </div>*/
/*     </div>*/
/*   </div> */
/* {% endfor %} */
/* </div>*/
/* {% else %} */
/* <div class="row equal bordertop">*/
/* <div class="col-md-3 nopadding">*/
/* <div class="pside-bar">*/
/* <nav class="nav-sidebar">*/
/* <ul id="paymentMethodTab" class="nav nav-tabs tabs-left">*/
/* {% for payment_method in payment_methods %} */
/* 	{% if    payment_method.code == code or not code  %} */
/*       {% set code = payment_method.code %}      	*/
/*     	  <li id="t{{ payment_method.code }}" class="active pointer payment_method_list">*/
/*     {% else %} */
/*     	<li class="pointer" id="t{{ payment_method.code }}">*/
/*     {% endif %}	  */
/* 			<a payment_method="{{ payment_method.code }}" data-toggle="tab">{{ payment_method.title }} */
/* 			{% if    payment_images[payment_method.code] is defined and payment_images[payment_method.code]  %} */
/*         		<span class="payment_images is_list"><img class="payment_method_img" src="image/{{ payment_images[payment_method.code] }}"/></span>*/
/*         	{% endif %}</a></li>*/
/* {% endfor %} */
/* </ul>*/
/* </nav>   */
/* </div>*/
/* </div>*/
/* <!--col-md-3 ends-->*/
/* <div class="col-md-9"><!--col-md-9 starts-->*/
/* <div id="paymentMethodTabContent" class="tab-content" >*/
/* <div class="panel panel-default"><div class="panel-body">*/
/* <div id="pLoader" class="loader"></div>*/
/* <div class="tab-pane fade in active" id="payment-method-content">*/
/* <div id="spayment-method-content" class="center text-center"></div>*/
/* </div>*/
/* </div></div>      */
/* </div>*/
/* </div>*/
/* </div>*/
/* {% endif %} */
/* {% endif %} */
/* </div>*/
/* <div class="col-md-3 lborder">*/
/* <div class="clearfix"></div>*/
/* */
/* <div class="panel-default" >*/
/* <div >*/
/* <div id="xcart" class="animated1 zoomIn1">{{ xcart }}</div>*/
/* <div id="totals" class="animated1 zoomIn1">{{ xtotals }}</div>*/
/* </div>*/
/* </div>*/
/* <div class="panel panel-default sidepanel" >*/
/* <div class="panel-heading sidepanel">*/
/* <div class="panel-title shippingS">*/
/* <span><i class="fa fa-home"></i></span>&nbsp;<span>{{ shipping_address_title }}</span>*/
/* </div>*/
/* </div>                                      */
/* <div class="panel-body sidepanel text-muted">*/
/* <span>{{ shipaddress }}</span>*/
/* {% if    shipping_method is defined  %}  */
/* <div><span class="bold">{{ shipping_method }}</span><span class="scost bold">{{ shipping_method_cost }}</span></div>  */
/* {% endif %}              */
/* </div>   */
/* <div class="panel-footer sidepanel">*/
/* <div class="pchange"><a class="pointer underline">{{ text_change_address }}</a></div>*/
/* </div>                        */
/* </div>*/
/* </div>*/
/* </div>*/
/* </div>*/
/* <script type="text/javascript">*/
/* $('#step2 a, .pchange a').click(function(event){*/
/*     event.preventDefault();        	    	*/
/* 	click2();*/
/* });*/
/* $("#click2").click(function() {*/
/* 	click2();*/
/* });*/
/* function click2(){*/
/* 	$('#step3').removeClass('active');*/
/* 	$('#step3').addClass('disabled');*/
/* 	$('#step2').removeClass('complete');*/
/*     $('#step2').addClass('active');    			*/
/* 	$('#step2 a').removeAttr('href');*/
/* 	$('#click2').removeClass('clickable');*/
/* 	$('#undo2').hide();*/
/* 	$('#step3').removeClass('active');*/
/* 	$('#step_payment_panel').html('');*/
/* 	$('#step_payment_panel').hide();*/
/* 	$('#step_address_panel').show();*/
/* };*/
/* </script>*/
/* {% if payment_methods %}*/
/* <script type="text/javascript">*/
/* var payment_method_code = '{{ code is defined?code:"" }}';*/
/* */
/* $(document).ready(function(){*/
/* {% if accordion_view  %} */
/*     $('.panel-heading a').on('click',function(e){*/
/*         if($(this).parents('.panel').children('.panel-collapse').hasClass('in')){*/
/*             e.stopPropagation();*/
/*             e.preventDefault();*/
/*         }*/
/*     });*/
/* 	loadPaymentMethodAccordion(payment_method_code);	*/
/* {% else %}	*/
/* 	loadPaymentMethodTab(payment_method_code);		*/
/* {% endif %} */
/* });*/
/* </script>*/
/* {% endif %} */
