var/cache/dev/twig/69/69969fdae8262610a805025846e60a80.php line 54

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* content/signup.html.twig */
  16. class __TwigTemplate_bcb5a898b21d65d407ee178f994743ce extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'content' => [$this'block_content'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "layout/layout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/signup.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/signup.html.twig"));
  44.         $this->parent $this->loadTemplate("layout/layout.html.twig""content/signup.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "GFS::Signup
  63. ";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.         yield from [];
  69.     }
  70.     // line 6
  71.     /**
  72.      * @return iterable<null|scalar|\Stringable>
  73.      */
  74.     public function block_content(array $context, array $blocks = []): iterable
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  81.         // line 7
  82.         yield "
  83. \t<!--Start Wrapper-->
  84. \t<div
  85. \t\tclass=\"wrapper sign-up-page signup-form\">
  86. \t\t<!--Start Sign up-->
  87. \t\t<section class=\"sign-up-page-section\">
  88. \t\t\t<div class=\"row\">
  89. \t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-desktop\">
  90. \t\t\t\t\t<div class=\"overlay\"></div>
  91. \t\t\t\t\t<img src=\"/static/assets/images/Signup.jpg\" class=\"img-fluid w-100\" alt=\"Signup desktop\">
  92. \t\t\t\t</div>
  93. \t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-mobile\">
  94. \t\t\t\t\t<div class=\"overlay\"></div>
  95. \t\t\t\t\t<img src=\"/static/assets/images/394x272 (1).jpg\" class=\"img-fluid w-100\" alt=\"Signup mobile\">
  96. \t\t\t\t</div>
  97. \t\t\t\t<div class=\"start-training-info sign-up-page-form col-xl-5\">
  98. \t\t\t\t\t<h1 class=\"h2 text-center mb-3\">";
  99.         // line 27
  100.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SIGN UP"), "html"nulltrue);
  101.         yield "</h1>
  102. \t\t\t\t\t";
  103.         // line 29
  104.         $context['_parent'] = $context;
  105.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'29$this->source); })()), "session", [], "any"falsefalsefalse29), "flashbag", [], "any"falsefalsefalse29), "get", ["error"], "method"falsefalsefalse29));
  106.         foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  107.             // line 30
  108.             yield "
  109. \t\t\t\t\t\t<span class=\"msg-signup text-danger error-color\">
  110. \t\t\t\t\t\t\t";
  111.             // line 32
  112.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flashMessage"], "html"nulltrue);
  113.             yield "
  114. \t\t\t\t\t\t</span>
  115. \t\t\t\t\t";
  116.         }
  117.         $_parent $context['_parent'];
  118.         unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
  119.         $context array_intersect_key($context$_parent) + $_parent;
  120.         // line 36
  121.         yield "
  122. \t\t\t\t\t<form
  123. \t\t\t\t\t\tmethod=\"post\" id=\"singupForm\" action=\"/register\">
  124. \t\t\t\t\t\t<!-- <ul class=\"nav nav-pills nav-fill mt-3\">
  125. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                <li class=\"nav-item login-btn\">
  126. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                  <a class=\"nav-link btn btn-custom btn-white\" href=\"#\">LOGIN</a>
  127. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                </li>
  128. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                <li class=\"nav-item signup-btn\">
  129. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                  <a class=\"nav-link btn btn-custom btn-primary\" href=\"#\">Sign up</a>
  130. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                </li>
  131. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                              </ul> -->
  132. \t\t\t\t\t\t<div class=\"form-group\">
  133. \t\t\t\t\t\t\t<input required type=\"text\" class=\"form-control\" id=\"inputFullName\" name=\"firstname\" placeholder=\"";
  134.         // line 48
  135.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("First Name"), "html"nulltrue);
  136.         yield "*\">
  137. \t\t\t\t\t\t\t<span class=\"error-fullname text-danger error-color\"></span>
  138. \t\t\t\t\t\t</div>
  139. \t\t\t\t\t\t<div class=\"form-group\">
  140. \t\t\t\t\t\t\t<input required type=\"text\" class=\"form-control\" id=\"inputLastName\" name=\"lastname\" placeholder=\"";
  141.         // line 52
  142.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Last Name"), "html"nulltrue);
  143.         yield "*\">
  144. \t\t\t\t\t\t\t<span class=\"error-lastname text-danger error-color\"></span>
  145. \t\t\t\t\t\t</div>
  146. \t\t\t\t\t\t<div class=\"form-row\">
  147. \t\t\t\t\t\t\t<div class=\"form-group col-md-6\">
  148. \t\t\t\t\t\t\t\t<input type=\"tel\" class=\"form-control\" id=\"inputMobileNumber\" name=\"mobilenumber\" placeholder=\"";
  149.         // line 59
  150.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mobile Number"), "html"nulltrue);
  151.         yield "*\">
  152. \t\t\t\t\t\t\t\t<span class=\"error-inputMobileNumber text-danger error-color\"></span>
  153. \t\t\t\t\t\t\t</div>
  154. \t\t\t\t\t\t\t<div class=\"form-group col-md-6\">
  155. \t\t\t\t\t\t\t\t<input required type=\"email\" class=\"form-control\" id=\"inputEmailId\" name=\"email\" placeholder=\"";
  156.         // line 63
  157.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email Id"), "html"nulltrue);
  158.         yield "*\">
  159. \t\t\t\t\t\t\t\t<span class=\"email-error text-danger error-color\"></span>
  160. \t\t\t\t\t\t\t</div>
  161. \t\t\t\t\t\t</div>
  162. \t\t\t\t\t\t<div class=\"form-group\">
  163. \t\t\t\t\t\t\t<select id=\"business\" name=\"business_type\" class=\"form-control custom-select\">
  164. \t\t\t\t\t\t\t\t<option selected value=\"\">";
  165.         // line 69
  166.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Business Type"), "html"nulltrue);
  167.         yield "*</option>
  168. \t\t\t\t\t\t\t\t";
  169.         // line 70
  170.         $context['_parent'] = $context;
  171.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["roles"]) || array_key_exists("roles"$context) ? $context["roles"] : (function () { throw new RuntimeError('Variable "roles" does not exist.'70$this->source); })()));
  172.         foreach ($context['_seq'] as $context["_key"] => $context["role"]) {
  173.             // line 71
  174.             yield "\t\t\t\t\t\t\t\t\t";
  175.             if ((CoreExtension::getAttribute($this->env$this->source$context["role"], "name", [], "any"falsefalsefalse71) != "Normal")) {
  176.                 // line 72
  177.                 yield "\t\t\t\t\t\t\t\t\t\t<option value=\"";
  178.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["role"], "name", [], "any"falsefalsefalse72), "html"nulltrue);
  179.                 yield "\">";
  180.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["role"], "name", [], "any"falsefalsefalse72), "html"nulltrue);
  181.                 yield "</option>
  182. \t\t\t\t\t\t\t\t\t";
  183.             }
  184.             // line 74
  185.             yield "\t\t\t\t\t\t\t\t";
  186.         }
  187.         $_parent $context['_parent'];
  188.         unset($context['_seq'], $context['_key'], $context['role'], $context['_parent']);
  189.         $context array_intersect_key($context$_parent) + $_parent;
  190.         // line 75
  191.         yield "\t\t\t\t\t\t\t</select>
  192. \t\t\t\t\t\t\t<span class=\"error-business text-danger error-color\"></span>
  193. \t\t\t\t\t\t</div>
  194. \t\t\t\t\t\t<div class=\"form-group\">
  195. \t\t\t\t\t\t\t<select class=\"form-control\" id=\"country\" name=\"country\">
  196. \t\t\t\t\t\t\t\t<option value=\"\">";
  197.         // line 81
  198.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nationality"), "html"nulltrue);
  199.         yield "*</option>
  200. \t\t\t\t\t\t\t\t";
  201.         // line 82
  202.         $context['_parent'] = $context;
  203.         $context['_seq'] = CoreExtension::ensureTraversable($context["countries"]);
  204.         foreach ($context['_seq'] as $context["_key"] => $context["countries"]) {
  205.             // line 83
  206.             yield "\t\t\t\t\t\t\t\t\t<option value=\"";
  207.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["countries"], "html"nulltrue);
  208.             yield "\">";
  209.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["countries"], "html"nulltrue);
  210.             yield "</option>
  211. \t\t\t\t\t\t\t\t";
  212.         }
  213.         $_parent $context['_parent'];
  214.         unset($context['_seq'], $context['_key'], $context['countries'], $context['_parent']);
  215.         $context array_intersect_key($context$_parent) + $_parent;
  216.         // line 85
  217.         yield "\t\t\t\t\t\t\t</select>
  218. \t\t\t\t\t\t\t<span class=\"error-country text-danger error-color\"></span>
  219. \t\t\t\t\t\t</div>
  220. \t\t\t\t\t\t<div class=\"form-group\">
  221. \t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"inputBusinessName\" name=\"company\" placeholder=\"";
  222.         // line 90
  223.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Company Name"), "html"nulltrue);
  224.         yield "*\">
  225. \t\t\t\t\t\t\t<span class=\"error-inputBusinessName text-danger error-color\"></span>
  226. \t\t\t\t\t\t</div>
  227. \t\t\t\t\t\t<div class=\"form-group\">
  228. \t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"inputJobTitle\" name=\"job_title\" placeholder=\"";
  229.         // line 94
  230.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Job Title"), "html"nulltrue);
  231.         yield "*\">
  232. \t\t\t\t\t\t\t<span class=\"error-inputJobTitle text-danger error-color\"></span>
  233. \t\t\t\t\t\t</div>
  234. \t\t\t\t\t\t<div class=\"form-group\">
  235. \t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"inputAddressLine01\" name=\"address1\" value=\"";
  236.         // line 98
  237.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Saudi Arabia"), "html"nulltrue);
  238.         yield "\" placeholder=\"Country\" required readonly>
  239. \t\t\t\t\t\t\t<span class=\"error-inputAddressLine01 text-danger error-color\"></span>
  240. \t\t\t\t\t\t</div>
  241. \t\t\t\t\t\t<div class=\"form-group\">
  242. \t\t\t\t\t\t\t";
  243.         // line 103
  244.         yield "\t\t\t\t\t\t\t<select class=\"form-control\" id=\"inputAddressLine02\" name=\"address2\" required>
  245. \t\t\t\t\t\t\t\t<option value=\"\" selected>";
  246.         // line 104
  247.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please Select City"), "html"nulltrue);
  248.         yield "</option>
  249. \t\t\t\t\t\t\t\t<option value=\"Riyadh\">";
  250.         // line 105
  251.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Riyadh"), "html"nulltrue);
  252.         yield "</option>
  253. \t\t\t\t\t\t\t\t<option value=\"Jeddah\">";
  254.         // line 106
  255.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Jeddah"), "html"nulltrue);
  256.         yield "</option>
  257. \t\t\t\t\t\t\t\t<option value=\"Mecca\">";
  258.         // line 107
  259.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mecca"), "html"nulltrue);
  260.         yield "</option>
  261. \t\t\t\t\t\t\t\t<option value=\"Medina\">";
  262.         // line 108
  263.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Medina"), "html"nulltrue);
  264.         yield "</option>
  265. \t\t\t\t\t\t\t\t<option value=\"Dammam\">";
  266.         // line 109
  267.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dammam"), "html"nulltrue);
  268.         yield "</option>
  269. \t\t\t\t\t\t\t\t<option value=\"Al Khobar\">";
  270.         // line 110
  271.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Al Khobar"), "html"nulltrue);
  272.         yield "</option>
  273. \t\t\t\t\t\t\t\t<option value=\"Dhahran\">";
  274.         // line 111
  275.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dhahran"), "html"nulltrue);
  276.         yield "</option>
  277. \t\t\t\t\t\t\t\t<option value=\"Jubail\">";
  278.         // line 112
  279.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Jubail"), "html"nulltrue);
  280.         yield "</option>
  281. \t\t\t\t\t\t\t\t<option value=\"Abha\">";
  282.         // line 113
  283.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Abha"), "html"nulltrue);
  284.         yield "</option>
  285. \t\t\t\t\t\t\t\t<option value=\"Taif\">";
  286.         // line 114
  287.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Taif"), "html"nulltrue);
  288.         yield "</option>
  289. \t\t\t\t\t\t\t\t<option value=\"Tabuk\">";
  290.         // line 115
  291.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tabuk"), "html"nulltrue);
  292.         yield "</option>
  293. \t\t\t\t\t\t\t\t<option value=\"Hail\">";
  294.         // line 116
  295.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Hail"), "html"nulltrue);
  296.         yield "</option>
  297. \t\t\t\t\t\t\t\t<option value=\"Buraidah\">";
  298.         // line 117
  299.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Buraidah"), "html"nulltrue);
  300.         yield "</option>
  301. \t\t\t\t\t\t\t\t<option value=\"Najran\">";
  302.         // line 118
  303.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Najran"), "html"nulltrue);
  304.         yield "</option>
  305. \t\t\t\t\t\t\t\t<option value=\"Jizan\">";
  306.         // line 119
  307.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Jizan"), "html"nulltrue);
  308.         yield "</option>
  309. \t\t\t\t\t\t\t\t<option value=\"Khamis Mushait\">";
  310.         // line 120
  311.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Khamis Mushait"), "html"nulltrue);
  312.         yield "</option>
  313. \t\t\t\t\t\t\t\t<option value=\"Yanbu\">";
  314.         // line 121
  315.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Yanbu"), "html"nulltrue);
  316.         yield "</option>
  317. \t\t\t\t\t\t\t\t<option value=\"Al Ahsa\">";
  318.         // line 122
  319.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Al Ahsa"), "html"nulltrue);
  320.         yield "</option>
  321. \t\t\t\t\t\t\t\t<option value=\"Qatif\">";
  322.         // line 123
  323.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Qatif"), "html"nulltrue);
  324.         yield "</option>
  325. \t\t\t\t\t\t\t\t<option value=\"Rabigh\">";
  326.         // line 124
  327.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Rabigh"), "html"nulltrue);
  328.         yield "</option>
  329. \t\t\t\t\t\t\t</select>
  330. \t\t\t\t\t\t</div>
  331. \t\t\t\t\t\t<div class=\"form-group\">
  332. \t\t\t\t\t\t\t<input required type=\"password\" class=\"form-control\" id=\"password1\" name=\"password\" placeholder=\"";
  333.         // line 128
  334.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password"), "html"nulltrue);
  335.         yield "*\" required>
  336. \t\t\t\t\t\t</div>
  337. \t\t\t\t\t\t<div class=\"form-group\">
  338. \t\t\t\t\t\t\t<input required type=\"password\" class=\"form-control\" id=\"password2\" placeholder=\"";
  339.         // line 131
  340.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Confirm Password"), "html"nulltrue);
  341.         yield "*\" required>
  342. \t\t\t\t\t\t</div>
  343. \t\t\t\t\t\t<span class=\"password-error text-danger error-color\"></span>
  344. \t\t\t\t\t\t<div class=\"form-group mt-md-4 mb-md-3\">
  345. \t\t\t\t\t\t\t<div class=\"form-check custom-control custom-checkbox\">
  346. \t\t\t\t\t\t\t\t<input class=\"form-check-input custom-control-input\" type=\"checkbox\" id=\"gridCheck\" required>
  347. \t\t\t\t\t\t\t\t<label class=\"form-check-label custom-control-label\" for=\"gridCheck\">
  348. \t\t\t\t\t\t\t\t\t";
  349.         // line 138
  350.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("I have read and agree to the"), "html"nulltrue);
  351.         yield "
  352. \t\t\t\t\t\t\t\t\t<a href=\"#\">";
  353.         // line 139
  354.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("terms & conditions"), "html"nulltrue);
  355.         yield "</a>
  356. \t\t\t\t\t\t\t\t</label>
  357. \t\t\t\t\t\t\t\t<span class=\"error-term text-danger error-color\"></span>
  358. \t\t\t\t\t\t\t</div>
  359. \t\t\t\t\t\t\t<div class=\"form-check custom-control custom-checkbox\">
  360. \t\t\t\t\t\t\t\t<input class=\"form-check-input custom-control-input\" type=\"checkbox\" id=\"gridChecknewslatter\" name=\"newslatter\">
  361. \t\t\t\t\t\t\t\t<label class=\"form-check-label custom-control-label\" for=\"gridChecknewslatter\">
  362. \t\t\t\t\t\t\t\t\t";
  363.         // line 147
  364.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Subscribe newsletter"), "html"nulltrue);
  365.         yield "
  366. \t\t\t\t\t\t\t\t</label>
  367. \t\t\t\t\t\t\t\t";
  368.         // line 149
  369.         $context['_parent'] = $context;
  370.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'149$this->source); })()), "session", [], "any"falsefalsefalse149), "flashbag", [], "any"falsefalsefalse149), "get", ["newslatter-error"], "method"falsefalsefalse149));
  371.         foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  372.             // line 150
  373.             yield "
  374. \t\t\t\t\t\t\t\t<span class=\"msg-signup text-danger error-color\">
  375. \t\t\t\t\t\t\t\t\t";
  376.             // line 152
  377.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flashMessage"], "html"nulltrue);
  378.             yield "
  379. \t\t\t\t\t\t\t\t</span>
  380. \t\t\t\t\t\t\t\t";
  381.         }
  382.         $_parent $context['_parent'];
  383.         unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
  384.         $context array_intersect_key($context$_parent) + $_parent;
  385.         // line 156
  386.         yield "\t\t\t\t\t\t\t\t";
  387.         // line 157
  388.         yield "\t\t\t\t\t\t\t</div>
  389. \t\t\t\t\t\t
  390. \t\t\t\t\t\t\t<span class=\"recaptcha text-danger error-color\"></span>
  391. \t\t\t\t\t\t\t";
  392.         // line 167
  393.         yield "\t\t\t\t\t\t\t<div class=\"g-recaptcha\" data-sitekey=\"6Le5OcAgAAAAANCPxYj-Tufd8ooE9d92HvhQNyac\" data-theme=\"light\" data-size=\"normal\" data-image=\"image\" id=\"recaptcha\"></div>
  394. \t\t\t\t\t\t\t<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
  395. \t\t\t\t\t\t\t\t";
  396.         // line 170
  397.         $context['_parent'] = $context;
  398.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'170$this->source); })()), "session", [], "any"falsefalsefalse170), "flashbag", [], "any"falsefalsefalse170), "get", ["recaptcha-error"], "method"falsefalsefalse170));
  399.         foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  400.             // line 171
  401.             yield "
  402. \t\t\t\t\t\t\t\t<span class=\"msg-signup text-danger error-color\">
  403. \t\t\t\t\t\t\t\t\t";
  404.             // line 173
  405.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flashMessage"], "html"nulltrue);
  406.             yield "
  407. \t\t\t\t\t\t\t\t</span>
  408. \t\t\t\t\t\t\t\t";
  409.         }
  410.         $_parent $context['_parent'];
  411.         unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
  412.         $context array_intersect_key($context$_parent) + $_parent;
  413.         // line 177
  414.         yield "\t\t\t\t\t\t</div>
  415. \t\t\t\t\t\t<button class=\"btn btn-custom btn-lg-o-white btn-primary-submit btn-block submit-btn btn-lg-o-yellow-white\">";
  416.         // line 178
  417.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SIGN UP"), "html"nulltrue);
  418.         yield "</button>
  419. \t\t\t\t\t</form>
  420. \t\t\t\t</div>
  421. \t\t\t</div>
  422. \t\t</section>
  423. \t\t<!--End Sign up-->
  424. \t</div>
  425. \t<!--End Wrapper-->
  426. \t<style>
  427. \t\t.form-control {
  428. \t\t\tcolor: #495057 !important;
  429. \t\t}
  430. \t</style>
  431. \t<script>
  432. \t\t\$('#inputEmailId').on('keyup change', function () {
  433. \t\t\tlet email = \$('#inputEmailId').val();
  434. \t\t\t\$.ajax({
  435. \t\t\turl: '/validate-email',
  436. \t\t\ttype: \"post\",
  437. \t\t\tdataType: 'json',
  438. \t\t\tdata: {
  439. \t\t\temail: \$(this).val()
  440. \t\t\t},
  441. \t\t\tsuccess: function (data) {
  442. \t\t\tif (data.success) {
  443. \t\t\t\$('.email-error').text(\"";
  444.         // line 203
  445.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email already registerd"), "html"nulltrue);
  446.         yield "\");
  447. \t\t\t\$('.submit-btn').attr('disabled', 'disabled');
  448. \t\t\t} else {
  449. \t\t\t\$('.submit-btn').removeAttr('disabled');
  450. \t\t\t\$('.email-error').text('');
  451. \t\t\t}
  452. \t\t\t}
  453. \t\t\t});
  454. \t\t\t})
  455. \t</script>
  456. \t<script>
  457. \t\t\$('.submit-btn').on('click', function (e) { // event.preventDefault();
  458. \t\t\tlet password1 = \$('#password1').val();
  459. \t\t\tlet password2 = \$('#password2').val();
  460. \t\t\tlet inputFullName = \$('#inputFullName').val();
  461. \t\t\tlet inputLastName = \$('#inputLastName').val();
  462. \t\t\tlet business = \$('#business').val();
  463. \t\t\tlet inputMobileNumber = \$('#inputMobileNumber').val();
  464. \t\t\tlet country = \$('#country').val();
  465. \t\t\tlet inputBusinessName = \$('#inputBusinessName').val();
  466. \t\t\tlet inputJobTitle = \$('#inputJobTitle').val();
  467. \t\t\tlet inputAddressLine01 = \$('#inputAddressLine01').val();
  468. \t\t\tlet terms_con = \$('#gridCheck');
  469. \t\t\t// let newslatter           = \$('#gridChecknewslatter');
  470. \t\t\t//console.log(terms_con);
  471. \t\t\t//var response = grecaptcha.getResponse();
  472. \t\t\t//console.log(response);
  473. \t\t\t\$(\".error\").remove();
  474. \t\t\tif (inputFullName == '') {
  475. \t\t\tevent.preventDefault();
  476. \t\t\t\$('.error-fullname').text(\"";
  477.         // line 236
  478.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter First Name"), "html"nulltrue);
  479.         yield "\");
  480. \t\t\t} else if (inputLastName == '') {
  481. \t\t\tevent.preventDefault();
  482. \t\t\t\$('.error-lastname').text(\"";
  483.         // line 239
  484.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter Last Name"), "html"nulltrue);
  485.         yield "\");
  486. \t\t\t} else if (inputMobileNumber == '') {
  487. \t\t\tevent.preventDefault();
  488. \t\t\t\$('.error-inputMobileNumber').text(\"";
  489.         // line 242
  490.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter Mobile No"), "html"nulltrue);
  491.         yield "\");
  492. \t\t\t} else if (business == '') {
  493. \t\t\tevent.preventDefault();
  494. \t\t\t\$('.error-business').text(\"";
  495.         // line 245
  496.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select Business"), "html"nulltrue);
  497.         yield "\");
  498. \t\t\t} else if (country == '') {
  499. \t\t\tevent.preventDefault();
  500. \t\t\t\$('.error-country').text(\"";
  501.         // line 248
  502.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select Country"), "html"nulltrue);
  503.         yield "\");
  504. \t\t\t} else if (inputBusinessName == '') {
  505. \t\t\tevent.preventDefault();
  506. \t\t\t\$('.error-inputBusinessName').text(\"";
  507.         // line 251
  508.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter Business Name"), "html"nulltrue);
  509.         yield "\");
  510. \t\t\t} else if (inputJobTitle == '') {
  511. \t\t\tevent.preventDefault();
  512. \t\t\t\$('.error-inputJobTitle').text(\"";
  513.         // line 254
  514.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter Job Title"), "html"nulltrue);
  515.         yield "\");
  516. \t\t\t} else if (inputAddressLine01 == '') {
  517. \t\t\tevent.preventDefault();
  518. \t\t\t\$('.error-inputAddressLine01').text(\"";
  519.         // line 257
  520.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter Address 1"), "html"nulltrue);
  521.         yield "\");
  522. \t\t\t} else if (password1 == '' || password2 == '') {
  523. \t\t\tevent.preventDefault();
  524. \t\t\t\$('.password-error').text(\"";
  525.         // line 260
  526.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password at least 8 characters"), "html"nulltrue);
  527.         yield "\");
  528. \t\t\t} else if (password1 != password2) {
  529. \t\t\tevent.preventDefault();
  530. \t\t\t\$('.password-error').text(\"";
  531.         // line 263
  532.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password does not matched"), "html"nulltrue);
  533.         yield "\");
  534. \t\t\t} else if (password1.length < 8 || password2 < 8) {
  535. \t\t\tevent.preventDefault();
  536. \t\t\t\$('.password-error').text(\"";
  537.         // line 266
  538.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password at least 8 characters"), "html"nulltrue);
  539.         yield "\");
  540. \t\t\t} else if (! terms_con.is(\":checked\")) {
  541. \t\t\tevent.preventDefault();
  542. \t\t\t\$('.error-term').text(\"";
  543.         // line 269
  544.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Check terms and condition"), "html"nulltrue);
  545.         yield "\");
  546. \t\t\t} //else if (response.length == 0) {
  547. \t\t\t//event.preventDefault();
  548. \t\t\t//\$('.recaptcha').text(\"reCaptcha is not valid\");
  549. \t\t\t//} 
  550. \t\t\telse {
  551. \t\t\t\$('.error').text('');
  552. \t\t\t}
  553. \t\t\t});
  554. \t</script>
  555. \t\t</script>
  556. \t\t";
  557.         // line 282
  558.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'282$this->source); })()), "request", [], "any"falsefalsefalse282), "locale", [], "any"falsefalsefalse282) == "ar")) {
  559.             // line 283
  560.             yield "\t\t\t";
  561.             $context["topMenu"] = "/en/signup";
  562.             // line 284
  563.             yield "\t\t";
  564.         } else {
  565.             // line 285
  566.             yield "\t\t\t";
  567.             $context["topMenu"] = "/ar/signup";
  568.             // line 286
  569.             yield "\t\t";
  570.         }
  571.         // line 287
  572.         yield "\t\t<script>
  573. \t\t\tvar _TopMenuLink = \"";
  574.         // line 288
  575.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["topMenu"]) || array_key_exists("topMenu"$context) ? $context["topMenu"] : (function () { throw new RuntimeError('Variable "topMenu" does not exist.'288$this->source); })()), "html"nulltrue);
  576.         yield "\";
  577. \t\t</script>
  578. \t\t";
  579.         
  580.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  581.         
  582.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  583.         yield from [];
  584.     }
  585.     /**
  586.      * @codeCoverageIgnore
  587.      */
  588.     public function getTemplateName(): string
  589.     {
  590.         return "content/signup.html.twig";
  591.     }
  592.     /**
  593.      * @codeCoverageIgnore
  594.      */
  595.     public function isTraitable(): bool
  596.     {
  597.         return false;
  598.     }
  599.     /**
  600.      * @codeCoverageIgnore
  601.      */
  602.     public function getDebugInfo(): array
  603.     {
  604.         return array (  613 => 288,  610 => 287,  607 => 286,  604 => 285,  601 => 284,  598 => 283,  596 => 282,  580 => 269,  574 => 266,  568 => 263,  562 => 260,  556 => 257,  550 => 254,  544 => 251,  538 => 248,  532 => 245,  526 => 242,  520 => 239,  514 => 236,  478 => 203,  450 => 178,  447 => 177,  437 => 173,  433 => 171,  429 => 170,  424 => 167,  419 => 157,  417 => 156,  407 => 152,  403 => 150,  399 => 149,  394 => 147,  383 => 139,  379 => 138,  369 => 131,  363 => 128,  356 => 124,  352 => 123,  348 => 122,  344 => 121,  340 => 120,  336 => 119,  332 => 118,  328 => 117,  324 => 116,  320 => 115,  316 => 114,  312 => 113,  308 => 112,  304 => 111,  300 => 110,  296 => 109,  292 => 108,  288 => 107,  284 => 106,  280 => 105,  276 => 104,  273 => 103,  266 => 98,  259 => 94,  252 => 90,  245 => 85,  234 => 83,  230 => 82,  226 => 81,  218 => 75,  212 => 74,  204 => 72,  201 => 71,  197 => 70,  193 => 69,  184 => 63,  177 => 59,  167 => 52,  160 => 48,  146 => 36,  136 => 32,  132 => 30,  128 => 29,  123 => 27,  101 => 7,  88 => 6,  64 => 3,  41 => 1,);
  605.     }
  606.     public function getSourceContext(): Source
  607.     {
  608.         return new Source("{% extends \"layout/layout.html.twig\" %}
  609. {% block title %}GFS::Signup
  610. {% endblock %}
  611. {% block content %}
  612. \t<!--Start Wrapper-->
  613. \t<div
  614. \t\tclass=\"wrapper sign-up-page signup-form\">
  615. \t\t<!--Start Sign up-->
  616. \t\t<section class=\"sign-up-page-section\">
  617. \t\t\t<div class=\"row\">
  618. \t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-desktop\">
  619. \t\t\t\t\t<div class=\"overlay\"></div>
  620. \t\t\t\t\t<img src=\"/static/assets/images/Signup.jpg\" class=\"img-fluid w-100\" alt=\"Signup desktop\">
  621. \t\t\t\t</div>
  622. \t\t\t\t<div class=\"media-section col-sm-7 col-10 slide-media-mobile\">
  623. \t\t\t\t\t<div class=\"overlay\"></div>
  624. \t\t\t\t\t<img src=\"/static/assets/images/394x272 (1).jpg\" class=\"img-fluid w-100\" alt=\"Signup mobile\">
  625. \t\t\t\t</div>
  626. \t\t\t\t<div class=\"start-training-info sign-up-page-form col-xl-5\">
  627. \t\t\t\t\t<h1 class=\"h2 text-center mb-3\">{{'SIGN UP'|trans}}</h1>
  628. \t\t\t\t\t{% for flashMessage in app.session.flashbag.get('error') %}
  629. \t\t\t\t\t\t<span class=\"msg-signup text-danger error-color\">
  630. \t\t\t\t\t\t\t{{ flashMessage }}
  631. \t\t\t\t\t\t</span>
  632. \t\t\t\t\t{% endfor %}
  633. \t\t\t\t\t<form
  634. \t\t\t\t\t\tmethod=\"post\" id=\"singupForm\" action=\"/register\">
  635. \t\t\t\t\t\t<!-- <ul class=\"nav nav-pills nav-fill mt-3\">
  636. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                <li class=\"nav-item login-btn\">
  637. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                  <a class=\"nav-link btn btn-custom btn-white\" href=\"#\">LOGIN</a>
  638. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                </li>
  639. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                <li class=\"nav-item signup-btn\">
  640. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                  <a class=\"nav-link btn btn-custom btn-primary\" href=\"#\">Sign up</a>
  641. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                                </li>
  642. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                              </ul> -->
  643. \t\t\t\t\t\t<div class=\"form-group\">
  644. \t\t\t\t\t\t\t<input required type=\"text\" class=\"form-control\" id=\"inputFullName\" name=\"firstname\" placeholder=\"{{'First Name'|trans}}*\">
  645. \t\t\t\t\t\t\t<span class=\"error-fullname text-danger error-color\"></span>
  646. \t\t\t\t\t\t</div>
  647. \t\t\t\t\t\t<div class=\"form-group\">
  648. \t\t\t\t\t\t\t<input required type=\"text\" class=\"form-control\" id=\"inputLastName\" name=\"lastname\" placeholder=\"{{'Last Name'|trans}}*\">
  649. \t\t\t\t\t\t\t<span class=\"error-lastname text-danger error-color\"></span>
  650. \t\t\t\t\t\t</div>
  651. \t\t\t\t\t\t<div class=\"form-row\">
  652. \t\t\t\t\t\t\t<div class=\"form-group col-md-6\">
  653. \t\t\t\t\t\t\t\t<input type=\"tel\" class=\"form-control\" id=\"inputMobileNumber\" name=\"mobilenumber\" placeholder=\"{{'Mobile Number'|trans}}*\">
  654. \t\t\t\t\t\t\t\t<span class=\"error-inputMobileNumber text-danger error-color\"></span>
  655. \t\t\t\t\t\t\t</div>
  656. \t\t\t\t\t\t\t<div class=\"form-group col-md-6\">
  657. \t\t\t\t\t\t\t\t<input required type=\"email\" class=\"form-control\" id=\"inputEmailId\" name=\"email\" placeholder=\"{{'Email Id'|trans}}*\">
  658. \t\t\t\t\t\t\t\t<span class=\"email-error text-danger error-color\"></span>
  659. \t\t\t\t\t\t\t</div>
  660. \t\t\t\t\t\t</div>
  661. \t\t\t\t\t\t<div class=\"form-group\">
  662. \t\t\t\t\t\t\t<select id=\"business\" name=\"business_type\" class=\"form-control custom-select\">
  663. \t\t\t\t\t\t\t\t<option selected value=\"\">{{'Business Type'|trans}}*</option>
  664. \t\t\t\t\t\t\t\t{% for role in roles %}
  665. \t\t\t\t\t\t\t\t\t{% if role.name != \"Normal\" %}
  666. \t\t\t\t\t\t\t\t\t\t<option value=\"{{role.name}}\">{{role.name}}</option>
  667. \t\t\t\t\t\t\t\t\t{% endif %}
  668. \t\t\t\t\t\t\t\t{% endfor %}
  669. \t\t\t\t\t\t\t</select>
  670. \t\t\t\t\t\t\t<span class=\"error-business text-danger error-color\"></span>
  671. \t\t\t\t\t\t</div>
  672. \t\t\t\t\t\t<div class=\"form-group\">
  673. \t\t\t\t\t\t\t<select class=\"form-control\" id=\"country\" name=\"country\">
  674. \t\t\t\t\t\t\t\t<option value=\"\">{{ \"Nationality\"|trans }}*</option>
  675. \t\t\t\t\t\t\t\t{% for countries in countries %}
  676. \t\t\t\t\t\t\t\t\t<option value=\"{{countries}}\">{{countries}}</option>
  677. \t\t\t\t\t\t\t\t{% endfor %}
  678. \t\t\t\t\t\t\t</select>
  679. \t\t\t\t\t\t\t<span class=\"error-country text-danger error-color\"></span>
  680. \t\t\t\t\t\t</div>
  681. \t\t\t\t\t\t<div class=\"form-group\">
  682. \t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"inputBusinessName\" name=\"company\" placeholder=\"{{'Company Name'|trans}}*\">
  683. \t\t\t\t\t\t\t<span class=\"error-inputBusinessName text-danger error-color\"></span>
  684. \t\t\t\t\t\t</div>
  685. \t\t\t\t\t\t<div class=\"form-group\">
  686. \t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"inputJobTitle\" name=\"job_title\" placeholder=\"{{'Job Title'|trans}}*\">
  687. \t\t\t\t\t\t\t<span class=\"error-inputJobTitle text-danger error-color\"></span>
  688. \t\t\t\t\t\t</div>
  689. \t\t\t\t\t\t<div class=\"form-group\">
  690. \t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"inputAddressLine01\" name=\"address1\" value=\"{{'Saudi Arabia'|trans}}\" placeholder=\"Country\" required readonly>
  691. \t\t\t\t\t\t\t<span class=\"error-inputAddressLine01 text-danger error-color\"></span>
  692. \t\t\t\t\t\t</div>
  693. \t\t\t\t\t\t<div class=\"form-group\">
  694. \t\t\t\t\t\t\t{# <input type=\"text\" class=\"form-control\" id=\"inputAddressLine02\" name=\"address2\" placeholder=\"{{'Address Line 02'|trans}}\"> #}
  695. \t\t\t\t\t\t\t<select class=\"form-control\" id=\"inputAddressLine02\" name=\"address2\" required>
  696. \t\t\t\t\t\t\t\t<option value=\"\" selected>{{\"Please Select City\" | trans}}</option>
  697. \t\t\t\t\t\t\t\t<option value=\"Riyadh\">{{ \"Riyadh\" | trans }}</option>
  698. \t\t\t\t\t\t\t\t<option value=\"Jeddah\">{{ \"Jeddah\" | trans }}</option>
  699. \t\t\t\t\t\t\t\t<option value=\"Mecca\">{{ \"Mecca\" | trans }}</option>
  700. \t\t\t\t\t\t\t\t<option value=\"Medina\">{{ \"Medina\" | trans }}</option>
  701. \t\t\t\t\t\t\t\t<option value=\"Dammam\">{{ \"Dammam\" | trans }}</option>
  702. \t\t\t\t\t\t\t\t<option value=\"Al Khobar\">{{ \"Al Khobar\" | trans }}</option>
  703. \t\t\t\t\t\t\t\t<option value=\"Dhahran\">{{ \"Dhahran\" | trans }}</option>
  704. \t\t\t\t\t\t\t\t<option value=\"Jubail\">{{ \"Jubail\" | trans }}</option>
  705. \t\t\t\t\t\t\t\t<option value=\"Abha\">{{ \"Abha\" | trans }}</option>
  706. \t\t\t\t\t\t\t\t<option value=\"Taif\">{{ \"Taif\" | trans }}</option>
  707. \t\t\t\t\t\t\t\t<option value=\"Tabuk\">{{ \"Tabuk\" | trans }}</option>
  708. \t\t\t\t\t\t\t\t<option value=\"Hail\">{{ \"Hail\" | trans }}</option>
  709. \t\t\t\t\t\t\t\t<option value=\"Buraidah\">{{ \"Buraidah\" | trans }}</option>
  710. \t\t\t\t\t\t\t\t<option value=\"Najran\">{{ \"Najran\" | trans }}</option>
  711. \t\t\t\t\t\t\t\t<option value=\"Jizan\">{{ \"Jizan\" | trans }}</option>
  712. \t\t\t\t\t\t\t\t<option value=\"Khamis Mushait\">{{ \"Khamis Mushait\" | trans }}</option>
  713. \t\t\t\t\t\t\t\t<option value=\"Yanbu\">{{ \"Yanbu\" | trans }}</option>
  714. \t\t\t\t\t\t\t\t<option value=\"Al Ahsa\">{{ \"Al Ahsa\" | trans }}</option>
  715. \t\t\t\t\t\t\t\t<option value=\"Qatif\">{{ \"Qatif\" | trans }}</option>
  716. \t\t\t\t\t\t\t\t<option value=\"Rabigh\">{{ \"Rabigh\" | trans }}</option>
  717. \t\t\t\t\t\t\t</select>
  718. \t\t\t\t\t\t</div>
  719. \t\t\t\t\t\t<div class=\"form-group\">
  720. \t\t\t\t\t\t\t<input required type=\"password\" class=\"form-control\" id=\"password1\" name=\"password\" placeholder=\"{{'Password'|trans}}*\" required>
  721. \t\t\t\t\t\t</div>
  722. \t\t\t\t\t\t<div class=\"form-group\">
  723. \t\t\t\t\t\t\t<input required type=\"password\" class=\"form-control\" id=\"password2\" placeholder=\"{{'Confirm Password'|trans}}*\" required>
  724. \t\t\t\t\t\t</div>
  725. \t\t\t\t\t\t<span class=\"password-error text-danger error-color\"></span>
  726. \t\t\t\t\t\t<div class=\"form-group mt-md-4 mb-md-3\">
  727. \t\t\t\t\t\t\t<div class=\"form-check custom-control custom-checkbox\">
  728. \t\t\t\t\t\t\t\t<input class=\"form-check-input custom-control-input\" type=\"checkbox\" id=\"gridCheck\" required>
  729. \t\t\t\t\t\t\t\t<label class=\"form-check-label custom-control-label\" for=\"gridCheck\">
  730. \t\t\t\t\t\t\t\t\t{{'I have read and agree to the'|trans}}
  731. \t\t\t\t\t\t\t\t\t<a href=\"#\">{{'terms & conditions'|trans}}</a>
  732. \t\t\t\t\t\t\t\t</label>
  733. \t\t\t\t\t\t\t\t<span class=\"error-term text-danger error-color\"></span>
  734. \t\t\t\t\t\t\t</div>
  735. \t\t\t\t\t\t\t<div class=\"form-check custom-control custom-checkbox\">
  736. \t\t\t\t\t\t\t\t<input class=\"form-check-input custom-control-input\" type=\"checkbox\" id=\"gridChecknewslatter\" name=\"newslatter\">
  737. \t\t\t\t\t\t\t\t<label class=\"form-check-label custom-control-label\" for=\"gridChecknewslatter\">
  738. \t\t\t\t\t\t\t\t\t{{'Subscribe newsletter'|trans}}
  739. \t\t\t\t\t\t\t\t</label>
  740. \t\t\t\t\t\t\t\t{% for flashMessage in app.session.flashbag.get('newslatter-error') %}
  741. \t\t\t\t\t\t\t\t<span class=\"msg-signup text-danger error-color\">
  742. \t\t\t\t\t\t\t\t\t{{ flashMessage }}
  743. \t\t\t\t\t\t\t\t</span>
  744. \t\t\t\t\t\t\t\t{% endfor %}
  745. \t\t\t\t\t\t\t\t{# <span class=\"error-term text-danger error-color\" ></span> #}
  746. \t\t\t\t\t\t\t</div>
  747. \t\t\t\t\t\t
  748. \t\t\t\t\t\t\t<span class=\"recaptcha text-danger error-color\"></span>
  749. \t\t\t\t\t\t\t{# {% if app.request.getSchemeAndHttpHost() == \"https://goodyculinaire.com\" %}
  750. \t\t\t\t\t\t\t\t<div class=\"g-recaptcha\" data-sitekey=\"6LeRqBEeAAAAAPqLUIzSnAM5EmZrgsPgzf4zLI7P\" data-theme=\"light\" data-size=\"normal\" data-image=\"image\" id=\"recaptcha\"></div>
  751. \t\t\t\t\t\t\t{% elseif app.request.getSchemeAndHttpHost() == \"https://goodycs-dev.test\" %}
  752. \t\t\t\t\t\t\t\t<div class=\"g-recaptcha\" data-sitekey=\"6LdxNsAgAAAAAKdxceNtgNjH6TlrgstHJ-N-zH6C\" data-theme=\"light\" data-size=\"normal\" data-image=\"image\" id=\"recaptcha\"></div>
  753. \t\t\t\t\t\t\t{% elseif app.request.getSchemeAndHttpHost() == \"http://goodycs.com\" %}
  754. \t\t\t\t\t\t\t\t<div class=\"g-recaptcha\" data-sitekey=\"6Le5OcAgAAAAANCPxYj-Tufd8ooE9d92HvhQNyac\" data-theme=\"light\" data-size=\"normal\" data-image=\"image\" id=\"recaptcha\"></div>
  755. \t\t\t\t\t\t\t{% endif %} #}
  756. \t\t\t\t\t\t\t<div class=\"g-recaptcha\" data-sitekey=\"6Le5OcAgAAAAANCPxYj-Tufd8ooE9d92HvhQNyac\" data-theme=\"light\" data-size=\"normal\" data-image=\"image\" id=\"recaptcha\"></div>
  757. \t\t\t\t\t\t\t<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
  758. \t\t\t\t\t\t\t\t{% for flashMessage in app.session.flashbag.get('recaptcha-error') %}
  759. \t\t\t\t\t\t\t\t<span class=\"msg-signup text-danger error-color\">
  760. \t\t\t\t\t\t\t\t\t{{ flashMessage }}
  761. \t\t\t\t\t\t\t\t</span>
  762. \t\t\t\t\t\t\t\t{% endfor %}
  763. \t\t\t\t\t\t</div>
  764. \t\t\t\t\t\t<button class=\"btn btn-custom btn-lg-o-white btn-primary-submit btn-block submit-btn btn-lg-o-yellow-white\">{{'SIGN UP'|trans}}</button>
  765. \t\t\t\t\t</form>
  766. \t\t\t\t</div>
  767. \t\t\t</div>
  768. \t\t</section>
  769. \t\t<!--End Sign up-->
  770. \t</div>
  771. \t<!--End Wrapper-->
  772. \t<style>
  773. \t\t.form-control {
  774. \t\t\tcolor: #495057 !important;
  775. \t\t}
  776. \t</style>
  777. \t<script>
  778. \t\t\$('#inputEmailId').on('keyup change', function () {
  779. \t\t\tlet email = \$('#inputEmailId').val();
  780. \t\t\t\$.ajax({
  781. \t\t\turl: '/validate-email',
  782. \t\t\ttype: \"post\",
  783. \t\t\tdataType: 'json',
  784. \t\t\tdata: {
  785. \t\t\temail: \$(this).val()
  786. \t\t\t},
  787. \t\t\tsuccess: function (data) {
  788. \t\t\tif (data.success) {
  789. \t\t\t\$('.email-error').text(\"{{ 'Email already registerd'|trans }}\");
  790. \t\t\t\$('.submit-btn').attr('disabled', 'disabled');
  791. \t\t\t} else {
  792. \t\t\t\$('.submit-btn').removeAttr('disabled');
  793. \t\t\t\$('.email-error').text('');
  794. \t\t\t}
  795. \t\t\t}
  796. \t\t\t});
  797. \t\t\t})
  798. \t</script>
  799. \t<script>
  800. \t\t\$('.submit-btn').on('click', function (e) { // event.preventDefault();
  801. \t\t\tlet password1 = \$('#password1').val();
  802. \t\t\tlet password2 = \$('#password2').val();
  803. \t\t\tlet inputFullName = \$('#inputFullName').val();
  804. \t\t\tlet inputLastName = \$('#inputLastName').val();
  805. \t\t\tlet business = \$('#business').val();
  806. \t\t\tlet inputMobileNumber = \$('#inputMobileNumber').val();
  807. \t\t\tlet country = \$('#country').val();
  808. \t\t\tlet inputBusinessName = \$('#inputBusinessName').val();
  809. \t\t\tlet inputJobTitle = \$('#inputJobTitle').val();
  810. \t\t\tlet inputAddressLine01 = \$('#inputAddressLine01').val();
  811. \t\t\tlet terms_con = \$('#gridCheck');
  812. \t\t\t// let newslatter           = \$('#gridChecknewslatter');
  813. \t\t\t//console.log(terms_con);
  814. \t\t\t//var response = grecaptcha.getResponse();
  815. \t\t\t//console.log(response);
  816. \t\t\t\$(\".error\").remove();
  817. \t\t\tif (inputFullName == '') {
  818. \t\t\tevent.preventDefault();
  819. \t\t\t\$('.error-fullname').text(\"{{ 'Enter First Name'|trans }}\");
  820. \t\t\t} else if (inputLastName == '') {
  821. \t\t\tevent.preventDefault();
  822. \t\t\t\$('.error-lastname').text(\"{{ 'Enter Last Name'|trans }}\");
  823. \t\t\t} else if (inputMobileNumber == '') {
  824. \t\t\tevent.preventDefault();
  825. \t\t\t\$('.error-inputMobileNumber').text(\"{{ 'Enter Mobile No'|trans }}\");
  826. \t\t\t} else if (business == '') {
  827. \t\t\tevent.preventDefault();
  828. \t\t\t\$('.error-business').text(\"{{ 'Select Business'|trans }}\");
  829. \t\t\t} else if (country == '') {
  830. \t\t\tevent.preventDefault();
  831. \t\t\t\$('.error-country').text(\"{{ 'Select Country'|trans }}\");
  832. \t\t\t} else if (inputBusinessName == '') {
  833. \t\t\tevent.preventDefault();
  834. \t\t\t\$('.error-inputBusinessName').text(\"{{ 'Enter Business Name'|trans }}\");
  835. \t\t\t} else if (inputJobTitle == '') {
  836. \t\t\tevent.preventDefault();
  837. \t\t\t\$('.error-inputJobTitle').text(\"{{ 'Enter Job Title'|trans }}\");
  838. \t\t\t} else if (inputAddressLine01 == '') {
  839. \t\t\tevent.preventDefault();
  840. \t\t\t\$('.error-inputAddressLine01').text(\"{{ 'Enter Address 1'|trans }}\");
  841. \t\t\t} else if (password1 == '' || password2 == '') {
  842. \t\t\tevent.preventDefault();
  843. \t\t\t\$('.password-error').text(\"{{ 'Password at least 8 characters'|trans }}\");
  844. \t\t\t} else if (password1 != password2) {
  845. \t\t\tevent.preventDefault();
  846. \t\t\t\$('.password-error').text(\"{{ 'Password does not matched'|trans }}\");
  847. \t\t\t} else if (password1.length < 8 || password2 < 8) {
  848. \t\t\tevent.preventDefault();
  849. \t\t\t\$('.password-error').text(\"{{ 'Password at least 8 characters'|trans }}\");
  850. \t\t\t} else if (! terms_con.is(\":checked\")) {
  851. \t\t\tevent.preventDefault();
  852. \t\t\t\$('.error-term').text(\"{{ 'Check terms and condition'|trans }}\");
  853. \t\t\t} //else if (response.length == 0) {
  854. \t\t\t//event.preventDefault();
  855. \t\t\t//\$('.recaptcha').text(\"reCaptcha is not valid\");
  856. \t\t\t//} 
  857. \t\t\telse {
  858. \t\t\t\$('.error').text('');
  859. \t\t\t}
  860. \t\t\t});
  861. \t</script>
  862. \t\t</script>
  863. \t\t{% if (app.request.locale =='ar') %}
  864. \t\t\t{% set topMenu =\"/en/signup\" %}
  865. \t\t{% else %}
  866. \t\t\t{% set topMenu =\"/ar/signup\" %}
  867. \t\t{% endif %}
  868. \t\t<script>
  869. \t\t\tvar _TopMenuLink = \"{{ topMenu }}\";
  870. \t\t</script>
  871. \t\t{% endblock %}
  872. ""content/signup.html.twig""/var/www/vhosts/centric.ae/gcs.centric.ae/templates/content/signup.html.twig");
  873.     }
  874. }