<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* reward/tier_form.twig */
class __TwigTemplate_cf20f53486aaba54abcf8a04f1457406dbb2fe2d89afde9c4492dfb2034d5874 extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo " <link
      id=\"jquiCSS\"
      rel=\"stylesheet\"
      href=\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.css\"
      type=\"text/css\"
      media=\"all\"
    />
    <link href=\"view/javascript/colorpicker-main/css/demo.css\" rel=\"stylesheet\" />
    <link href=\"view/javascript/colorpicker-main/css/evol-colorpicker.min.css\" rel=\"stylesheet\" />

<script
      src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js\"
      type=\"text/javascript\"
    ></script>
    <script
      src=\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js\"
      type=\"text/javascript\"
    ></script>

<script src=\"view/javascript/colorpicker-main/js/evol-colorpicker.min.js\" type=\"text/javascript\"></script>

";
        // line 22
        echo ($context["header"] ?? null);
        echo ($context["column_left"] ?? null);
        echo "
<div id=\"content\">
  <div class=\"page-header\">
    <div class=\"container-fluid\">
      <div class=\"pull-right\">
        <button type=\"submit\" form=\"form-tier\" data-toggle=\"tooltip\" title=\"";
        // line 27
        echo ($context["button_save"] ?? null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-save\"></i></button>
        <a href=\"";
        // line 28
        echo ($context["cancel"] ?? null);
        echo "\" data-toggle=\"tooltip\" title=\"";
        echo ($context["button_cancel"] ?? null);
        echo "\" class=\"btn btn-default\"><i class=\"fa fa-reply\"></i></a></div>
      <h1>";
        // line 29
        echo ($context["heading_title"] ?? null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 31
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 32
            echo "        <li><a href=\"";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 32);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 32);
            echo "</a></li>
        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 34
        echo "      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">
    ";
        // line 38
        if (($context["error_warning"] ?? null)) {
            // line 39
            echo "    <div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ";
            echo ($context["error_warning"] ?? null);
            echo "
      <button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>
    </div>
    ";
        }
        // line 43
        echo "    <div class=\"panel panel-default\">
      <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-pencil\"></i> ";
        // line 45
        echo ($context["text_form"] ?? null);
        echo "</h3>
      </div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 48
        echo ($context["action"] ?? null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-tier\" class=\"form-horizontal\">
            <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-title\">";
        // line 50
        echo ($context["entry_title"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"title\" value=\"";
        // line 52
        echo ($context["title"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_title"] ?? null);
        echo "\" id=\"input-title\" class=\"form-control\" />
              ";
        // line 53
        if (($context["error_title"] ?? null)) {
            // line 54
            echo "              <div class=\"text-danger\">";
            echo ($context["error_title"] ?? null);
            echo "</div>
              ";
        }
        // line 56
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-description\">";
        // line 59
        echo ($context["entry_description"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"description\" value=\"";
        // line 61
        echo ($context["description"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_description"] ?? null);
        echo "\" id=\"input-description\" class=\"form-control\" />
              ";
        // line 62
        if (($context["error_description"] ?? null)) {
            // line 63
            echo "              <div class=\"text-danger\">";
            echo ($context["error_description"] ?? null);
            echo "</div>
              ";
        }
        // line 65
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-bg_image\">";
        // line 68
        echo ($context["entry_bg_image"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\"><a href=\"\" id=\"thumb-bg_image\" data-toggle=\"image\" class=\"img-thumbnail\"><img src=\"";
        // line 69
        echo ($context["bg_thumb"] ?? null);
        echo "\" alt=\"\" title=\"\" data-placeholder=\"";
        echo ($context["placeholder"] ?? null);
        echo "\" /></a>
              <input type=\"hidden\" name=\"bg_image\" value=\"";
        // line 70
        echo ($context["bg_image"] ?? null);
        echo "\" id=\"input-bg_image\" />
            </div>
          </div>
          <div class=\"form-group\">
          <label class=\"col-sm-2 control-label\" for=\"input-bg_color\">";
        // line 74
        echo ($context["entry_bg_color"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input id=\"transColor\" name=\"bg_color\" value =\"";
        // line 76
        echo ($context["bg_color"] ?? null);
        echo "\" />
            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-card_image\">";
        // line 80
        echo ($context["entry_card_image"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\"><a href=\"\" id=\"thumb-card_image\" data-toggle=\"image\" class=\"img-thumbnail\"><img src=\"";
        // line 81
        echo ($context["card_thumb"] ?? null);
        echo "\" alt=\"\" title=\"\" data-placeholder=\"";
        echo ($context["placeholder"] ?? null);
        echo "\" /></a>
              <input type=\"hidden\" name=\"card_image\" value=\"";
        // line 82
        echo ($context["card_image"] ?? null);
        echo "\" id=\"input-card_image\" />
            </div>
          </div>
          <div class=\"form-group\">
          <label class=\"col-sm-2 control-label\" for=\"input-font_color\">";
        // line 86
        echo ($context["entry_font_color"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"color\" name=\"font_color\" value =\"";
        // line 88
        echo ($context["font_color"] ?? null);
        echo "\">
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-term_and_condition\">";
        // line 92
        echo ($context["entry_tnc"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <textarea rows=\"5\" cols=\"40\" name=\"term_and_condition\" 
              value=\"";
        // line 95
        echo ($context["term_and_condition"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_tnc"] ?? null);
        echo "\"
               id=\"input-term_and_condition\" class=\"form-control\">";
        // line 96
        echo ($context["term_and_condition"] ?? null);
        echo "</textarea>         
              ";
        // line 97
        if (($context["error_tnc"] ?? null)) {
            // line 98
            echo "              <div class=\"text-danger\">";
            echo ($context["error_tnc"] ?? null);
            echo "</div>
              ";
        }
        // line 100
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-achieve_tier_amount\"><span data-toggle=\"tooltip\" title=\"";
        // line 103
        echo ($context["help_achieve_tier_amount"] ?? null);
        echo "\">";
        echo ($context["entry_achieve_tier_amount"] ?? null);
        echo "</span></label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"achieve_tier_amount\" value=\"";
        // line 105
        echo ($context["achieve_tier_amount"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_achive_tier_amount"] ?? null);
        echo "\" id=\"input-achieve_tier_amount\" class=\"form-control\" />
              ";
        // line 106
        if (($context["error_achieve_tier_amount"] ?? null)) {
            // line 107
            echo "              <div class=\"text-danger\">";
            echo ($context["error_achieve_tier_amount"] ?? null);
            echo "</div>
              ";
        }
        // line 109
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-maintain_tier_type\"><span data-toggle=\"tooltip\" title=\"";
        // line 112
        echo ($context["help_maintain_tier_type"] ?? null);
        echo "\">";
        echo ($context["entry_maintain_tier_type"] ?? null);
        echo "</span></label>
            <div class=\"col-sm-10\">
                <select name=\"maintain_tier_type_id\" id=\"input-maintain_tier_type\" class=\"form-control\">
                ";
        // line 115
        if ((($context["maintain_tier_type_id"] ?? null) == 2)) {
            // line 116
            echo "                <option value=\"1\">";
            echo ($context["text_cash"] ?? null);
            echo "</option>
                <option value=\"2\" selected=\"selected\">";
            // line 117
            echo ($context["text_point"] ?? null);
            echo "</option>
                ";
        } else {
            // line 119
            echo "                <option value=\"1\" selected=\"selected\">";
            echo ($context["text_cash"] ?? null);
            echo "</option>
                <option value=\"2\">";
            // line 120
            echo ($context["text_point"] ?? null);
            echo "</option>
                ";
        }
        // line 122
        echo "              </select>
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-maintain_tier_amount\"><span data-toggle=\"tooltip\" title=\"";
        // line 126
        echo ($context["help_maintain_tier_amount"] ?? null);
        echo "\">";
        echo ($context["entry_maintain_tier_amount"] ?? null);
        echo "</span></label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"maintain_tier_amount\" value=\"";
        // line 128
        echo ($context["maintain_tier_amount"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_maintain_tier_amount"] ?? null);
        echo "\" id=\"input-maintain_tier_amount\" class=\"form-control\" />
              ";
        // line 129
        if (($context["error_maintain_tier_amount"] ?? null)) {
            // line 130
            echo "              <div class=\"text-danger\">";
            echo ($context["error_maintain_tier_amount"] ?? null);
            echo "</div>
              ";
        }
        // line 132
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-multiply_regular_item\"><span data-toggle=\"tooltip\" title=\"";
        // line 135
        echo ($context["help_multiply_regular_item"] ?? null);
        echo "\">";
        echo ($context["entry_multiply_regular_item"] ?? null);
        echo "</span></label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"multiply_regular_item\" value=\"";
        // line 137
        echo ($context["multiply_regular_item"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_multiply_regular_item"] ?? null);
        echo "\" id=\"input-multiply_regular_item\" class=\"form-control\" />
              ";
        // line 138
        if (($context["error_multiply_regular_item"] ?? null)) {
            // line 139
            echo "              <div class=\"text-danger\">";
            echo ($context["error_multiply_regular_item"] ?? null);
            echo "</div>
              ";
        }
        // line 141
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-multiply_sales_item\"><span data-toggle=\"tooltip\" title=\"";
        // line 144
        echo ($context["help_multiply_sales_item"] ?? null);
        echo "\">";
        echo ($context["entry_multiply_sales_item"] ?? null);
        echo "</span></label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"multiply_sales_item\" value=\"";
        // line 146
        echo ($context["multiply_sales_item"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_multiply_sales_item"] ?? null);
        echo "\" id=\"input-multiply_sales_item\" class=\"form-control\" />
              ";
        // line 147
        if (($context["error_multiply_sales_item"] ?? null)) {
            // line 148
            echo "              <div class=\"text-danger\">";
            echo ($context["error_multiply_sales_item"] ?? null);
            echo "</div>
              ";
        }
        // line 150
        echo "            </div>
          </div>
           <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-point_expiry\">";
        // line 153
        echo ($context["entry_point_expiry"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"point_expiry\" value=\"";
        // line 155
        echo ($context["point_expiry"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_point_expiry"] ?? null);
        echo "\" id=\"input-point_expiry\" class=\"form-control\" />
              ";
        // line 156
        if (($context["error_point_expiry"] ?? null)) {
            // line 157
            echo "              <div class=\"text-danger\">";
            echo ($context["error_point_expiry"] ?? null);
            echo "</div>
              ";
        }
        // line 159
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-tier_expiry\">";
        // line 162
        echo ($context["entry_tier_expiry"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"tier_expiry\" value=\"";
        // line 164
        echo ($context["tier_expiry"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_tier_expiry"] ?? null);
        echo "\" id=\"input-tier_expiry\" class=\"form-control\" />
              ";
        // line 165
        if (($context["error_tier_expiry"] ?? null)) {
            // line 166
            echo "              <div class=\"text-danger\">";
            echo ($context["error_tier_expiry"] ?? null);
            echo "</div>
              ";
        }
        // line 168
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-is_hidden\"><span data-toggle=\"tooltip\" title=\"";
        // line 171
        echo ($context["help_is_hidden"] ?? null);
        echo "\">";
        echo ($context["entry_is_hidden"] ?? null);
        echo "</span></label>
            <div class=\"col-sm-10\">
              <select name=\"is_hidden\" id=\"input-is_hidden\" class=\"form-control\">
                ";
        // line 174
        if (($context["is_hidden"] ?? null)) {
            // line 175
            echo "                <option value=\"0\">";
            echo ($context["text_no"] ?? null);
            echo "</option>
                <option value=\"1\" selected=\"selected\">";
            // line 176
            echo ($context["text_yes"] ?? null);
            echo "</option>
                ";
        } else {
            // line 178
            echo "                <option value=\"0\" selected=\"selected\">";
            echo ($context["text_no"] ?? null);
            echo "</option>
                <option value=\"1\">";
            // line 179
            echo ($context["text_yes"] ?? null);
            echo "</option>
                ";
        }
        // line 181
        echo "              </select>
            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-status\">";
        // line 185
        echo ($context["entry_status"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <select name=\"status\" id=\"input-status\" class=\"form-control\">
                ";
        // line 188
        if (($context["status"] ?? null)) {
            // line 189
            echo "                <option value=\"0\">";
            echo ($context["text_disabled"] ?? null);
            echo "</option>
                <option value=\"1\" selected=\"selected\">";
            // line 190
            echo ($context["text_enabled"] ?? null);
            echo "</option>
                ";
        } else {
            // line 192
            echo "                <option value=\"0\" selected=\"selected\">";
            echo ($context["text_disabled"] ?? null);
            echo "</option>
                <option value=\"1\">";
            // line 193
            echo ($context["text_enabled"] ?? null);
            echo "</option>
                ";
        }
        // line 195
        echo "              </select>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
";
        // line 203
        echo ($context["footer"] ?? null);
        echo " 

<script>
 \$(document).ready(function () {
  \$(\"#transColor\").colorpicker({
      transparentColor: true,
  });
});
</script>";
    }

    public function getTemplateName()
    {
        return "reward/tier_form.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  527 => 203,  517 => 195,  512 => 193,  507 => 192,  502 => 190,  497 => 189,  495 => 188,  489 => 185,  483 => 181,  478 => 179,  473 => 178,  468 => 176,  463 => 175,  461 => 174,  453 => 171,  448 => 168,  442 => 166,  440 => 165,  434 => 164,  429 => 162,  424 => 159,  418 => 157,  416 => 156,  410 => 155,  405 => 153,  400 => 150,  394 => 148,  392 => 147,  386 => 146,  379 => 144,  374 => 141,  368 => 139,  366 => 138,  360 => 137,  353 => 135,  348 => 132,  342 => 130,  340 => 129,  334 => 128,  327 => 126,  321 => 122,  316 => 120,  311 => 119,  306 => 117,  301 => 116,  299 => 115,  291 => 112,  286 => 109,  280 => 107,  278 => 106,  272 => 105,  265 => 103,  260 => 100,  254 => 98,  252 => 97,  248 => 96,  242 => 95,  236 => 92,  229 => 88,  224 => 86,  217 => 82,  211 => 81,  207 => 80,  200 => 76,  195 => 74,  188 => 70,  182 => 69,  178 => 68,  173 => 65,  167 => 63,  165 => 62,  159 => 61,  154 => 59,  149 => 56,  143 => 54,  141 => 53,  135 => 52,  130 => 50,  125 => 48,  119 => 45,  115 => 43,  107 => 39,  105 => 38,  99 => 34,  88 => 32,  84 => 31,  79 => 29,  73 => 28,  69 => 27,  60 => 22,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "reward/tier_form.twig", "");
    }
}
