<?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;
/* @theme/enquiry/enquiry.html.twig */
class __TwigTemplate_00615fd2210cfbf6db280dcd478ca288 extends 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;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/enquiry/enquiry.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/enquiry/enquiry.html.twig"));
// line 1
echo "
<section class=\"green-img mb-12\">
<div class=\"container\">
<div class=\"row\">
<div class=\"xl:col-8 lg:col-7 flex flex-col justify-between\">
<div class=\"mb-8 lg:mb-0 lg:mt-24\">
";
// line 7
echo $this->env->getFunction('forceRenderHtmlBlock')->getCallable()("Form Text");
echo "
</div>
<div>
<h3>Trusted by</h3>
";
// line 11
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\LogosDefaultController::slider"));
echo "
</div>
</div>
<div class=\"xl:col-4 lg:col-5 mt-8 lg:mt-0\">
<div class=\"bg-primary rounded-3xl p-8 shadowed\">
";
// line 16
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 16, $this->source); })())) {
// line 17
echo " <p class=\"error-message !mb-6\">";
echo twig_escape_filter($this->env, (isset($context["errorMessage"]) || array_key_exists("errorMessage", $context) ? $context["errorMessage"] : (function () { throw new RuntimeError('Variable "errorMessage" does not exist.', 17, $this->source); })()), "html", null, true);
echo "</p>
";
}
// line 19
echo "
";
// line 20
if ((isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 20, $this->source); })())) {
// line 21
echo " <p class=\"success-message !mb-6\">Thank you for your enquiry.</p>
";
} else {
// line 23
echo " <form method=\"post\" id=\"enquiry_form\">
";
// line 24
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 24, $this->source); })()), 'widget');
echo "
<button type=\"submit\" class=\"btn btn-form g-recaptcha mb-8\" data-sitekey=\"";
// line 25
echo twig_escape_filter($this->env, (isset($context["recaptcha_public"]) || array_key_exists("recaptcha_public", $context) ? $context["recaptcha_public"] : (function () { throw new RuntimeError('Variable "recaptcha_public" does not exist.', 25, $this->source); })()), "html", null, true);
echo "\" data-callback='onSubmit'>Send</button>
<p class=\"text-sm\">By submitting your details, you agree for one of our team to contact you.</p>
";
// line 27
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 27, $this->source); })()), 'form_end');
echo "
";
}
// line 29
echo " </div>
</div>
</div>
</div>
</section>
<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
<script>
function onSubmit(token) {
document.getElementById(\"enquiry_form\").submit();
}
</script>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@theme/enquiry/enquiry.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 100 => 29, 95 => 27, 90 => 25, 86 => 24, 83 => 23, 79 => 21, 77 => 20, 74 => 19, 68 => 17, 66 => 16, 58 => 11, 51 => 7, 43 => 1,);
}
public function getSourceContext()
{
return new Source("
<section class=\"green-img mb-12\">
<div class=\"container\">
<div class=\"row\">
<div class=\"xl:col-8 lg:col-7 flex flex-col justify-between\">
<div class=\"mb-8 lg:mb-0 lg:mt-24\">
{{ forceRenderHtmlBlock('Form Text')|raw }}
</div>
<div>
<h3>Trusted by</h3>
{{ render(controller('App\\\\Controller\\\\LogosDefaultController::slider')) }}
</div>
</div>
<div class=\"xl:col-4 lg:col-5 mt-8 lg:mt-0\">
<div class=\"bg-primary rounded-3xl p-8 shadowed\">
{% if error %}
<p class=\"error-message !mb-6\">{{errorMessage}}</p>
{% endif %}
{% if success %}
<p class=\"success-message !mb-6\">Thank you for your enquiry.</p>
{% else %}
<form method=\"post\" id=\"enquiry_form\">
{{ form_widget(form) }}
<button type=\"submit\" class=\"btn btn-form g-recaptcha mb-8\" data-sitekey=\"{{ recaptcha_public }}\" data-callback='onSubmit'>Send</button>
<p class=\"text-sm\">By submitting your details, you agree for one of our team to contact you.</p>
{{ form_end(form) }}
{% endif %}
</div>
</div>
</div>
</div>
</section>
<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
<script>
function onSubmit(token) {
document.getElementById(\"enquiry_form\").submit();
}
</script>
", "@theme/enquiry/enquiry.html.twig", "/var/www/html/k/kasscaffolding/templates/themes/theme/enquiry/enquiry.html.twig");
}
}