<?php

/* default/template/extension/module/xtensions/checkout/xcart.twig */
class __TwigTemplate_4d70d7b790815648f34b7a91a1574621bacbe5644d976d210ef5a373abf0629e 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 (( !array_key_exists("redirect", $context) && ((isset($context["products"]) ? $context["products"] : null) || (isset($context["vouchers"]) ? $context["vouchers"] : null)))) {
            echo " 
<div class=\"panel panel-green1 xcart cartpanel\">
<div class=\"panel-heading xcollapsable\" data-toggle=\"collapse\" data-target=\"#xcart-content-";
            // line 3
            echo (isset($context["section"]) ? $context["section"] : null);
            echo "\" aria-expanded=\"true\"><i class=\"fa fa-shopping-cart\" aria-hidden=\"true\"></i>&nbsp;";
            echo (isset($context["total_products"]) ? $context["total_products"] : null);
            echo "</div>
<div id=\"xcart-content-";
            // line 4
            echo (isset($context["section"]) ? $context["section"] : null);
            echo "\" class=\"panel-body collapse in\">
";
            // line 5
            if ((isset($context["xcart_success"]) ? $context["xcart_success"] : null)) {
                echo " 
<div class=\"alert alert-success alert-small\">";
                // line 6
                echo (isset($context["xcart_success"]) ? $context["xcart_success"] : null);
                echo "<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button></div>
";
            }
            // line 7
            echo " 
<div class=\"cartproducts\">
";
            // line 9
            $context["countOptions"] = 1;
            echo " ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["products"]) ? $context["products"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
                echo " 
<div class=\"cartelement\">
<div class=\"media\">
  <div class=\"media-left\">
   <a target=\"_newtab\" href=\"";
                // line 13
                echo $this->getAttribute($context["product"], "href", array());
                echo "\"><img src=\"";
                echo $this->getAttribute($context["product"], "thumb", array());
                echo "\" alt=\"";
                echo $this->getAttribute($context["product"], "name", array());
                echo "\" title=\"";
                echo $this->getAttribute($context["product"], "name", array());
                echo "\" class=\"img-thumbnail\" /></a>
  </div>
  <div class=\"media-body\">
  \t<div class=\"col-xs-12 nopadding\">
    <div class=\"media-heading\"><a target=\"_newtab\" href=\"";
                // line 17
                echo $this->getAttribute($context["product"], "href", array());
                echo "\">";
                echo $this->getAttribute($context["product"], "name", array());
                echo " 
    ";
                // line 18
                if ( !$this->getAttribute($context["product"], "stock", array())) {
                    echo " 
     <span class=\"text-danger\">***</span>
     ";
                }
                // line 20
                echo "</a></div>
    <a class=\"optionLink pointer text-right\" onclick=\"toggleOptions('xoptions";
                // line 21
                echo (isset($context["countOptions"]) ? $context["countOptions"] : null);
                echo "-";
                echo (isset($context["section"]) ? $context["section"] : null);
                echo "')\"><i class=\"fa fa-info-circle\" aria-hidden=\"true\"></i></a>
  \t<div class=\"clearfix\"></div>
  \t<div class=\"text-left width50\"><span class=\"is_amount text-muted\">";
                // line 23
                echo $this->getAttribute($context["product"], "quantity", array());
                echo " &times; ";
                echo $this->getAttribute($context["product"], "price", array());
                echo "</span></div><div class=\"text-right width50\"><span class=\"is_total\">";
                echo $this->getAttribute($context["product"], "total", array());
                echo "</span></div>
   <div class=\"clearfix\"></div>   
  <div class=\"text-left\"><div class=\"text-muted\">      \t
        \t<div style=\"display: none;\" id=\"xoptions";
                // line 26
                echo (isset($context["countOptions"]) ? $context["countOptions"] : null);
                echo "-";
                echo (isset($context["section"]) ? $context["section"] : null);
                echo "\">
        \t<div class=\"text-left\"><span>";
                // line 27
                echo (isset($context["column_model"]) ? $context["column_model"] : null);
                echo ": </span><span class=\"text-muted\">";
                echo $this->getAttribute($context["product"], "model", array());
                echo "</span></div>  
        \t";
                // line 28
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "option", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
                    echo " 
        \t\t<div class=\"xgray\">";
                    // line 29
                    echo $this->getAttribute($context["option"], "name", array());
                    echo ": ";
                    echo $this->getAttribute($context["option"], "value", array());
                    echo "</div>        \t\t
        \t";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 30
                echo " 
        \t";
                // line 31
                if ($this->getAttribute($context["product"], "reward", array())) {
                    echo "                  
              <div class=\"xgray\">";
                    // line 32
                    echo $this->getAttribute($context["product"], "reward", array());
                    echo "</div>
            ";
                }
                // line 33
                echo " 
            ";
                // line 34
                if ($this->getAttribute($context["product"], "recurring", array())) {
                    echo " 
                  <div class=\"xgray\">";
                    // line 35
                    echo (isset($context["text_recurring_item"]) ? $context["text_recurring_item"] : null);
                    echo ": ";
                    echo $this->getAttribute($context["product"], "recurring", array());
                    echo "</div>
\t\t\t";
                }
                // line 36
                echo " 
        \t</div>
        \t</div> 
  \t\t\t</div> 
  \t\t\t
  \t\t<div class=\"clearfix\"></div>
  ";
                // line 42
                if ($this->getAttribute($context["product"], "error_warning", array())) {
                    echo " 
  <div class=\"text-danger\">";
                    // line 43
                    echo $this->getAttribute($context["product"], "error_warning", array());
                    echo "</div>
  ";
                }
                // line 44
                echo " 
   ";
                // line 45
                if (((isset($context["section"]) ? $context["section"] : null) == "payment")) {
                    echo " 
   <div class=\"text-left\"><a class=\"pointer underline\" onclick=\"click2();\">";
                    // line 46
                    echo (isset($context["text_cart_edit"]) ? $context["text_cart_edit"] : null);
                    echo "</a></div>
   <div class=\"clearfix\"></div> 
   ";
                }
                // line 48
                echo "   
   </div> 
   </div>
</div>
";
                // line 52
                if (((isset($context["section"]) ? $context["section"] : null) != "payment")) {
                    echo " 
<div class=\"input-group cartedit\">  \t
    <div class=\"input-group-addon editcart minus\" onclick=\"\$(this).children('button').children('i').removeClass('icon ion-minus');\$(this).children('button').children('i').addClass('fa fa-circle-o-notch fa-spin');xcart.xupdate('";
                    // line 54
                    echo $this->getAttribute($context["product"], "cart_id", array());
                    echo "',parseInt(+(\$('input[name=\\'quantity[";
                    echo $this->getAttribute($context["product"], "cart_id", array());
                    echo "]\\']').val())-1),'";
                    echo (isset($context["section"]) ? $context["section"] : null);
                    echo "');\"><button type=\"button\" data-toggle=\"tooltip\" title=\"";
                    echo (isset($context["button_update"]) ? $context["button_update"] : null);
                    echo "\"><i class=\"icon ion-minus\"></i></button></div>
    <input type=\"text\" name=\"quantity[";
                    // line 55
                    echo $this->getAttribute($context["product"], "cart_id", array());
                    echo "]\" onchange=\"xcart.xupdate('";
                    echo $this->getAttribute($context["product"], "cart_id", array());
                    echo "',\$('input[name=\\'quantity[";
                    echo $this->getAttribute($context["product"], "cart_id", array());
                    echo "]\\']').val(),'";
                    echo (isset($context["section"]) ? $context["section"] : null);
                    echo "');\" value=\"";
                    echo $this->getAttribute($context["product"], "quantity", array());
                    echo "\" size=\"1\" class=\"form-control\" />                                     
    <div class=\"input-group-addon editcart plus\" onclick=\"\$(this).children('button').children('i').removeClass('icon ion-plus-round');\$(this).children('button').children('i').addClass('fa fa-circle-o-notch fa-spin');xcart.xupdate('";
                    // line 56
                    echo $this->getAttribute($context["product"], "cart_id", array());
                    echo "',parseInt(+(\$('input[name=\\'quantity[";
                    echo $this->getAttribute($context["product"], "cart_id", array());
                    echo "]\\']').val())+1),'";
                    echo (isset($context["section"]) ? $context["section"] : null);
                    echo "');\"><button type=\"button\" data-toggle=\"tooltip\" title=\"";
                    echo (isset($context["button_update"]) ? $context["button_update"] : null);
                    echo "\"><i class=\"icon ion-plus-round\"></i></button></div>
    <div class=\"input-group-addon editcart xremove\" onclick=\"\$(this).children('button').children('i').removeClass('icon ion-trash-b');\$(this).children('button').children('i').addClass('fa fa-circle-o-notch fa-spin');xcart.xremove('";
                    // line 57
                    echo $this->getAttribute($context["product"], "cart_id", array());
                    echo "','";
                    echo (isset($context["section"]) ? $context["section"] : null);
                    echo "');\"><button type=\"button\" data-toggle=\"tooltip\" title=\"";
                    echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
                    echo "\"><i class=\"icon ion-trash-b\"></i></button></div>
    <div class=\"input-group-addon editcart xwishlist\" onclick=\"\$(this).children('button').children('i').removeClass('icon ion-android-favorite-outline');\$(this).children('button').children('i').addClass('fa fa-circle-o-notch fa-spin');xcart.wishlist('";
                    // line 58
                    echo $this->getAttribute($context["product"], "product_id", array());
                    echo "','";
                    echo $this->getAttribute($context["product"], "cart_id", array());
                    echo "','";
                    echo (isset($context["section"]) ? $context["section"] : null);
                    echo "');\"><button type=\"button\" data-toggle=\"tooltip\" title=\"";
                    echo (isset($context["text_move_to_wishlist"]) ? $context["text_move_to_wishlist"] : null);
                    echo "\"><i class=\"icon ion-android-favorite-outline\"></i></button></div>
</div>
<div class=\"clearfix\"></div>   
";
                }
                // line 61
                echo " 
</div>
 ";
                // line 63
                $context["countOptions"] = ((isset($context["countOptions"]) ? $context["countOptions"] : null) + 1);
                echo " 
";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 64
            echo " 
";
            // line 65
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["vouchers"]) ? $context["vouchers"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["voucher"]) {
                echo " 
<div class=\"cartelement\">
<div class=\"media\">
<div class=\"media-left\">
   <span><img src=\"";
                // line 69
                echo (isset($context["voucher_image"]) ? $context["voucher_image"] : null);
                echo "\" alt=\"";
                echo $this->getAttribute($context["voucher"], "description", array());
                echo "\" class=\"img-thumbnail\" /></span>
  </div>
<div class=\"media-body\">
  \t<div class=\"col-xs-12 nopadding\">
    <div class=\"media-heading\">";
                // line 73
                echo (isset($context["text_gift_voucher"]) ? $context["text_gift_voucher"] : null);
                echo "</div>
    <a class=\"optionLink pointer text-right\" onclick=\"toggleOptions('xoptions";
                // line 74
                echo (isset($context["countOptions"]) ? $context["countOptions"] : null);
                echo "-";
                echo (isset($context["section"]) ? $context["section"] : null);
                echo "')\"><i class=\"fa fa-info-circle\" aria-hidden=\"true\"></i></a>
    <div class=\"clearfix\"></div>  \t
  \t<div class=\"text-left width50\"><span class=\"is_total\">";
                // line 76
                echo $this->getAttribute($context["voucher"], "amount", array());
                echo "</span></div>
  \t";
                // line 77
                if (((isset($context["section"]) ? $context["section"] : null) != "payment")) {
                    echo " 
  \t<div class=\"text-right width50\"><a class=\"pointer underline\" onclick=\"xvoucher.xremove('";
                    // line 78
                    echo $this->getAttribute($context["voucher"], "key", array());
                    echo "','";
                    echo (isset($context["section"]) ? $context["section"] : null);
                    echo "');\">";
                    echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
                    echo "</a></div>
  \t";
                } else {
                    // line 79
                    echo " 
  \t<div class=\"text-right width50\"><a class=\"pointer underline\" onclick=\"click2();\">";
                    // line 80
                    echo (isset($context["text_cart_edit"]) ? $context["text_cart_edit"] : null);
                    echo "</a></div>
  \t";
                }
                // line 81
                echo " 
   <div class=\"clearfix\"></div>  
   <div class=\"text-left\"><div class=\"text-muted\">      \t
   <div style=\"display: none;\" id=\"xoptions";
                // line 84
                echo (isset($context["countOptions"]) ? $context["countOptions"] : null);
                echo "-";
                echo (isset($context["section"]) ? $context["section"] : null);
                echo "\">
   <div class=\"text-left\"><span>";
                // line 85
                echo $this->getAttribute($context["voucher"], "description", array());
                echo "</span></div>
   </div>
   </div> 
   </div> 
   <div class=\"clearfix\"></div>\t\t\t
</div>
</div>
</div>
</div>
 ";
                // line 94
                $context["countOptions"] = ((isset($context["countOptions"]) ? $context["countOptions"] : null) + 1);
                echo " ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['voucher'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            echo " 
</div>
</div>
</div>
";
        }
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  343 => 94,  331 => 85,  325 => 84,  320 => 81,  315 => 80,  312 => 79,  303 => 78,  299 => 77,  295 => 76,  288 => 74,  284 => 73,  275 => 69,  266 => 65,  263 => 64,  255 => 63,  251 => 61,  238 => 58,  230 => 57,  220 => 56,  208 => 55,  198 => 54,  193 => 52,  187 => 48,  181 => 46,  177 => 45,  174 => 44,  169 => 43,  165 => 42,  157 => 36,  150 => 35,  146 => 34,  143 => 33,  138 => 32,  134 => 31,  131 => 30,  121 => 29,  115 => 28,  109 => 27,  103 => 26,  93 => 23,  86 => 21,  83 => 20,  77 => 18,  71 => 17,  58 => 13,  47 => 9,  43 => 7,  38 => 6,  34 => 5,  30 => 4,  24 => 3,  19 => 1,);
    }
}
/* {% if redirect is not defined and (products or vouchers)  %} */
/* <div class="panel panel-green1 xcart cartpanel">*/
/* <div class="panel-heading xcollapsable" data-toggle="collapse" data-target="#xcart-content-{{ section }}" aria-expanded="true"><i class="fa fa-shopping-cart" aria-hidden="true"></i>&nbsp;{{ total_products }}</div>*/
/* <div id="xcart-content-{{ section }}" class="panel-body collapse in">*/
/* {% if    xcart_success  %} */
/* <div class="alert alert-success alert-small">{{ xcart_success }}<button type="button" class="close" data-dismiss="alert">&times;</button></div>*/
/* {% endif %} */
/* <div class="cartproducts">*/
/* {% set countOptions = 1 %} {% for product in products %} */
/* <div class="cartelement">*/
/* <div class="media">*/
/*   <div class="media-left">*/
/*    <a target="_newtab" href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-thumbnail" /></a>*/
/*   </div>*/
/*   <div class="media-body">*/
/*   	<div class="col-xs-12 nopadding">*/
/*     <div class="media-heading"><a target="_newtab" href="{{ product.href }}">{{ product.name }} */
/*     {% if    not product.stock  %} */
/*      <span class="text-danger">***</span>*/
/*      {% endif %}</a></div>*/
/*     <a class="optionLink pointer text-right" onclick="toggleOptions('xoptions{{ countOptions }}-{{ section }}')"><i class="fa fa-info-circle" aria-hidden="true"></i></a>*/
/*   	<div class="clearfix"></div>*/
/*   	<div class="text-left width50"><span class="is_amount text-muted">{{ product.quantity }} &times; {{ product.price }}</span></div><div class="text-right width50"><span class="is_total">{{ product.total }}</span></div>*/
/*    <div class="clearfix"></div>   */
/*   <div class="text-left"><div class="text-muted">      	*/
/*         	<div style="display: none;" id="xoptions{{ countOptions }}-{{ section }}">*/
/*         	<div class="text-left"><span>{{ column_model}}: </span><span class="text-muted">{{ product.model }}</span></div>  */
/*         	{% for option in product.option %} */
/*         		<div class="xgray">{{ option.name }}: {{ option.value }}</div>        		*/
/*         	{% endfor %} */
/*         	{% if    product.reward  %}                  */
/*               <div class="xgray">{{ product.reward }}</div>*/
/*             {% endif %} */
/*             {% if    product.recurring  %} */
/*                   <div class="xgray">{{ text_recurring_item }}: {{ product.recurring }}</div>*/
/* 			{% endif %} */
/*         	</div>*/
/*         	</div> */
/*   			</div> */
/*   			*/
/*   		<div class="clearfix"></div>*/
/*   {% if    product.error_warning  %} */
/*   <div class="text-danger">{{ product.error_warning }}</div>*/
/*   {% endif %} */
/*    {% if    section == 'payment'  %} */
/*    <div class="text-left"><a class="pointer underline" onclick="click2();">{{ text_cart_edit }}</a></div>*/
/*    <div class="clearfix"></div> */
/*    {% endif %}   */
/*    </div> */
/*    </div>*/
/* </div>*/
/* {% if section != 'payment'  %} */
/* <div class="input-group cartedit">  	*/
/*     <div class="input-group-addon editcart minus" onclick="$(this).children('button').children('i').removeClass('icon ion-minus');$(this).children('button').children('i').addClass('fa fa-circle-o-notch fa-spin');xcart.xupdate('{{ product.cart_id }}',parseInt(+($('input[name=\'quantity[{{ product.cart_id }}]\']').val())-1),'{{ section }}');"><button type="button" data-toggle="tooltip" title="{{ button_update }}"><i class="icon ion-minus"></i></button></div>*/
/*     <input type="text" name="quantity[{{ product.cart_id }}]" onchange="xcart.xupdate('{{ product.cart_id }}',$('input[name=\'quantity[{{ product.cart_id }}]\']').val(),'{{ section }}');" value="{{ product.quantity }}" size="1" class="form-control" />                                     */
/*     <div class="input-group-addon editcart plus" onclick="$(this).children('button').children('i').removeClass('icon ion-plus-round');$(this).children('button').children('i').addClass('fa fa-circle-o-notch fa-spin');xcart.xupdate('{{ product.cart_id }}',parseInt(+($('input[name=\'quantity[{{ product.cart_id }}]\']').val())+1),'{{ section }}');"><button type="button" data-toggle="tooltip" title="{{ button_update }}"><i class="icon ion-plus-round"></i></button></div>*/
/*     <div class="input-group-addon editcart xremove" onclick="$(this).children('button').children('i').removeClass('icon ion-trash-b');$(this).children('button').children('i').addClass('fa fa-circle-o-notch fa-spin');xcart.xremove('{{ product.cart_id }}','{{ section }}');"><button type="button" data-toggle="tooltip" title="{{ button_remove }}"><i class="icon ion-trash-b"></i></button></div>*/
/*     <div class="input-group-addon editcart xwishlist" onclick="$(this).children('button').children('i').removeClass('icon ion-android-favorite-outline');$(this).children('button').children('i').addClass('fa fa-circle-o-notch fa-spin');xcart.wishlist('{{ product.product_id }}','{{ product.cart_id }}','{{ section }}');"><button type="button" data-toggle="tooltip" title="{{ text_move_to_wishlist }}"><i class="icon ion-android-favorite-outline"></i></button></div>*/
/* </div>*/
/* <div class="clearfix"></div>   */
/* {% endif %} */
/* </div>*/
/*  {% set countOptions = countOptions + 1 %} */
/* {% endfor %} */
/* {% for voucher in vouchers %} */
/* <div class="cartelement">*/
/* <div class="media">*/
/* <div class="media-left">*/
/*    <span><img src="{{ voucher_image }}" alt="{{ voucher.description }}" class="img-thumbnail" /></span>*/
/*   </div>*/
/* <div class="media-body">*/
/*   	<div class="col-xs-12 nopadding">*/
/*     <div class="media-heading">{{ text_gift_voucher }}</div>*/
/*     <a class="optionLink pointer text-right" onclick="toggleOptions('xoptions{{ countOptions }}-{{ section }}')"><i class="fa fa-info-circle" aria-hidden="true"></i></a>*/
/*     <div class="clearfix"></div>  	*/
/*   	<div class="text-left width50"><span class="is_total">{{ voucher.amount }}</span></div>*/
/*   	{% if    section != 'payment'  %} */
/*   	<div class="text-right width50"><a class="pointer underline" onclick="xvoucher.xremove('{{ voucher.key }}','{{ section }}');">{{ button_remove }}</a></div>*/
/*   	{% else %} */
/*   	<div class="text-right width50"><a class="pointer underline" onclick="click2();">{{ text_cart_edit }}</a></div>*/
/*   	{% endif %} */
/*    <div class="clearfix"></div>  */
/*    <div class="text-left"><div class="text-muted">      	*/
/*    <div style="display: none;" id="xoptions{{ countOptions }}-{{ section }}">*/
/*    <div class="text-left"><span>{{ voucher.description }}</span></div>*/
/*    </div>*/
/*    </div> */
/*    </div> */
/*    <div class="clearfix"></div>			*/
/* </div>*/
/* </div>*/
/* </div>*/
/* </div>*/
/*  {% set countOptions = countOptions + 1 %} {% endfor %} */
/* </div>*/
/* </div>*/
/* </div>*/
/* {% endif %}*/
