<?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/reward_form.twig */
class __TwigTemplate_86fb1b29c8fd2aeb9da914df904f753f26f1893940737f7e908598c21a705e91 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 ($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-reward\" data-toggle=\"tooltip\" title=\"";
        // line 6
        echo ($context["button_save"] ?? null);
        echo "\" class=\"btn btn-primary\"><i class=\"fa fa-save\"></i></button>
        <a href=\"";
        // line 7
        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 8
        echo ($context["heading_title"] ?? null);
        echo "</h1>
      <ul class=\"breadcrumb\">
        ";
        // line 10
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["breadcrumbs"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 11
            echo "        <li><a href=\"";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 11);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 11);
            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 13
        echo "      </ul>
    </div>
  </div>
  <div class=\"container-fluid\">
    ";
        // line 17
        if (($context["error_warning"] ?? null)) {
            // line 18
            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 22
        echo "    <div class=\"panel panel-default\">
      <div class=\"panel-heading\">
        <h3 class=\"panel-title\"><i class=\"fa fa-pencil\"></i> ";
        // line 24
        echo ($context["text_form"] ?? null);
        echo "</h3>
      </div>
      <div class=\"panel-body\">
        <form action=\"";
        // line 27
        echo ($context["action"] ?? null);
        echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-reward\" class=\"form-horizontal\">
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-reward-type\">";
        // line 29
        echo ($context["entry_reward_type"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <select name=\"reward_type_id\" id=\"input-reward-type\" class=\"form-control\">
                ";
        // line 32
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["reward_types"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["reward_type"]) {
            // line 33
            echo "                ";
            if ((twig_get_attribute($this->env, $this->source, $context["reward_type"], "reward_type_id", [], "any", false, false, false, 33) == ($context["reward_type_id"] ?? null))) {
                // line 34
                echo "                <option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["reward_type"], "reward_type_id", [], "any", false, false, false, 34);
                echo "\" selected=\"selected\">";
                echo twig_get_attribute($this->env, $this->source, $context["reward_type"], "reward_type_name", [], "any", false, false, false, 34);
                echo "</option>
                ";
            } else {
                // line 36
                echo "                <option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["reward_type"], "reward_type_id", [], "any", false, false, false, 36);
                echo "\">";
                echo twig_get_attribute($this->env, $this->source, $context["reward_type"], "reward_type_name", [], "any", false, false, false, 36);
                echo "</option>
                ";
            }
            // line 38
            echo "                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['reward_type'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 39
        echo "              </select>
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-title\">";
        // line 43
        echo ($context["entry_title"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"title\" value=\"";
        // line 45
        echo ($context["title"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_title"] ?? null);
        echo "\" id=\"input-title\" class=\"form-control\" />
              ";
        // line 46
        if (($context["error_title"] ?? null)) {
            // line 47
            echo "              <div class=\"text-danger\">";
            echo ($context["error_title"] ?? null);
            echo "</div>
              ";
        }
        // line 49
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-description\">";
        // line 52
        echo ($context["entry_description"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"description\" value=\"";
        // line 54
        echo ($context["description"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_description"] ?? null);
        echo "\" id=\"input-description\" class=\"form-control\" />
            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-image\">";
        // line 58
        echo ($context["entry_image"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\"><a href=\"\" id=\"thumb-image\" data-toggle=\"image\" class=\"img-thumbnail\"><img src=\"";
        // line 59
        echo ($context["thumb"] ?? null);
        echo "\" alt=\"\" title=\"\" data-placeholder=\"";
        echo ($context["placeholder"] ?? null);
        echo "\" /></a>
              <input type=\"hidden\" name=\"image\" value=\"";
        // line 60
        echo ($context["image"] ?? null);
        echo "\" id=\"input-image\" />
            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-term-and-condition\">";
        // line 64
        echo ($context["entry_tnc"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <textarea rows=\"5\" cols=\"40\" name=\"term_and_condition\" value=\"";
        // line 66
        echo ($context["term_and_condition"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_tnc"] ?? null);
        echo "\" id=\"input-term-and-condition\" class=\"form-control\">";
        echo ($context["term_and_condition"] ?? null);
        echo "</textarea>
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-point\">";
        // line 70
        echo ($context["entry_point"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"point\" value=\"";
        // line 72
        echo ($context["point"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_point"] ?? null);
        echo "\" id=\"input-point\" class=\"form-control\" />
              ";
        // line 73
        if (($context["error_point"] ?? null)) {
            // line 74
            echo "              <div class=\"text-danger\">";
            echo ($context["error_point"] ?? null);
            echo "</div>
              ";
        }
        // line 76
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-value\">";
        // line 79
        echo ($context["entry_value"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"value\" value=\"";
        // line 81
        echo ($context["value"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_value"] ?? null);
        echo "\" id=\"input-value\" class=\"form-control\" />
              ";
        // line 82
        if (($context["error_value"] ?? null)) {
            // line 83
            echo "              <div class=\"text-danger\">";
            echo ($context["error_value"] ?? null);
            echo "</div>
              ";
        }
        // line 85
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-min-tier\">";
        // line 88
        echo ($context["entry_min_tier"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <select name=\"min_tier\" id=\"input-min-tier\" class=\"form-control\">
                ";
        // line 91
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["min_tiers"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["min_tier"]) {
            // line 92
            echo "                ";
            if ((twig_get_attribute($this->env, $this->source, $context["min_tier"], "tier_setting_id", [], "any", false, false, false, 92) == $context["min_tier"])) {
                // line 93
                echo "                <option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["min_tier"], "tier_setting_id", [], "any", false, false, false, 93);
                echo "\" selected=\"selected\">";
                echo twig_get_attribute($this->env, $this->source, $context["min_tier"], "tier_setting_name", [], "any", false, false, false, 93);
                echo "</option>
                ";
            } else {
                // line 95
                echo "                <option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["min_tier"], "tier_setting_id", [], "any", false, false, false, 95);
                echo "\">";
                echo twig_get_attribute($this->env, $this->source, $context["min_tier"], "tier_setting_name", [], "any", false, false, false, 95);
                echo "</option>
                ";
            }
            // line 97
            echo "                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['min_tier'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 98
        echo "              </select>
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-value\">";
        // line 102
        echo ($context["entry_expiry"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"expiry\" value=\"";
        // line 104
        echo ($context["expiry"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_expiry"] ?? null);
        echo "\" id=\"input-expiry\" class=\"form-control\" />
              ";
        // line 105
        if (($context["error_expiry"] ?? null)) {
            // line 106
            echo "              <div class=\"text-danger\">";
            echo ($context["error_expiry"] ?? null);
            echo "</div>
              ";
        }
        // line 108
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-redemption-environment\">";
        // line 111
        echo ($context["entry_redemption_env"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <select name=\"redemption_environment_id\" id=\"input-redemption-environment\" class=\"form-control\">
                ";
        // line 114
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["redemption_environments"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["redemption_environment"]) {
            // line 115
            echo "                ";
            if ((twig_get_attribute($this->env, $this->source, $context["redemption_environment"], "redemption_environment_id", [], "any", false, false, false, 115) == ($context["redemption_environment_id"] ?? null))) {
                // line 116
                echo "                <option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["redemption_environment"], "redemption_environment_id", [], "any", false, false, false, 116);
                echo "\" selected=\"selected\">";
                echo twig_get_attribute($this->env, $this->source, $context["redemption_environment"], "redemption_environment_name", [], "any", false, false, false, 116);
                echo "</option>
                ";
            } else {
                // line 118
                echo "                <option value=\"";
                echo twig_get_attribute($this->env, $this->source, $context["redemption_environment"], "redemption_environment_id", [], "any", false, false, false, 118);
                echo "\">";
                echo twig_get_attribute($this->env, $this->source, $context["redemption_environment"], "redemption_environment_name", [], "any", false, false, false, 118);
                echo "</option>
                ";
            }
            // line 120
            echo "                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['redemption_environment'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 121
        echo "              </select>
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-start-date\">";
        // line 125
        echo ($context["entry_start_date"] ?? null);
        echo "</label>
            <div class=\"col-sm-3\">
              <div class=\"input-group date\">
                <input type=\"text\" name=\"start_date\" value=\"";
        // line 128
        echo ($context["start_date"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_start_date"] ?? null);
        echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-date-start\" class=\"form-control\" />
                <span class=\"input-group-btn\">
                <button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
                </span></div>
                ";
        // line 132
        if (($context["error_start_date"] ?? null)) {
            // line 133
            echo "                <div class=\"text-danger\">";
            echo ($context["error_start_date"] ?? null);
            echo "</div>
                ";
        }
        // line 135
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-end-date\">";
        // line 138
        echo ($context["entry_end_date"] ?? null);
        echo "</label>
            <div class=\"col-sm-3\">
              <div class=\"input-group date\">
                <input type=\"text\" name=\"end_date\" value=\"";
        // line 141
        echo ($context["end_date"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_end_date"] ?? null);
        echo "\" data-date-format=\"YYYY-MM-DD\" id=\"input-end_date\" class=\"form-control\" />
                <span class=\"input-group-btn\">
                <button type=\"button\" class=\"btn btn-default\"><i class=\"fa fa-calendar\"></i></button>
                </span></div>
                ";
        // line 145
        if (($context["error_end_date"] ?? null)) {
            // line 146
            echo "                <div class=\"text-danger\">";
            echo ($context["error_end_date"] ?? null);
            echo "</div>
                ";
        }
        // line 148
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-status\">";
        // line 151
        echo ($context["entry_status"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <select name=\"status\" id=\"input-status\" class=\"form-control\">
                ";
        // line 154
        if (($context["status"] ?? null)) {
            // line 155
            echo "                <option value=\"0\">";
            echo ($context["text_disabled"] ?? null);
            echo "</option>
                <option value=\"1\" selected=\"selected\">";
            // line 156
            echo ($context["text_enabled"] ?? null);
            echo "</option>
                ";
        } else {
            // line 158
            echo "                <option value=\"0\" selected=\"selected\">";
            echo ($context["text_disabled"] ?? null);
            echo "</option>
                <option value=\"1\">";
            // line 159
            echo ($context["text_enabled"] ?? null);
            echo "</option>
                ";
        }
        // line 161
        echo "              </select>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
  <script type=\"text/javascript\"><!--
\$('.date').datetimepicker({
\tlanguage: '";
        // line 170
        echo ($context["datepicker"] ?? null);
        echo "',
\tpickTime: false
});
//--></script>
</div>
";
        // line 175
        echo ($context["footer"] ?? null);
        echo " ";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  476 => 175,  468 => 170,  457 => 161,  452 => 159,  447 => 158,  442 => 156,  437 => 155,  435 => 154,  429 => 151,  424 => 148,  418 => 146,  416 => 145,  407 => 141,  401 => 138,  396 => 135,  390 => 133,  388 => 132,  379 => 128,  373 => 125,  367 => 121,  361 => 120,  353 => 118,  345 => 116,  342 => 115,  338 => 114,  332 => 111,  327 => 108,  321 => 106,  319 => 105,  313 => 104,  308 => 102,  302 => 98,  296 => 97,  288 => 95,  280 => 93,  277 => 92,  273 => 91,  267 => 88,  262 => 85,  256 => 83,  254 => 82,  248 => 81,  243 => 79,  238 => 76,  232 => 74,  230 => 73,  224 => 72,  219 => 70,  208 => 66,  203 => 64,  196 => 60,  190 => 59,  186 => 58,  177 => 54,  172 => 52,  167 => 49,  161 => 47,  159 => 46,  153 => 45,  148 => 43,  142 => 39,  136 => 38,  128 => 36,  120 => 34,  117 => 33,  113 => 32,  107 => 29,  102 => 27,  96 => 24,  92 => 22,  84 => 18,  82 => 17,  76 => 13,  65 => 11,  61 => 10,  56 => 8,  50 => 7,  46 => 6,  37 => 1,);
    }

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