<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* uniqskills/catalogue/landing_new/landing_partials/payment.html.twig */
class __TwigTemplate_04dc64b500b63b163085d4854a0da92d extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $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 = []): iterable
{
$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", "uniqskills/catalogue/landing_new/landing_partials/payment.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "uniqskills/catalogue/landing_new/landing_partials/payment.html.twig"));
// line 1
$context["shownProducts"] = 0;
// line 2
$context["country"] = null;
// line 3
$context["productPacksToDisplay"] = [];
// line 4
$context["productVariantsToDisplay"] = [];
// line 6
if (Twig\Extension\CoreExtension::testEmpty((isset($context["productVariants"]) || array_key_exists("productVariants", $context) ? $context["productVariants"] : (function () { throw new RuntimeError('Variable "productVariants" does not exist.', 6, $this->source); })()))) {
// line 7
yield " ";
$context["productVariantsToDisplay"] = Twig\Extension\CoreExtension::merge((isset($context["productVariantsToDisplay"]) || array_key_exists("productVariantsToDisplay", $context) ? $context["productVariantsToDisplay"] : (function () { throw new RuntimeError('Variable "productVariantsToDisplay" does not exist.', 7, $this->source); })()), [["productVariant" => null, "landingProductVariant" => null]]);
}
// line 12
yield "
";
// line 13
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 13, $this->source); })()), "subscriptions", [], "any", false, false, false, 13));
foreach ($context['_seq'] as $context["_key"] => $context["landingProductVariant"]) {
// line 14
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["productVariants"]) || array_key_exists("productVariants", $context) ? $context["productVariants"] : (function () { throw new RuntimeError('Variable "productVariants" does not exist.', 14, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["productVariant"]) {
// line 15
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["productVariant"], "id", [], "any", false, false, false, 15) == CoreExtension::getAttribute($this->env, $this->source, $context["landingProductVariant"], "subscription", [], "any", false, false, false, 15))) {
// line 16
yield " ";
$context["productVariantsToDisplay"] = Twig\Extension\CoreExtension::merge((isset($context["productVariantsToDisplay"]) || array_key_exists("productVariantsToDisplay", $context) ? $context["productVariantsToDisplay"] : (function () { throw new RuntimeError('Variable "productVariantsToDisplay" does not exist.', 16, $this->source); })()), [["productVariant" => // line 17
$context["productVariant"], "landingProductVariant" => // line 18
$context["landingProductVariant"]]]);
// line 20
yield " ";
}
// line 21
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['productVariant'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['landingProductVariant'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
yield "
";
// line 24
if (CoreExtension::getAttribute($this->env, $this->source, ($context["module"] ?? null), "packages", [], "any", true, true, false, 24)) {
// line 25
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 25, $this->source); })()), "packages", [], "any", false, false, false, 25));
foreach ($context['_seq'] as $context["_key"] => $context["landingProductPack"]) {
// line 26
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["productPacks"]) || array_key_exists("productPacks", $context) ? $context["productPacks"] : (function () { throw new RuntimeError('Variable "productPacks" does not exist.', 26, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["productPack"]) {
// line 27
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["productPack"], "id", [], "any", false, false, false, 27) == CoreExtension::getAttribute($this->env, $this->source, $context["landingProductPack"], "package", [], "any", false, false, false, 27))) {
// line 28
yield " ";
$context["productPacksToDisplay"] = Twig\Extension\CoreExtension::merge((isset($context["productPacksToDisplay"]) || array_key_exists("productPacksToDisplay", $context) ? $context["productPacksToDisplay"] : (function () { throw new RuntimeError('Variable "productPacksToDisplay" does not exist.', 28, $this->source); })()), [["productPack" => // line 29
$context["productPack"], "landingProductPack" => // line 30
$context["landingProductPack"]]]);
// line 32
yield " ";
}
// line 33
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['productPack'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['landingProductPack'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 36
yield "
<section class=\"rowSignUp\"
style=\"background-image: url(";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/uniqskills/new_landing/images/rowSignUp_bgBottom-2-min.png"), "img_1600_width"), "html", null, true);
yield ");\">
<a class=\"rowSignUp_link\" name=\"";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 39, $this->source); })()), "type", [], "any", false, false, false, 39), "html", null, true);
yield "-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 39, $this->source); })()), "id", [], "any", false, false, false, 39), "html", null, true);
yield "\"></a>
<div class=\"container\">
<div class=\"row\">
<div class=\"col rowSignUp__header\">
<h2>";
// line 43
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["module"] ?? null), "titleName", [], "any", true, true, false, 43) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 43, $this->source); })()), "titleName", [], "any", false, false, false, 43)))) {
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 43, $this->source); })()), "titleName", [], "any", false, false, false, 43);
} else {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.signInNow"), "html", null, true);
yield "!";
}
yield "</h2>
</div>
</div>
<div class=\"row justify-content-center\">
";
// line 47
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["productPacksToDisplay"]) || array_key_exists("productPacksToDisplay", $context) ? $context["productPacksToDisplay"] : (function () { throw new RuntimeError('Variable "productPacksToDisplay" does not exist.', 47, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 48
yield " ";
$context["landingProductPack"] = CoreExtension::getAttribute($this->env, $this->source, $context["item"], "landingProductPack", [], "array", false, false, false, 48);
// line 49
yield " ";
$context["productPack"] = CoreExtension::getAttribute($this->env, $this->source, $context["item"], "productPack", [], "array", false, false, false, 49);
// line 50
yield " ";
$context["shownProducts"] = ((isset($context["shownProducts"]) || array_key_exists("shownProducts", $context) ? $context["shownProducts"] : (function () { throw new RuntimeError('Variable "shownProducts" does not exist.', 50, $this->source); })()) + 1);
// line 51
yield "
<div class=\"col-12 col-md-6 col-lg-4\">
<div class=\"rowSignUp__modal\">
<div class=\"rowSignUp__modal__header";
// line 54
if ((((isset($context["shownProducts"]) || array_key_exists("shownProducts", $context) ? $context["shownProducts"] : (function () { throw new RuntimeError('Variable "shownProducts" does not exist.', 54, $this->source); })()) % 2) == 1)) {
yield " rowSignUp__modal__header__bluered";
}
yield "\" style=\"position: relative\">
<div class=\"rowSignUp__modal__header__title\">
";
// line 56
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 56, $this->source); })()), "name", [], "any", false, false, false, 56), "html", null, true);
yield "
</div>
<div class=\"rowSignUp__modal__header__description\">
";
// line 59
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["productPack"] ?? null), "type", [], "any", true, true, false, 59) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 60
(isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 60, $this->source); })()), "type", [], "any", false, false, false, 60)))) {
// line 61
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 61, $this->source); })()), "type", [], "any", false, false, false, 61) == "bundle")) {
// line 62
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.packs.productPack"), "html", null, true);
yield "
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 63
(isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 63, $this->source); })()), "type", [], "any", false, false, false, 63) == "cycle")) {
// line 64
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.packs.cycle"), "html", null, true);
yield "
";
}
// line 66
yield " ";
}
// line 67
yield " </div>
";
// line 68
if (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingProductPack"]) || array_key_exists("landingProductPack", $context) ? $context["landingProductPack"] : (function () { throw new RuntimeError('Variable "landingProductPack" does not exist.', 68, $this->source); })()), "packageTitle", [], "any", false, false, false, 68)) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 69
(isset($context["landingProductPack"]) || array_key_exists("landingProductPack", $context) ? $context["landingProductPack"] : (function () { throw new RuntimeError('Variable "landingProductPack" does not exist.', 69, $this->source); })()), "packageDescription", [], "any", false, false, false, 69)))) {
// line 70
yield " <button type=\"button\" class=\"rowSignUp__modal__header__more\">
";
// line 71
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingProductPack"]) || array_key_exists("landingProductPack", $context) ? $context["landingProductPack"] : (function () { throw new RuntimeError('Variable "landingProductPack" does not exist.', 71, $this->source); })()), "packageTitle", [], "any", false, false, false, 71), "html", null, true);
yield "
</button>
<div class=\"rowSignUp__modal__header__info\">
<p>";
// line 74
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingProductPack"]) || array_key_exists("landingProductPack", $context) ? $context["landingProductPack"] : (function () { throw new RuntimeError('Variable "landingProductPack" does not exist.', 74, $this->source); })()), "packageDescription", [], "any", false, false, false, 74);
yield "</p>
<button type=\"button\"
class=\"rowSignUp__modal__header__more rowSignUp__modal__header__more-active\">
";
// line 77
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn.close"), "html", null, true);
yield "
</button>
</div>
";
}
// line 81
yield " </div>
";
// line 82
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 82, $this->source); })()), "courseProductPackItem", [], "any", false, false, false, 82));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["coursePackItem"]) {
// line 83
yield " ";
$context["packCourse"] = Twig\Extension\CoreExtension::first($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["coursePackItem"], "productVariant", [], "any", false, false, false, 83), "courses", [], "any", false, false, false, 83));
// line 84
yield " ";
$context["country"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["coursePackItem"], "productVariant", [], "any", false, false, false, 84), "country", [], "any", false, false, false, 84);
// line 85
yield " <div class=\"rowSignUp__modal__package__header\">
<div class=\"rowSignUp__modal__package__row\">
<span>
";
// line 88
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 88, $this->source); })()), "type", [], "any", false, false, false, 88) == "bundle")) {
// line 89
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product"), "html", null, true);
yield "
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 90
(isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 90, $this->source); })()), "type", [], "any", false, false, false, 90) == "cycle")) {
// line 91
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.packagePart"), "html", null, true);
yield "
";
}
// line 93
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 93), "html", null, true);
yield "
</span>
<span>
";
// line 96
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 96, $this->source); })()), "type", [], "any", false, false, false, 96) == "cycle") && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["coursePackItem"], "description", [], "any", false, false, false, 96)))) {
// line 97
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["coursePackItem"], "description", [], "any", false, false, false, 97), "html", null, true);
yield "
";
} elseif ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, // line 98
$context["coursePackItem"], "price", [], "any", false, false, false, 98))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 99
yield " ";
yield from $this->load("uniqskills/catalogue/landing_price.html.twig", 99)->unwrap()->yield(CoreExtension::merge($context, ["landingPriceNet" => CoreExtension::getAttribute($this->env, $this->source, // line 100
$context["coursePackItem"], "price", [], "any", false, false, false, 100), "landingPriceGross" => CoreExtension::getAttribute($this->env, $this->source, // line 101
$context["coursePackItem"], "price", [], "any", false, false, false, 101), "country" => // line 102
(isset($context["country"]) || array_key_exists("country", $context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.', 102, $this->source); })()), "rate" => "brutto", "showRate" => true]));
// line 106
yield " ";
}
// line 107
yield " </span>
</div>
<span class=\"rowSignUp__modal__package__course\">";
// line 109
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["packCourse"]) || array_key_exists("packCourse", $context) ? $context["packCourse"] : (function () { throw new RuntimeError('Variable "packCourse" does not exist.', 109, $this->source); })()), "name", [], "any", false, false, false, 109), "html", null, true);
yield "</span>
</div>
";
// line 111
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["coursePackItem"], "bulletPoints", [], "any", false, false, false, 111))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 112
yield " <div class=\"rowSignUp__modal__list\" style=\"padding-top: 15px;\">
";
// line 113
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["coursePackItem"], "bulletPoints", [], "any", false, false, false, 113));
foreach ($context['_seq'] as $context["_key"] => $context["point"]) {
// line 114
yield " <div class=\"row rowSignUp__modal__list__element\">
<div ";
// line 115
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 115, $this->source); })()), "request", [], "any", false, false, false, 115), "locale", [], "any", false, false, false, 115) == "en")) {
yield "style=\"padding-left: 20px\"";
}
yield " class=\"col-2 rowSignUp__modal__list__element__left\">
<div class=\"bgs2-rowBenefits_check\"></div>
</div>
<div class=\"col-10 rowSignUp__modal__list__element__right\">
";
// line 119
yield $context["point"];
yield "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['point'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 123
yield " </div>
";
}
// line 125
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['coursePackItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 126
yield " <div class=\"rowSignUp__modal__price\">
<div class=\"row\">
<div class=\"col rowSignUp__modal__price__title\">
";
// line 129
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 129, $this->source); })()), "type", [], "any", false, false, false, 129) == "cycle")) {
// line 130
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.packagePrice"), "html", null, true);
yield "
";
} else {
// line 132
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.price"), "html", null, true);
yield "
";
}
// line 134
yield " </div>
</div>
<div class=\"row\">
<div class=\"col-6 rowSignUp__modal__price__noPadding\">
<div class=\"rowSignUp__modal__price__currentPrice\">
";
// line 139
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 139, $this->source); })()), "type", [], "any", false, false, false, 139) == "cycle")) {
// line 140
yield " ";
$context["firstProductPackItem"] = Twig\Extension\CoreExtension::first($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 140, $this->source); })()), "productPackItem", [], "any", false, false, false, 140));
// line 141
yield " ";
$context["packPriceNet"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["firstProductPackItem"]) || array_key_exists("firstProductPackItem", $context) ? $context["firstProductPackItem"] : (function () { throw new RuntimeError('Variable "firstProductPackItem" does not exist.', 141, $this->source); })()), "productVariant", [], "any", false, false, false, 141), "getFullPrice", ["net"], "method", false, false, false, 141);
// line 142
yield " ";
$context["packPriceGross"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["firstProductPackItem"]) || array_key_exists("firstProductPackItem", $context) ? $context["firstProductPackItem"] : (function () { throw new RuntimeError('Variable "firstProductPackItem" does not exist.', 142, $this->source); })()), "productVariant", [], "any", false, false, false, 142), "getFullPrice", ["gross"], "method", false, false, false, 142);
// line 143
yield " ";
} else {
// line 144
yield " ";
$context["packPriceNet"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 144, $this->source); })()), "totalPriceNet", [], "any", false, false, false, 144);
// line 145
yield " ";
$context["packPriceGross"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 145, $this->source); })()), "totalPriceGross", [], "any", false, false, false, 145);
// line 146
yield " ";
}
// line 147
yield " ";
yield from $this->load("uniqskills/catalogue/landing_price.html.twig", 147)->unwrap()->yield(CoreExtension::merge($context, ["landingPriceNet" => // line 148
(isset($context["packPriceNet"]) || array_key_exists("packPriceNet", $context) ? $context["packPriceNet"] : (function () { throw new RuntimeError('Variable "packPriceNet" does not exist.', 148, $this->source); })()), "landingPriceGross" => // line 149
(isset($context["packPriceGross"]) || array_key_exists("packPriceGross", $context) ? $context["packPriceGross"] : (function () { throw new RuntimeError('Variable "packPriceGross" does not exist.', 149, $this->source); })()), "country" => // line 150
(isset($context["country"]) || array_key_exists("country", $context) ? $context["country"] : (function () { throw new RuntimeError('Variable "country" does not exist.', 150, $this->source); })()), "rate" => "brutto", "showRate" => true]));
// line 154
yield " </div>
</div>
<div class=\"col-6 rowSignUp__modal__price__btnGroup\">
";
// line 157
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 157, $this->source); })()), "request", [], "any", false, false, false, 157), "locale", [], "any", false, false, false, 157) == "en")) {
// line 158
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmUniqskillsContactForm");
yield "\"
class=\"button button-blueBackground rowSignUp__modal__price__btnGroup__btnSignUp\">";
// line 159
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.signInNow"), "html", null, true);
yield "</a>
";
} else {
// line 161
yield " <button class=\"button button-blueBackground addToCart rowSignUp__modal__price__btnGroup__btnSignUp\"
type=\"button\" style=\"border: 0;\"
data-carturl=\"";
// line 163
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmUniqskillsCartIndex");
yield "\"
data-addurl=\"";
// line 164
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmProductCartFrontendAdd");
yield "\"
data-notfound=\"";
// line 165
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmUniqskillsOrderError", ["_locale" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 166
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 166, $this->source); })()), "session", [], "any", false, false, false, 166), "get", ["userLocale", "pl"], "method", false, false, false, 166), "slugCourse" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 166, $this->source); })()), "slug", [], "any", false, false, false, 166)]), "html", null, true);
yield "\"
";
// line 167
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 167, $this->source); })()), "type", [], "any", false, false, false, 167) == "cycle")) {
// line 168
yield " data-cycle=\"1\"
";
}
// line 170
yield " data-productpackid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 170, $this->source); })()), "id", [], "any", false, false, false, 170), "html", null, true);
yield "\"
onclick=\"";
// line 171
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\GoogleAnalyticsExtension']->renderGaDataLayerUS($this->env, "add_to_cart", CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 171, $this->source); })()), "id", [], "any", false, false, false, 171), ["isProductPack" => 1]), "html", null, true);
yield "
";
// line 172
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\GoogleAnalyticsExtension']->renderGA4("add_to_cart", CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 172, $this->source); })()), "id", [], "any", false, false, false, 172), ["isProductPack" => 1]), "html", null, true);
yield "
\"
>
";
// line 175
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["productPack"]) || array_key_exists("productPack", $context) ? $context["productPack"] : (function () { throw new RuntimeError('Variable "productPack" does not exist.', 175, $this->source); })()), "type", [], "any", false, false, false, 175) == "cycle")) {
// line 176
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.nl.joinNow"), "html", null, true);
yield "
";
} else {
// line 178
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.signInNow"), "html", null, true);
yield "
";
}
// line 180
yield " </button>
";
}
// line 182
yield " </div>
</div>
</div>
</div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 188
yield "
";
// line 189
$context["lifetimeLanding"] = false;
// line 190
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["productVariantsToDisplay"]) || array_key_exists("productVariantsToDisplay", $context) ? $context["productVariantsToDisplay"] : (function () { throw new RuntimeError('Variable "productVariantsToDisplay" does not exist.', 190, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 191
yield " ";
if ((( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["item"], "landingProductVariant", [], "array", false, false, false, 191)) || Twig\Extension\CoreExtension::testEmpty((isset($context["productPacksToDisplay"]) || array_key_exists("productPacksToDisplay", $context) ? $context["productPacksToDisplay"] : (function () { throw new RuntimeError('Variable "productPacksToDisplay" does not exist.', 191, $this->source); })()))) && !(isset($context["lifetimeLanding"]) || array_key_exists("lifetimeLanding", $context) ? $context["lifetimeLanding"] : (function () { throw new RuntimeError('Variable "lifetimeLanding" does not exist.', 191, $this->source); })()))) {
// line 192
yield " ";
$context["landingProductVariant"] = CoreExtension::getAttribute($this->env, $this->source, $context["item"], "landingProductVariant", [], "array", false, false, false, 192);
// line 193
yield " ";
$context["productVariant"] = CoreExtension::getAttribute($this->env, $this->source, $context["item"], "productVariant", [], "array", false, false, false, 193);
// line 194
yield " ";
$context["discountCode"] = null;
// line 195
yield " ";
$context["shownProducts"] = ((isset($context["shownProducts"]) || array_key_exists("shownProducts", $context) ? $context["shownProducts"] : (function () { throw new RuntimeError('Variable "shownProducts" does not exist.', 195, $this->source); })()) + 1);
// line 196
yield "
";
// line 197
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["module"] ?? null), "lifeTimeAccess", [], "any", true, true, false, 197) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 197, $this->source); })()), "lifeTimeAccess", [], "any", false, false, false, 197))) {
// line 198
yield " ";
$context["lifetimeLanding"] = true;
// line 199
yield " ";
}
// line 200
yield "
";
// line 201
if (( !Twig\Extension\CoreExtension::testEmpty( // line 202
(isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant", $context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.', 202, $this->source); })())) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant", $context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.', 202, $this->source); })()), "discountCode", [], "any", false, false, false, 202)))) {
// line 203
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 203, $this->source); })()), "coupon", [], "any", false, false, false, 203));
foreach ($context['_seq'] as $context["_key"] => $context["subscriptionCoupon"]) {
// line 204
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["subscriptionCoupon"], "id", [], "any", false, false, false, 204) == CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant", $context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.', 204, $this->source); })()), "discountCode", [], "any", false, false, false, 204))) {
// line 205
yield " ";
$context["discountCode"] = $context["subscriptionCoupon"];
// line 206
yield " ";
}
// line 207
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['subscriptionCoupon'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 208
yield " ";
}
// line 209
yield "
";
// line 210
$context["installmentAmount"] = "";
// line 211
yield "
";
// line 212
if ((( !Twig\Extension\CoreExtension::testEmpty((isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 212, $this->source); })())) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 212, $this->source); })()), "installmentAmount", [], "any", false, false, false, 212) > 1)) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 212, $this->source); })()), "paymentType", [], "any", false, false, false, 212), "slug", [], "any", false, false, false, 212) == "partial-payment"))) {
// line 213
yield " ";
$context["installmentAmount"] = (CoreExtension::getAttribute($this->env, $this->source, (isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 213, $this->source); })()), "installmentAmount", [], "any", false, false, false, 213) . "x");
// line 214
yield " ";
}
// line 215
yield "
<div class=\"col-12 col-md-6 col-lg-4\">
<div class=\"rowSignUp__modal\">
<div class=\"rowSignUp__modal__header";
// line 218
if ((((isset($context["shownProducts"]) || array_key_exists("shownProducts", $context) ? $context["shownProducts"] : (function () { throw new RuntimeError('Variable "shownProducts" does not exist.', 218, $this->source); })()) % 2) == 1)) {
yield " rowSignUp__modal__header__bluered";
}
yield "\">
<div class=\"rowSignUp__modal__header__title\">
";
// line 220
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 220, $this->source); })()), "name", [], "any", false, false, false, 220), "html", null, true);
yield "
</div>
";
// line 222
if (( !Twig\Extension\CoreExtension::testEmpty((isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 222, $this->source); })())) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 222, $this->source); })()), "isRecurringSubscription", [], "any", false, false, false, 222) != 1))) {
// line 223
yield " <div class=\"rowSignUp__modal__header__description\">
";
// line 224
if (((isset($context["installmentAmount"]) || array_key_exists("installmentAmount", $context) ? $context["installmentAmount"] : (function () { throw new RuntimeError('Variable "installmentAmount" does not exist.', 224, $this->source); })()) == "")) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.fullPayment"), "html", null, true);
yield " ";
} else {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.installmentPayment"), "html", null, true);
yield " ";
}
// line 225
yield " </div>
";
}
// line 227
yield " </div>
<div class=\"rowSignUp__modal__list\">
";
// line 229
if (((!array_key_exists("buttonToCountryNotFound", $context)) || (!(isset($context["buttonToCountryNotFound"]) || array_key_exists("buttonToCountryNotFound", $context) ? $context["buttonToCountryNotFound"] : (function () { throw new RuntimeError('Variable "buttonToCountryNotFound" does not exist.', 229, $this->source); })())))) {
// line 230
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["landingProductVariant"] ?? null), "customDescription", [], "any", true, true, false, 230) && !Twig\Extension\CoreExtension::testEmpty(Twig\Extension\CoreExtension::trim(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant", $context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.', 230, $this->source); })()), "customDescription", [], "any", false, false, false, 230))))) {
// line 231
yield " <div style=\"padding: 0 10px;\">
";
// line 232
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant", $context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.', 232, $this->source); })()), "customDescription", [], "any", false, false, false, 232);
yield "
</div>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 234
($context["landingProductVariant"] ?? null), "bullets", [], "any", true, true, false, 234) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant", $context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.', 234, $this->source); })()), "bullets", [], "any", false, false, false, 234)) > 0))) {
// line 235
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant", $context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.', 235, $this->source); })()), "bullets", [], "any", false, false, false, 235));
foreach ($context['_seq'] as $context["_key"] => $context["point"]) {
// line 236
yield " <div class=\"row rowSignUp__modal__list__element\">
<div ";
// line 237
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 237, $this->source); })()), "request", [], "any", false, false, false, 237), "locale", [], "any", false, false, false, 237) == "en")) {
yield "style=\"padding-left: 20px\"";
}
yield " class=\"col-2 rowSignUp__modal__list__element__left\">
<div class=\"bgs2-rowBenefits_check\"></div>
</div>
<div class=\"col-10 rowSignUp__modal__list__element__right\">
";
// line 241
yield CoreExtension::getAttribute($this->env, $this->source, $context["point"], "title", [], "any", false, false, false, 241);
yield "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['point'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 245
yield " ";
} else {
// line 246
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 246, $this->source); })()), "bulletPoints", [], "any", false, false, false, 246));
foreach ($context['_seq'] as $context["_key"] => $context["point"]) {
// line 247
yield " <div ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 247, $this->source); })()), "request", [], "any", false, false, false, 247), "locale", [], "any", false, false, false, 247) == "en")) {
yield "style=\"padding-left: 20px\"";
}
yield " class=\"row rowSignUp__modal__list__element\">
<div class=\"col-2 rowSignUp__modal__list__element__left\">
<div class=\"bgs2-rowBenefits_check\"></div>
</div>
<div class=\"col-10 rowSignUp__modal__list__element__right\">
";
// line 252
yield CoreExtension::getAttribute($this->env, $this->source, $context["point"], "title", [], "any", false, false, false, 252);
yield "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['point'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 256
yield " ";
}
// line 257
yield " ";
} else {
// line 258
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 258, $this->source); })()), "bulletPoints", [], "any", false, false, false, 258));
foreach ($context['_seq'] as $context["_key"] => $context["point"]) {
// line 259
yield " <div ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 259, $this->source); })()), "request", [], "any", false, false, false, 259), "locale", [], "any", false, false, false, 259) == "en")) {
yield "style=\"padding-left: 20px\"";
}
yield " class=\"row rowSignUp__modal__list__element\">
<div class=\"col-2 rowSignUp__modal__list__element__left\">
<div class=\"bgs2-rowBenefits_check\"></div>
</div>
<div class=\"col-10 rowSignUp__modal__list__element__right\">
";
// line 264
yield CoreExtension::getAttribute($this->env, $this->source, $context["point"], "title", [], "any", false, false, false, 264);
yield "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['point'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 268
yield " ";
}
// line 269
yield " </div>
";
// line 271
if (((isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant", $context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.', 271, $this->source); })()) && !(isset($context["lifetimeLanding"]) || array_key_exists("lifetimeLanding", $context) ? $context["lifetimeLanding"] : (function () { throw new RuntimeError('Variable "lifetimeLanding" does not exist.', 271, $this->source); })()))) {
// line 272
yield " <div class=\"rowSignUp__modal__rabat\">
<div class=\"row\">
<div class=\"col-1\"></div>
<div class=\"col-10\">
";
// line 276
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant", $context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.', 276, $this->source); })()), "description", [], "any", false, false, false, 276), "html", null, true);
yield "
</div>
</div>
</div>
";
}
// line 281
yield "
";
// line 282
yield from $this->load("uniqskills/catalogue/landing_new/landing_partials/_payment-price.html.twig", 282)->unwrap()->yield($context);
// line 283
yield "
";
// line 284
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["module"] ?? null), "showContactForm", [], "any", true, true, false, 284) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["module"]) || array_key_exists("module", $context) ? $context["module"] : (function () { throw new RuntimeError('Variable "module" does not exist.', 284, $this->source); })()), "showContactForm", [], "any", false, false, false, 284))) {
// line 285
yield " <div class=\"div-break\"></div>
<div class=\"landingContactFormBox\">
<div class=\"landingContactFormBox--title\">
<span>";
// line 288
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.form.contact.messageInfo1"), "html", null, true);
yield "</span>
<span>";
// line 289
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.form.contact.messageInfo2"), "html", null, true);
yield ":</span>
</div>
<form id=\"landingContactForm\" data-url=\"";
// line 291
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmUniqskillsAjaxLandingContactForm");
yield "\">
<div class=\"form-group\">
<label for=\"landing-contact-name\">";
// line 293
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.form.contact.name"), "html", null, true);
yield ":</label>
<input required name=\"landing-contact-name\" type=\"text\" class=\"form-control\" id=\"landing-contact-name\">
</div>
<div class=\"form-group\">
<label for=\"landing-contact-email\">";
// line 297
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.form.contact.email"), "html", null, true);
yield ":</label>
<input required name=\"landing-contact-email\" type=\"email\" class=\"form-control\" id=\"landing-contact-email\">
</div>
<div class=\"form-group\">
<label for=\"landing-contact-message\">";
// line 301
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.form.contact.body"), "html", null, true);
yield ":</label>
<textarea required name=\"landing-contact-message\" class=\"form-control\" id=\"landing-contact-message\" rows=\"3\"></textarea>
</div>
<div class=\"g-recaptcha\" data-sitekey=\"";
// line 304
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["recaptchaPublicKey"]) || array_key_exists("recaptchaPublicKey", $context) ? $context["recaptchaPublicKey"] : (function () { throw new RuntimeError('Variable "recaptchaPublicKey" does not exist.', 304, $this->source); })()), "html", null, true);
yield "\"></div>
<div id=\"spinner\"></div>
<div class=\"recaptcha-message\"></div>
<div class=\"form-group\" style=\"text-align: center;\">
<button type=\"submit\" class=\"btn landingContactFormBox--submit\">";
// line 308
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.form.contact.submit"), "html", null, true);
yield "</button>
</div>
</form>
</div>
<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
";
}
// line 314
yield " </div>
</div>
";
}
// line 317
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 318
yield " </div>
</div>
</section>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "uniqskills/catalogue/landing_new/landing_partials/payment.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 877 => 318, 863 => 317, 858 => 314, 849 => 308, 842 => 304, 836 => 301, 829 => 297, 822 => 293, 817 => 291, 812 => 289, 808 => 288, 803 => 285, 801 => 284, 798 => 283, 796 => 282, 793 => 281, 785 => 276, 779 => 272, 777 => 271, 773 => 269, 770 => 268, 760 => 264, 749 => 259, 744 => 258, 741 => 257, 738 => 256, 728 => 252, 717 => 247, 712 => 246, 709 => 245, 699 => 241, 690 => 237, 687 => 236, 682 => 235, 680 => 234, 675 => 232, 672 => 231, 669 => 230, 667 => 229, 663 => 227, 659 => 225, 649 => 224, 646 => 223, 644 => 222, 639 => 220, 632 => 218, 627 => 215, 624 => 214, 621 => 213, 619 => 212, 616 => 211, 614 => 210, 611 => 209, 608 => 208, 602 => 207, 599 => 206, 596 => 205, 593 => 204, 588 => 203, 586 => 202, 585 => 201, 582 => 200, 579 => 199, 576 => 198, 574 => 197, 571 => 196, 568 => 195, 565 => 194, 562 => 193, 559 => 192, 556 => 191, 538 => 190, 536 => 189, 533 => 188, 514 => 182, 510 => 180, 504 => 178, 498 => 176, 496 => 175, 490 => 172, 486 => 171, 481 => 170, 477 => 168, 475 => 167, 471 => 166, 470 => 165, 466 => 164, 462 => 163, 458 => 161, 453 => 159, 448 => 158, 446 => 157, 441 => 154, 439 => 150, 438 => 149, 437 => 148, 435 => 147, 432 => 146, 429 => 145, 426 => 144, 423 => 143, 420 => 142, 417 => 141, 414 => 140, 412 => 139, 405 => 134, 399 => 132, 393 => 130, 391 => 129, 386 => 126, 372 => 125, 368 => 123, 358 => 119, 349 => 115, 346 => 114, 342 => 113, 339 => 112, 337 => 111, 332 => 109, 328 => 107, 325 => 106, 323 => 102, 322 => 101, 321 => 100, 319 => 99, 317 => 98, 312 => 97, 310 => 96, 303 => 93, 297 => 91, 295 => 90, 290 => 89, 288 => 88, 283 => 85, 280 => 84, 277 => 83, 260 => 82, 257 => 81, 250 => 77, 244 => 74, 238 => 71, 235 => 70, 233 => 69, 232 => 68, 229 => 67, 226 => 66, 220 => 64, 218 => 63, 213 => 62, 210 => 61, 208 => 60, 207 => 59, 201 => 56, 194 => 54, 189 => 51, 186 => 50, 183 => 49, 180 => 48, 163 => 47, 151 => 43, 142 => 39, 138 => 38, 134 => 36, 127 => 34, 121 => 33, 118 => 32, 116 => 30, 115 => 29, 113 => 28, 110 => 27, 105 => 26, 100 => 25, 98 => 24, 95 => 23, 85 => 21, 82 => 20, 80 => 18, 79 => 17, 77 => 16, 74 => 15, 69 => 14, 65 => 13, 62 => 12, 58 => 7, 56 => 6, 54 => 4, 52 => 3, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set shownProducts = 0 %}
{% set country = null %}
{% set productPacksToDisplay = [] %}
{% set productVariantsToDisplay = [] %}
{# display price in usd if there are no productVariants for current user country #}
{% if productVariants is empty %}
{% set productVariantsToDisplay = productVariantsToDisplay|merge([{
'productVariant': null,
'landingProductVariant': null
}]) %}
{% endif %}
{% for landingProductVariant in module.subscriptions %}
{% for productVariant in productVariants %}
{% if productVariant.id == landingProductVariant.subscription %}
{% set productVariantsToDisplay = productVariantsToDisplay|merge([{
'productVariant': productVariant,
'landingProductVariant': landingProductVariant
}]) %}
{% endif %}
{% endfor %}
{% endfor %}
{% if module.packages is defined %}
{% for landingProductPack in module.packages %}
{% for productPack in productPacks %}
{% if productPack.id == landingProductPack.package %}
{% set productPacksToDisplay = productPacksToDisplay|merge([{
'productPack': productPack,
'landingProductPack': landingProductPack
}]) %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
<section class=\"rowSignUp\"
style=\"background-image: url({{ asset('/uniqskills/new_landing/images/rowSignUp_bgBottom-2-min.png') | imagine_filter('img_1600_width') }});\">
<a class=\"rowSignUp_link\" name=\"{{ module.type }}-{{ module.id }}\"></a>
<div class=\"container\">
<div class=\"row\">
<div class=\"col rowSignUp__header\">
<h2>{% if module.titleName is defined and module.titleName is not empty %}{{ module.titleName|raw }}{% else %}{{ 'uniqskills.landing.signInNow'|trans }}!{% endif %}</h2>
</div>
</div>
<div class=\"row justify-content-center\">
{% for item in productPacksToDisplay %}
{% set landingProductPack = item['landingProductPack'] %}
{% set productPack = item['productPack'] %}
{% set shownProducts = shownProducts + 1 %}
<div class=\"col-12 col-md-6 col-lg-4\">
<div class=\"rowSignUp__modal\">
<div class=\"rowSignUp__modal__header{% if shownProducts % 2 == 1 %} rowSignUp__modal__header__bluered{% endif %}\" style=\"position: relative\">
<div class=\"rowSignUp__modal__header__title\">
{{ productPack.name }}
</div>
<div class=\"rowSignUp__modal__header__description\">
{% if productPack.type is defined
and productPack.type is not empty %}
{% if productPack.type == 'bundle' %}
{{ 'uniqskills.packs.productPack'|trans }}
{% elseif productPack.type == 'cycle' %}
{{ 'uniqskills.packs.cycle'|trans }}
{% endif %}
{% endif %}
</div>
{% if landingProductPack.packageTitle is not empty
and landingProductPack.packageDescription is not empty %}
<button type=\"button\" class=\"rowSignUp__modal__header__more\">
{{ landingProductPack.packageTitle }}
</button>
<div class=\"rowSignUp__modal__header__info\">
<p>{{ landingProductPack.packageDescription|raw }}</p>
<button type=\"button\"
class=\"rowSignUp__modal__header__more rowSignUp__modal__header__more-active\">
{{ 'btn.close'|trans }}
</button>
</div>
{% endif %}
</div>
{% for coursePackItem in productPack.courseProductPackItem %}
{% set packCourse = coursePackItem.productVariant.courses|first %}
{% set country = coursePackItem.productVariant.country %}
<div class=\"rowSignUp__modal__package__header\">
<div class=\"rowSignUp__modal__package__row\">
<span>
{% if productPack.type == 'bundle' %}
{{ 'product'|trans }}
{% elseif productPack.type == 'cycle' %}
{{ 'uniqskills.landing.packagePart'|trans }}
{% endif %}
{{ loop.index }}
</span>
<span>
{% if productPack.type == 'cycle' and coursePackItem.description is not empty %}
{{ coursePackItem.description }}
{% elseif coursePackItem.price is not empty %}
{% include 'uniqskills/catalogue/landing_price.html.twig' with {
'landingPriceNet': coursePackItem.price,
'landingPriceGross': coursePackItem.price,
'country': country,
'rate': 'brutto',
'showRate': true
} %}
{% endif %}
</span>
</div>
<span class=\"rowSignUp__modal__package__course\">{{ packCourse.name }}</span>
</div>
{% if coursePackItem.bulletPoints is not empty %}
<div class=\"rowSignUp__modal__list\" style=\"padding-top: 15px;\">
{% for point in coursePackItem.bulletPoints %}
<div class=\"row rowSignUp__modal__list__element\">
<div {% if app.request.locale == 'en' %}style=\"padding-left: 20px\"{% endif %} class=\"col-2 rowSignUp__modal__list__element__left\">
<div class=\"bgs2-rowBenefits_check\"></div>
</div>
<div class=\"col-10 rowSignUp__modal__list__element__right\">
{{ point|raw }}
</div>
</div>
{% endfor %}
</div>
{% endif %}
{% endfor %}
<div class=\"rowSignUp__modal__price\">
<div class=\"row\">
<div class=\"col rowSignUp__modal__price__title\">
{% if productPack.type == 'cycle' %}
{{ 'uniqskills.landing.packagePrice'|trans }}
{% else %}
{{ 'uniqskills.landing.price'|trans }}
{% endif %}
</div>
</div>
<div class=\"row\">
<div class=\"col-6 rowSignUp__modal__price__noPadding\">
<div class=\"rowSignUp__modal__price__currentPrice\">
{% if productPack.type == 'cycle' %}
{% set firstProductPackItem = productPack.productPackItem|first %}
{% set packPriceNet = firstProductPackItem.productVariant.getFullPrice('net') %}
{% set packPriceGross = firstProductPackItem.productVariant.getFullPrice('gross') %}
{% else %}
{% set packPriceNet = productPack.totalPriceNet %}
{% set packPriceGross = productPack.totalPriceGross %}
{% endif %}
{% include 'uniqskills/catalogue/landing_price.html.twig' with {
'landingPriceNet': packPriceNet,
'landingPriceGross': packPriceGross,
'country': country,
'rate': 'brutto',
'showRate': true
} %}
</div>
</div>
<div class=\"col-6 rowSignUp__modal__price__btnGroup\">
{% if app.request.locale == 'en' %}
<a href=\"{{ path('fmUniqskillsContactForm') }}\"
class=\"button button-blueBackground rowSignUp__modal__price__btnGroup__btnSignUp\">{{ 'uniqskills.landing.signInNow'|trans }}</a>
{% else %}
<button class=\"button button-blueBackground addToCart rowSignUp__modal__price__btnGroup__btnSignUp\"
type=\"button\" style=\"border: 0;\"
data-carturl=\"{{ path('fmUniqskillsCartIndex') }}\"
data-addurl=\"{{ path('fmProductCartFrontendAdd') }}\"
data-notfound=\"{{ path('fmUniqskillsOrderError',
{'_locale': app.session.get('userLocale', 'pl'), 'slugCourse': course.slug}) }}\"
{% if productPack.type == 'cycle' %}
data-cycle=\"1\"
{% endif %}
data-productpackid=\"{{ productPack.id }}\"
onclick=\"{{ gaDataLayerUS('add_to_cart', productPack.id, {'isProductPack': 1}) }}
{{ ga4('add_to_cart', productPack.id, {'isProductPack': 1}) }}
\"
>
{% if productPack.type == 'cycle' %}
{{ 'uniqskills.landing.nl.joinNow'|trans }}
{% else %}
{{ 'uniqskills.landing.signInNow'|trans }}
{% endif %}
</button>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
{% set lifetimeLanding = false %}
{% for item in productVariantsToDisplay %}
{% if (item['landingProductVariant'] is not null or productPacksToDisplay is empty) and not lifetimeLanding %}
{% set landingProductVariant = item['landingProductVariant'] %}
{% set productVariant = item['productVariant'] %}
{% set discountCode = null %}
{% set shownProducts = shownProducts + 1 %}
{% if module.lifeTimeAccess is defined and module.lifeTimeAccess %}
{% set lifetimeLanding = true %}
{% endif %}
{% if
landingProductVariant is not empty and landingProductVariant.discountCode is not empty %}
{% for subscriptionCoupon in productVariant.coupon %}
{% if subscriptionCoupon.id == landingProductVariant.discountCode %}
{% set discountCode = subscriptionCoupon %}
{% endif %}
{% endfor %}
{% endif %}
{% set installmentAmount = '' %}
{% if productVariant is not empty and productVariant.installmentAmount > 1 and productVariant.paymentType.slug == 'partial-payment' %}
{% set installmentAmount = productVariant.installmentAmount ~ 'x' %}
{% endif %}
<div class=\"col-12 col-md-6 col-lg-4\">
<div class=\"rowSignUp__modal\">
<div class=\"rowSignUp__modal__header{% if shownProducts % 2 == 1 %} rowSignUp__modal__header__bluered{% endif %}\">
<div class=\"rowSignUp__modal__header__title\">
{{ course.name }}
</div>
{% if productVariant is not empty and productVariant.isRecurringSubscription != 1 %}
<div class=\"rowSignUp__modal__header__description\">
{% if installmentAmount == '' %} {{ 'uniqskills.landing.fullPayment'|trans }} {% else %} {{ 'uniqskills.landing.installmentPayment'|trans }} {% endif %}
</div>
{% endif %}
</div>
<div class=\"rowSignUp__modal__list\">
{% if (buttonToCountryNotFound is not defined) or (not buttonToCountryNotFound) %}
{% if landingProductVariant.customDescription is defined and landingProductVariant.customDescription|trim is not empty %}
<div style=\"padding: 0 10px;\">
{{ landingProductVariant.customDescription|raw }}
</div>
{% elseif landingProductVariant.bullets is defined and landingProductVariant.bullets|length > 0 %}
{% for point in landingProductVariant.bullets %}
<div class=\"row rowSignUp__modal__list__element\">
<div {% if app.request.locale == 'en' %}style=\"padding-left: 20px\"{% endif %} class=\"col-2 rowSignUp__modal__list__element__left\">
<div class=\"bgs2-rowBenefits_check\"></div>
</div>
<div class=\"col-10 rowSignUp__modal__list__element__right\">
{{ point.title|raw }}
</div>
</div>
{% endfor %}
{% else %}
{% for point in module.bulletPoints %}
<div {% if app.request.locale == 'en' %}style=\"padding-left: 20px\"{% endif %} class=\"row rowSignUp__modal__list__element\">
<div class=\"col-2 rowSignUp__modal__list__element__left\">
<div class=\"bgs2-rowBenefits_check\"></div>
</div>
<div class=\"col-10 rowSignUp__modal__list__element__right\">
{{ point.title|raw }}
</div>
</div>
{% endfor %}
{% endif %}
{% else %}
{% for point in module.bulletPoints %}
<div {% if app.request.locale == 'en' %}style=\"padding-left: 20px\"{% endif %} class=\"row rowSignUp__modal__list__element\">
<div class=\"col-2 rowSignUp__modal__list__element__left\">
<div class=\"bgs2-rowBenefits_check\"></div>
</div>
<div class=\"col-10 rowSignUp__modal__list__element__right\">
{{ point.title|raw }}
</div>
</div>
{% endfor %}
{% endif %}
</div>
{% if landingProductVariant and not lifetimeLanding %}
<div class=\"rowSignUp__modal__rabat\">
<div class=\"row\">
<div class=\"col-1\"></div>
<div class=\"col-10\">
{{ landingProductVariant.description }}
</div>
</div>
</div>
{% endif %}
{% include 'uniqskills/catalogue/landing_new/landing_partials/_payment-price.html.twig' %}
{% if module.showContactForm is defined and module.showContactForm %}
<div class=\"div-break\"></div>
<div class=\"landingContactFormBox\">
<div class=\"landingContactFormBox--title\">
<span>{{ 'uniqskills.form.contact.messageInfo1'|trans }}</span>
<span>{{ 'uniqskills.form.contact.messageInfo2'|trans }}:</span>
</div>
<form id=\"landingContactForm\" data-url=\"{{ path('fmUniqskillsAjaxLandingContactForm') }}\">
<div class=\"form-group\">
<label for=\"landing-contact-name\">{{ 'uniqskills.form.contact.name'|trans }}:</label>
<input required name=\"landing-contact-name\" type=\"text\" class=\"form-control\" id=\"landing-contact-name\">
</div>
<div class=\"form-group\">
<label for=\"landing-contact-email\">{{ 'uniqskills.form.contact.email'|trans }}:</label>
<input required name=\"landing-contact-email\" type=\"email\" class=\"form-control\" id=\"landing-contact-email\">
</div>
<div class=\"form-group\">
<label for=\"landing-contact-message\">{{ 'uniqskills.form.contact.body'|trans }}:</label>
<textarea required name=\"landing-contact-message\" class=\"form-control\" id=\"landing-contact-message\" rows=\"3\"></textarea>
</div>
<div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaPublicKey }}\"></div>
<div id=\"spinner\"></div>
<div class=\"recaptcha-message\"></div>
<div class=\"form-group\" style=\"text-align: center;\">
<button type=\"submit\" class=\"btn landingContactFormBox--submit\">{{ 'uniqskills.form.contact.submit'|trans }}</button>
</div>
</form>
</div>
<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</section>
", "uniqskills/catalogue/landing_new/landing_partials/payment.html.twig", "/app/test/global_order_system/templates/uniqskills/catalogue/landing_new/landing_partials/payment.html.twig");
}
}