<?php

/* mart/template/extension/total/voucher.twig */
class __TwigTemplate_3116f1ddfbf816f70d313e243e6166b6e82edf91a0c976d3b6ea59061d47b022 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=\"panel panel-default\">
  <div class=\"panel-heading\">
    <h4 class=\"panel-title\"><a href=\"#collapse-voucher\" data-toggle=\"collapse\" data-parent=\"#accordion\" class=\"accordion-toggle\">";
        // line 3
        echo (isset($context["heading_title"]) ? $context["heading_title"] : null);
        echo " <i class=\"fa fa-caret-down\"></i></a></h4>
  </div>
  <div id=\"collapse-voucher\" class=\"panel-collapse collapse\">
    <div class=\"panel-body\">
      <label class=\"control-label\" for=\"input-voucher\">";
        // line 7
        echo (isset($context["entry_voucher"]) ? $context["entry_voucher"] : null);
        echo "</label>
      <div class=\"input-group\">
        <input type=\"text\" name=\"voucher\" value=\"";
        // line 9
        echo (isset($context["voucher"]) ? $context["voucher"] : null);
        echo "\" placeholder=\"";
        echo (isset($context["entry_voucher"]) ? $context["entry_voucher"] : null);
        echo "\" id=\"input-voucher\" class=\"form-control\" />
        <span class=\"input-group-btn\">
        <input type=\"submit\" value=\"";
        // line 11
        echo (isset($context["button_voucher"]) ? $context["button_voucher"] : null);
        echo "\" id=\"button-voucher\" data-loading-text=\"";
        echo (isset($context["text_loading"]) ? $context["text_loading"] : null);
        echo "\" class=\"btn btn-form\" />
        </span> </div>
<script type=\"text/javascript\"><!--
\$('#button-voucher').on('click', function() {
  \$.ajax({
    url: 'index.php?route=extension/total/voucher/voucher',
    type: 'post',
    data: 'voucher=' + encodeURIComponent(\$('input[name=\\'voucher\\']').val()),
    dataType: 'json',
    beforeSend: function() {
      \$('#button-voucher').button('loading');
    },
    complete: function() {
      \$('#button-voucher').button('reset');
    },
    success: function(json) {
      \$('.alert').remove();

      if (json['error']) {
        notify(json.error, 'error');
      }

      if (json['redirect']) {
        location = json['redirect'];
      }
    }
  });
});
//--></script>
    </div>
  </div>
</div>
";
    }

    public function getTemplateName()
    {
        return "mart/template/extension/total/voucher.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  42 => 11,  35 => 9,  30 => 7,  23 => 3,  19 => 1,);
    }
}
/* <div class="panel panel-default">*/
/*   <div class="panel-heading">*/
/*     <h4 class="panel-title"><a href="#collapse-voucher" data-toggle="collapse" data-parent="#accordion" class="accordion-toggle">{{ heading_title }} <i class="fa fa-caret-down"></i></a></h4>*/
/*   </div>*/
/*   <div id="collapse-voucher" class="panel-collapse collapse">*/
/*     <div class="panel-body">*/
/*       <label class="control-label" for="input-voucher">{{ entry_voucher }}</label>*/
/*       <div class="input-group">*/
/*         <input type="text" name="voucher" value="{{ voucher }}" placeholder="{{ entry_voucher }}" id="input-voucher" class="form-control" />*/
/*         <span class="input-group-btn">*/
/*         <input type="submit" value="{{ button_voucher }}" id="button-voucher" data-loading-text="{{ text_loading }}" class="btn btn-form" />*/
/*         </span> </div>*/
/* <script type="text/javascript"><!--*/
/* $('#button-voucher').on('click', function() {*/
/*   $.ajax({*/
/*     url: 'index.php?route=extension/total/voucher/voucher',*/
/*     type: 'post',*/
/*     data: 'voucher=' + encodeURIComponent($('input[name=\'voucher\']').val()),*/
/*     dataType: 'json',*/
/*     beforeSend: function() {*/
/*       $('#button-voucher').button('loading');*/
/*     },*/
/*     complete: function() {*/
/*       $('#button-voucher').button('reset');*/
/*     },*/
/*     success: function(json) {*/
/*       $('.alert').remove();*/
/* */
/*       if (json['error']) {*/
/*         notify(json.error, 'error');*/
/*       }*/
/* */
/*       if (json['redirect']) {*/
/*         location = json['redirect'];*/
/*       }*/
/*     }*/
/*   });*/
/* });*/
/* //--></script>*/
/*     </div>*/
/*   </div>*/
/* </div>*/
/* */
