<?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;

/* member/member_form.twig */
class __TwigTemplate_ce80cda2a5c49762efe0e1749c17465b0b08fa7e2a80c2dbe844227b7d422d27 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-member\" 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-member\" class=\"form-horizontal\">
            <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-first_name\">";
        // line 29
        echo ($context["entry_first_name"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"first_name\" value=\"";
        // line 31
        echo ($context["first_name"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_first_name"] ?? null);
        echo "\" id=\"input-first_name\" class=\"form-control\" />
              ";
        // line 32
        if (($context["error_first_name"] ?? null)) {
            // line 33
            echo "              <div class=\"text-danger\">";
            echo ($context["error_first_name"] ?? null);
            echo "</div>
              ";
        }
        // line 35
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-last_name\">";
        // line 38
        echo ($context["entry_last_name"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"last_name\" value=\"";
        // line 40
        echo ($context["last_name"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_last_name"] ?? null);
        echo "\" id=\"input-last_name\" class=\"form-control\" />
              ";
        // line 41
        if (($context["error_last_name"] ?? null)) {
            // line 42
            echo "              <div class=\"text-danger\">";
            echo ($context["error_last_name"] ?? null);
            echo "</div>
              ";
        }
        // line 44
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-email\">";
        // line 47
        echo ($context["entry_email"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"email\" value=\"";
        // line 49
        echo ($context["email"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_email"] ?? null);
        echo "\" id=\"input-email\" class=\"form-control\" />
              ";
        // line 50
        if (($context["error_email"] ?? null)) {
            // line 51
            echo "              <div class=\"text-danger\">";
            echo ($context["error_email"] ?? null);
            echo "</div>
              ";
        }
        // line 53
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-phone_no\">";
        // line 56
        echo ($context["entry_phone_no"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"phone_no\" value=\"";
        // line 58
        echo ($context["phone_no"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_phone_no"] ?? null);
        echo "\" id=\"input-phone_no\" class=\"form-control\" />
              ";
        // line 59
        if (($context["error_phone_no"] ?? null)) {
            // line 60
            echo "              <div class=\"text-danger\">";
            echo ($context["error_phone_no"] ?? null);
            echo "</div>
              ";
        }
        // line 62
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-gender>";
        // line 65
        echo ($context["entry_member"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <select name=\"gender\" id=\"input-gender\" class=\"form-control\">
                ";
        // line 68
        if ((($context["gender"] ?? null) == "M")) {
            // line 69
            echo "                <option value=\"M\" selected=\"selected\">";
            echo ($context["text_male"] ?? null);
            echo "</option>
                <option value=\"F\">";
            // line 70
            echo ($context["text_female"] ?? null);
            echo "</option>
                <option value=\"\">";
            // line 71
            echo ($context["text_unknown"] ?? null);
            echo "</option>
                ";
        } elseif ((        // line 72
($context["gender"] ?? null) == "F")) {
            // line 73
            echo "                <option value=\"M\">";
            echo ($context["text_male"] ?? null);
            echo "</option>
                <option value=\"F\"  selected=\"selected\">";
            // line 74
            echo ($context["text_female"] ?? null);
            echo "</option>
                <option value=\"\">";
            // line 75
            echo ($context["text_unknown"] ?? null);
            echo "</option>
                ";
        } else {
            // line 77
            echo "                <option value=\"M\">";
            echo ($context["text_male"] ?? null);
            echo "</option>
                <option value=\"F\">";
            // line 78
            echo ($context["text_female"] ?? null);
            echo "</option>
                <option value=\"\" selected=\"selected\">";
            // line 79
            echo ($context["text_unknown"] ?? null);
            echo "</option>
                ";
        }
        // line 81
        echo "              </select>
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-achieve_member_amount\">";
        // line 85
        echo ($context["entry_achieve_member_amount"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"achieve_member_amount\" value=\"";
        // line 87
        echo ($context["achieve_member_amount"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_achive_member_amount"] ?? null);
        echo "\" id=\"input-achieve_member_amount\" class=\"form-control\" />
              ";
        // line 88
        if (($context["error_achieve_member_amount"] ?? null)) {
            // line 89
            echo "              <div class=\"text-danger\">";
            echo ($context["error_achieve_member_amount"] ?? null);
            echo "</div>
              ";
        }
        // line 91
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-maintain_member_type\">";
        // line 94
        echo ($context["entry_maintain_member_type"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
                <select name=\"maintain_member_type_id\" id=\"input-maintain_member_type\" class=\"form-control\">
                ";
        // line 97
        if ((($context["maintain_member_type_id"] ?? null) == 2)) {
            // line 98
            echo "                <option value=\"1\">";
            echo ($context["text_cash"] ?? null);
            echo "</option>
                <option value=\"2\" selected=\"selected\">";
            // line 99
            echo ($context["text_point"] ?? null);
            echo "</option>
                ";
        } else {
            // line 101
            echo "                <option value=\"1\" selected=\"selected\">";
            echo ($context["text_cash"] ?? null);
            echo "</option>
                <option value=\"2\">";
            // line 102
            echo ($context["text_point"] ?? null);
            echo "</option>
                ";
        }
        // line 104
        echo "              </select>
            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-maintain_member_amount\">";
        // line 108
        echo ($context["entry_maintain_member_amount"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"maintain_member_amount\" value=\"";
        // line 110
        echo ($context["maintain_member_amount"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_maintain_member_amount"] ?? null);
        echo "\" id=\"input-maintain_member_amount\" class=\"form-control\" />
              ";
        // line 111
        if (($context["error_maintain_member_amount"] ?? null)) {
            // line 112
            echo "              <div class=\"text-danger\">";
            echo ($context["error_maintain_member_amount"] ?? null);
            echo "</div>
              ";
        }
        // line 114
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-multiply_regular_item\">";
        // line 117
        echo ($context["entry_multiply_regular_item"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"multiply_regular_item\" value=\"";
        // line 119
        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 120
        if (($context["error_multiply_regular_item"] ?? null)) {
            // line 121
            echo "              <div class=\"text-danger\">";
            echo ($context["error_multiply_regular_item"] ?? null);
            echo "</div>
              ";
        }
        // line 123
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-multiply_sales_item\">";
        // line 126
        echo ($context["entry_multiply_sales_item"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"multiply_sales_item\" value=\"";
        // line 128
        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 129
        if (($context["error_multiply_sales_item"] ?? null)) {
            // line 130
            echo "              <div class=\"text-danger\">";
            echo ($context["error_multiply_sales_item"] ?? null);
            echo "</div>
              ";
        }
        // line 132
        echo "            </div>
          </div>
           <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-point_expiry\">";
        // line 135
        echo ($context["entry_point_expiry"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"point_expiry\" value=\"";
        // line 137
        echo ($context["point_expiry"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_point_expiry"] ?? null);
        echo "\" id=\"input-point_expiry\" class=\"form-control\" />
              ";
        // line 138
        if (($context["error_point_expiry"] ?? null)) {
            // line 139
            echo "              <div class=\"text-danger\">";
            echo ($context["error_point_expiry"] ?? null);
            echo "</div>
              ";
        }
        // line 141
        echo "            </div>
          </div>
          <div class=\"form-group required\">
            <label class=\"col-sm-2 control-label\" for=\"input-member_expiry\">";
        // line 144
        echo ($context["entry_member_expiry"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <input type=\"text\" name=\"member_expiry\" value=\"";
        // line 146
        echo ($context["member_expiry"] ?? null);
        echo "\" placeholder=\"";
        echo ($context["entry_member_expiry"] ?? null);
        echo "\" id=\"input-member_expiry\" class=\"form-control\" />
              ";
        // line 147
        if (($context["error_member_expiry"] ?? null)) {
            // line 148
            echo "              <div class=\"text-danger\">";
            echo ($context["error_member_expiry"] ?? null);
            echo "</div>
              ";
        }
        // line 150
        echo "            </div>
          </div>
          <div class=\"form-group\">
            <label class=\"col-sm-2 control-label\" for=\"input-status\">";
        // line 153
        echo ($context["entry_status"] ?? null);
        echo "</label>
            <div class=\"col-sm-10\">
              <select name=\"status\" id=\"input-status\" class=\"form-control\">
                ";
        // line 156
        if (($context["status"] ?? null)) {
            // line 157
            echo "                <option value=\"0\">";
            echo ($context["text_disabled"] ?? null);
            echo "</option>
                <option value=\"1\" selected=\"selected\">";
            // line 158
            echo ($context["text_enabled"] ?? null);
            echo "</option>
                ";
        } else {
            // line 160
            echo "                <option value=\"0\" selected=\"selected\">";
            echo ($context["text_disabled"] ?? null);
            echo "</option>
                <option value=\"1\">";
            // line 161
            echo ($context["text_enabled"] ?? null);
            echo "</option>
                ";
        }
        // line 163
        echo "              </select>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
";
        // line 171
        echo ($context["footer"] ?? null);
        echo " ";
    }

    public function getTemplateName()
    {
        return "member/member_form.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  476 => 171,  466 => 163,  461 => 161,  456 => 160,  451 => 158,  446 => 157,  444 => 156,  438 => 153,  433 => 150,  427 => 148,  425 => 147,  419 => 146,  414 => 144,  409 => 141,  403 => 139,  401 => 138,  395 => 137,  390 => 135,  385 => 132,  379 => 130,  377 => 129,  371 => 128,  366 => 126,  361 => 123,  355 => 121,  353 => 120,  347 => 119,  342 => 117,  337 => 114,  331 => 112,  329 => 111,  323 => 110,  318 => 108,  312 => 104,  307 => 102,  302 => 101,  297 => 99,  292 => 98,  290 => 97,  284 => 94,  279 => 91,  273 => 89,  271 => 88,  265 => 87,  260 => 85,  254 => 81,  249 => 79,  245 => 78,  240 => 77,  235 => 75,  231 => 74,  226 => 73,  224 => 72,  220 => 71,  216 => 70,  211 => 69,  209 => 68,  203 => 65,  198 => 62,  192 => 60,  190 => 59,  184 => 58,  179 => 56,  174 => 53,  168 => 51,  166 => 50,  160 => 49,  155 => 47,  150 => 44,  144 => 42,  142 => 41,  136 => 40,  131 => 38,  126 => 35,  120 => 33,  118 => 32,  112 => 31,  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("", "member/member_form.twig", "");
    }
}
