<?php

/* mart/template/checkout/cart.twig */
class __TwigTemplate_b4f785c2f9c8301b3c14b91ffbbb497715d86e8019b0cfa37a6ab55368e9479f 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 (isset($context["header"]) ? $context["header"] : null);
        echo "
<div id=\"checkout-cart\" class=\"";
        // line 2
        echo (((isset($context["container"]) ? $context["container"] : null)) ? ((isset($context["container"]) ? $context["container"] : null)) : ("container-fluid"));
        echo "\">
  <div class=\"row\">";
        // line 3
        echo (isset($context["column_left"]) ? $context["column_left"] : null);
        echo "
    ";
        // line 4
        if (((isset($context["column_left"]) ? $context["column_left"] : null) && (isset($context["column_right"]) ? $context["column_right"] : null))) {
            // line 5
            echo "    ";
            $context["class"] = "col-sm-6";
            // line 6
            echo "    ";
        } elseif (((isset($context["column_left"]) ? $context["column_left"] : null) || (isset($context["column_right"]) ? $context["column_right"] : null))) {
            // line 7
            echo "    ";
            $context["class"] = "col-sm-9";
            // line 8
            echo "    ";
        } else {
            // line 9
            echo "    ";
            $context["class"] = "col-sm-12";
            // line 10
            echo "    ";
        }
        // line 11
        echo "    <div id=\"content\" class=\"";
        echo (isset($context["class"]) ? $context["class"] : null);
        echo "\">
      <div class=\"content-inner\">
        <ul class=\"breadcrumb\">
          ";
        // line 14
        $context["i"] = 1;
        // line 15
        echo "          ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 16
            echo "            ";
            if ((twig_length_filter($this->env, (isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null)) != (isset($context["i"]) ? $context["i"] : null))) {
                // line 17
                echo "            <li><a href=\"";
                echo $this->getAttribute($context["breadcrumb"], "href", array());
                echo "\">";
                echo $this->getAttribute($context["breadcrumb"], "text", array());
                echo "</a></li>
            ";
            } else {
                // line 19
                echo "            <li>";
                echo $this->getAttribute($context["breadcrumb"], "text", array());
                echo "</li>
            ";
            }
            // line 21
            echo "            ";
            $context["i"] = ((isset($context["i"]) ? $context["i"] : null) + 1);
            // line 22
            echo "          ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 23
        echo "        </ul>
        ";
        // line 24
        if ((isset($context["attention"]) ? $context["attention"] : null)) {
            // line 25
            echo "        <script>notify(\"";
            echo (isset($context["attention"]) ? $context["attention"] : null);
            echo "\", \"attention\");</script>
        ";
        }
        // line 27
        echo "        ";
        if ((isset($context["success"]) ? $context["success"] : null)) {
            // line 28
            echo "        <script>notify(\"";
            echo (isset($context["success"]) ? $context["success"] : null);
            echo "\", \"success\");</script>
        ";
        }
        // line 30
        echo "        ";
        if ((isset($context["error_warning"]) ? $context["error_warning"] : null)) {
            // line 31
            echo "        <script>notify(\"";
            echo (isset($context["error_warning"]) ? $context["error_warning"] : null);
            echo "\", \"warning\");</script>
        ";
        }
        // line 33
        echo "        ";
        echo (isset($context["content_top"]) ? $context["content_top"] : null);
        echo "
        <h1>";
        // line 34
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo "
          ";
        // line 35
        if ((isset($context["weight"]) ? $context["weight"] : null)) {
            // line 36
            echo "          &nbsp;(";
            echo (isset($context["weight"]) ? $context["weight"] : null);
            echo ")
          ";
        }
        // line 38
        echo "        </h1>
        <form action=\"";
        // line 39
        echo (isset($context["action"]) ? $context["action"] : null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\">
          <div class=\"table-responsive\">
            <table class=\"table\">
              <thead>
                <tr>
                  <td class=\"text-left\">";
        // line 44
        echo (isset($context["column_image"]) ? $context["column_image"] : null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 45
        echo (isset($context["column_name"]) ? $context["column_name"] : null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 46
        echo (isset($context["column_model"]) ? $context["column_model"] : null);
        echo "</td>
                  <td class=\"text-left\">";
        // line 47
        echo (isset($context["column_quantity"]) ? $context["column_quantity"] : null);
        echo "</td>
                  <td class=\"text-right\">";
        // line 48
        echo (isset($context["column_price"]) ? $context["column_price"] : null);
        echo "</td>
                  <td class=\"text-right\">";
        // line 49
        echo (isset($context["column_total"]) ? $context["column_total"] : null);
        echo "</td>
                </tr>
              </thead>
              <tbody>
                ";
        // line 53
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["products"]) ? $context["products"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
            // line 54
            echo "                <tr>
                  <td class=\"text-left\">
                    ";
            // line 56
            if ($this->getAttribute($context["product"], "thumb", array())) {
                // line 57
                echo "                    <a href=\"";
                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-responsive\" /></a>
                    ";
            }
            // line 59
            echo "                  </td>
                  <td class=\"text-left\"><a href=\"";
            // line 60
            echo $this->getAttribute($context["product"], "href", array());
            echo "\">";
            echo $this->getAttribute($context["product"], "name", array());
            echo "</a>
                    ";
            // line 61
            if ( !$this->getAttribute($context["product"], "stock", array())) {
                // line 62
                echo "                    <span class=\"text-danger\">***</span>
                    ";
            }
            // line 64
            echo "                    ";
            if ($this->getAttribute($context["product"], "option", array())) {
                // line 65
                echo "                    ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["product"], "option", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
                    // line 66
                    echo "                    <br />
                    <small>";
                    // line 67
                    echo $this->getAttribute($context["option"], "name", array());
                    echo ": ";
                    echo $this->getAttribute($context["option"], "value", array());
                    echo "</small>
                    ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 69
                echo "                    ";
            }
            // line 70
            echo "                    ";
            if ($this->getAttribute($context["product"], "reward", array())) {
                // line 71
                echo "                    <br />
                    <small>";
                // line 72
                echo $this->getAttribute($context["product"], "reward", array());
                echo "</small>
                    ";
            }
            // line 74
            echo "                    ";
            if ($this->getAttribute($context["product"], "recurring", array())) {
                // line 75
                echo "                    <br />
                    <span class=\"label label-info\">";
                // line 76
                echo (isset($context["text_recurring_item"]) ? $context["text_recurring_item"] : null);
                echo "</span> <small>";
                echo $this->getAttribute($context["product"], "recurring", array());
                echo "</small>
                    ";
            }
            // line 77
            echo "</td>
                  <td class=\"text-left\">";
            // line 78
            echo $this->getAttribute($context["product"], "model", array());
            echo "</td>
                  <td class=\"text-left\">
                    <div class=\"input-group btn-block\" style=\"max-width: 200px;\">
                      <input type=\"text\" name=\"quantity[";
            // line 81
            echo $this->getAttribute($context["product"], "cart_id", array());
            echo "]\" value=\"";
            echo $this->getAttribute($context["product"], "quantity", array());
            echo "\" size=\"1\" class=\"form-control text-center\" />
                      <span class=\"input-group-btn\">
                      <button type=\"submit\" data-toggle=\"tooltip\" title=\"";
            // line 83
            echo (isset($context["button_update"]) ? $context["button_update"] : null);
            echo "\" class=\"btn btn-form\"><i class=\"material-icons\">refresh</i></button>
                      <button type=\"button\" data-toggle=\"tooltip\" title=\"";
            // line 84
            echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
            echo "\" class=\"btn btn-form\" onclick=\"cart.remove('";
            echo $this->getAttribute($context["product"], "cart_id", array());
            echo "');\"><i class=\"material-icons\">delete</i></button>
                      </span>
                    </div>
                  </td>
                  <td class=\"text-right\">";
            // line 88
            echo $this->getAttribute($context["product"], "price", array());
            echo "</td>
                  <td class=\"text-right\">";
            // line 89
            echo $this->getAttribute($context["product"], "total", array());
            echo "</td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 92
        echo "                ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["vouchers"]) ? $context["vouchers"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["voucher"]) {
            // line 93
            echo "                <tr>
                  <td></td>
                  <td class=\"text-left\">";
            // line 95
            echo $this->getAttribute($context["voucher"], "description", array());
            echo "</td>
                  <td class=\"text-left\"></td>
                  <td class=\"text-left\"><div class=\"input-group btn-block\" style=\"max-width: 200px;\">
                      <input type=\"text\" name=\"\" value=\"1\" size=\"1\" disabled=\"disabled\" class=\"form-control\" />
                      <span class=\"input-group-btn\">
                      <button type=\"button\" data-toggle=\"tooltip\" title=\"";
            // line 100
            echo (isset($context["button_remove"]) ? $context["button_remove"] : null);
            echo "\" class=\"btn btn-form\" onclick=\"voucher.remove('";
            echo $this->getAttribute($context["voucher"], "key", array());
            echo "');\"><i class=\"material-icons\">delete</i></button>
                      </span></div></td>
                  <td class=\"text-right\">";
            // line 102
            echo $this->getAttribute($context["voucher"], "amount", array());
            echo "</td>
                  <td class=\"text-right\">";
            // line 103
            echo $this->getAttribute($context["voucher"], "amount", array());
            echo "</td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['voucher'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 106
        echo "              </tbody>
            </table>
          </div>
        </form>
        ";
        // line 110
        if ((isset($context["modules"]) ? $context["modules"] : null)) {
            // line 111
            echo "        <h2>";
            echo (isset($context["text_next"]) ? $context["text_next"] : null);
            echo "</h2>
        <p>";
            // line 112
            echo (isset($context["text_next_choice"]) ? $context["text_next_choice"] : null);
            echo "</p>
        <div class=\"panel-group\" id=\"accordion\">
          ";
            // line 114
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["modules"]) ? $context["modules"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
                // line 115
                echo "          ";
                echo $context["module"];
                echo "
          ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 117
            echo "        </div>
        ";
        }
        // line 119
        echo "        <br />
        <div class=\"row\">
          <div class=\"col-sm-4 col-sm-offset-8\">
            <table class=\"table\">
              ";
        // line 123
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["totals"]) ? $context["totals"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["total"]) {
            // line 124
            echo "              <tr>
                <td class=\"text-right\"><strong>";
            // line 125
            echo $this->getAttribute($context["total"], "title", array());
            echo ":</strong></td>
                <td class=\"text-right\">";
            // line 126
            echo $this->getAttribute($context["total"], "text", array());
            echo "</td>
              </tr>
              ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['total'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 129
        echo "            </table>
          </div>
        </div>
        <div class=\"buttons clearfix\">
          <div class=\"pull-left btn-xs-block\"><a href=\"";
        // line 133
        echo (isset($context["continue"]) ? $context["continue"] : null);
        echo "\" class=\"btn btn-default btn-xs-block\">";
        echo (isset($context["button_shopping"]) ? $context["button_shopping"] : null);
        echo "</a></div>
          <div class=\"pull-right btn-xs-block\"><a href=\"";
        // line 134
        echo (isset($context["checkout"]) ? $context["checkout"] : null);
        echo "\" class=\"btn btn-primary btn-xs-block\">";
        echo (isset($context["button_checkout"]) ? $context["button_checkout"] : null);
        echo "</a></div>
        </div>
        ";
        // line 136
        echo (isset($context["content_bottom"]) ? $context["content_bottom"] : null);
        echo "
      </div>
    </div>
    ";
        // line 139
        echo (isset($context["column_right"]) ? $context["column_right"] : null);
        echo "
  </div>
</div>
";
        // line 142
        echo (isset($context["footer"]) ? $context["footer"] : null);
        echo "
";
    }

    public function getTemplateName()
    {
        return "mart/template/checkout/cart.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  431 => 142,  425 => 139,  419 => 136,  412 => 134,  406 => 133,  400 => 129,  391 => 126,  387 => 125,  384 => 124,  380 => 123,  374 => 119,  370 => 117,  361 => 115,  357 => 114,  352 => 112,  347 => 111,  345 => 110,  339 => 106,  330 => 103,  326 => 102,  319 => 100,  311 => 95,  307 => 93,  302 => 92,  293 => 89,  289 => 88,  280 => 84,  276 => 83,  269 => 81,  263 => 78,  260 => 77,  253 => 76,  250 => 75,  247 => 74,  242 => 72,  239 => 71,  236 => 70,  233 => 69,  223 => 67,  220 => 66,  215 => 65,  212 => 64,  208 => 62,  206 => 61,  200 => 60,  197 => 59,  185 => 57,  183 => 56,  179 => 54,  175 => 53,  168 => 49,  164 => 48,  160 => 47,  156 => 46,  152 => 45,  148 => 44,  140 => 39,  137 => 38,  131 => 36,  129 => 35,  125 => 34,  120 => 33,  114 => 31,  111 => 30,  105 => 28,  102 => 27,  96 => 25,  94 => 24,  91 => 23,  85 => 22,  82 => 21,  76 => 19,  68 => 17,  65 => 16,  60 => 15,  58 => 14,  51 => 11,  48 => 10,  45 => 9,  42 => 8,  39 => 7,  36 => 6,  33 => 5,  31 => 4,  27 => 3,  23 => 2,  19 => 1,);
    }
}
/* {{ header }}*/
/* <div id="checkout-cart" class="{{ container ?: 'container-fluid' }}">*/
/*   <div class="row">{{ column_left }}*/
/*     {% if column_left and column_right %}*/
/*     {% set class = 'col-sm-6' %}*/
/*     {% elseif column_left or column_right %}*/
/*     {% set class = 'col-sm-9' %}*/
/*     {% else %}*/
/*     {% set class = 'col-sm-12' %}*/
/*     {% endif %}*/
/*     <div id="content" class="{{ class }}">*/
/*       <div class="content-inner">*/
/*         <ul class="breadcrumb">*/
/*           {% set i = 1 %}*/
/*           {% for breadcrumb in breadcrumbs %}*/
/*             {% if breadcrumbs|length != i %}*/
/*             <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>*/
/*             {% else %}*/
/*             <li>{{ breadcrumb.text}}</li>*/
/*             {% endif %}*/
/*             {% set i = i + 1 %}*/
/*           {% endfor %}*/
/*         </ul>*/
/*         {% if attention %}*/
/*         <script>notify("{{ attention }}", "attention");</script>*/
/*         {% endif %}*/
/*         {% if success %}*/
/*         <script>notify("{{ success }}", "success");</script>*/
/*         {% endif %}*/
/*         {% if error_warning %}*/
/*         <script>notify("{{ error_warning }}", "warning");</script>*/
/*         {% endif %}*/
/*         {{ content_top }}*/
/*         <h1>{{ heading_title }}*/
/*           {% if weight %}*/
/*           &nbsp;({{ weight }})*/
/*           {% endif %}*/
/*         </h1>*/
/*         <form action="{{ action }}" method="post" enctype="multipart/form-data">*/
/*           <div class="table-responsive">*/
/*             <table class="table">*/
/*               <thead>*/
/*                 <tr>*/
/*                   <td class="text-left">{{ column_image }}</td>*/
/*                   <td class="text-left">{{ column_name }}</td>*/
/*                   <td class="text-left">{{ column_model }}</td>*/
/*                   <td class="text-left">{{ column_quantity }}</td>*/
/*                   <td class="text-right">{{ column_price }}</td>*/
/*                   <td class="text-right">{{ column_total }}</td>*/
/*                 </tr>*/
/*               </thead>*/
/*               <tbody>*/
/*                 {% for product in products %}*/
/*                 <tr>*/
/*                   <td class="text-left">*/
/*                     {% if product.thumb %}*/
/*                     <a href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-responsive" /></a>*/
/*                     {% endif %}*/
/*                   </td>*/
/*                   <td class="text-left"><a href="{{ product.href }}">{{ product.name }}</a>*/
/*                     {% if not product.stock %}*/
/*                     <span class="text-danger">***</span>*/
/*                     {% endif %}*/
/*                     {% if product.option %}*/
/*                     {% for option in product.option %}*/
/*                     <br />*/
/*                     <small>{{ option.name }}: {{ option.value }}</small>*/
/*                     {% endfor %}*/
/*                     {% endif %}*/
/*                     {% if product.reward %}*/
/*                     <br />*/
/*                     <small>{{ product.reward }}</small>*/
/*                     {% endif %}*/
/*                     {% if product.recurring %}*/
/*                     <br />*/
/*                     <span class="label label-info">{{ text_recurring_item }}</span> <small>{{ product.recurring }}</small>*/
/*                     {% endif %}</td>*/
/*                   <td class="text-left">{{ product.model }}</td>*/
/*                   <td class="text-left">*/
/*                     <div class="input-group btn-block" style="max-width: 200px;">*/
/*                       <input type="text" name="quantity[{{ product.cart_id }}]" value="{{ product.quantity }}" size="1" class="form-control text-center" />*/
/*                       <span class="input-group-btn">*/
/*                       <button type="submit" data-toggle="tooltip" title="{{ button_update }}" class="btn btn-form"><i class="material-icons">refresh</i></button>*/
/*                       <button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-form" onclick="cart.remove('{{ product.cart_id }}');"><i class="material-icons">delete</i></button>*/
/*                       </span>*/
/*                     </div>*/
/*                   </td>*/
/*                   <td class="text-right">{{ product.price }}</td>*/
/*                   <td class="text-right">{{ product.total }}</td>*/
/*                 </tr>*/
/*                 {% endfor %}*/
/*                 {% for voucher in vouchers %}*/
/*                 <tr>*/
/*                   <td></td>*/
/*                   <td class="text-left">{{ voucher.description }}</td>*/
/*                   <td class="text-left"></td>*/
/*                   <td class="text-left"><div class="input-group btn-block" style="max-width: 200px;">*/
/*                       <input type="text" name="" value="1" size="1" disabled="disabled" class="form-control" />*/
/*                       <span class="input-group-btn">*/
/*                       <button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-form" onclick="voucher.remove('{{ voucher.key }}');"><i class="material-icons">delete</i></button>*/
/*                       </span></div></td>*/
/*                   <td class="text-right">{{ voucher.amount }}</td>*/
/*                   <td class="text-right">{{ voucher.amount }}</td>*/
/*                 </tr>*/
/*                 {% endfor %}*/
/*               </tbody>*/
/*             </table>*/
/*           </div>*/
/*         </form>*/
/*         {% if modules %}*/
/*         <h2>{{ text_next }}</h2>*/
/*         <p>{{ text_next_choice }}</p>*/
/*         <div class="panel-group" id="accordion">*/
/*           {% for module in modules %}*/
/*           {{ module }}*/
/*           {% endfor %}*/
/*         </div>*/
/*         {% endif %}*/
/*         <br />*/
/*         <div class="row">*/
/*           <div class="col-sm-4 col-sm-offset-8">*/
/*             <table class="table">*/
/*               {% for total in totals %}*/
/*               <tr>*/
/*                 <td class="text-right"><strong>{{ total.title }}:</strong></td>*/
/*                 <td class="text-right">{{ total.text }}</td>*/
/*               </tr>*/
/*               {% endfor %}*/
/*             </table>*/
/*           </div>*/
/*         </div>*/
/*         <div class="buttons clearfix">*/
/*           <div class="pull-left btn-xs-block"><a href="{{ continue }}" class="btn btn-default btn-xs-block">{{ button_shopping }}</a></div>*/
/*           <div class="pull-right btn-xs-block"><a href="{{ checkout }}" class="btn btn-primary btn-xs-block">{{ button_checkout }}</a></div>*/
/*         </div>*/
/*         {{ content_bottom }}*/
/*       </div>*/
/*     </div>*/
/*     {{ column_right }}*/
/*   </div>*/
/* </div>*/
/* {{ footer }}*/
/* */
