<?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-price_modal.html.twig */
class __TwigTemplate_27146897ce31bb00c771b682c9f38336 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-price_modal.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-price_modal.html.twig"));
// line 2
yield " ";
$context["couponParam"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "query", [], "any", false, false, false, 2), "get", ["apicoupon"], "method", false, false, false, 2);
// line 3
yield " ";
$context["activeCoupon"] = (((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["couponParam"]) || array_key_exists("couponParam", $context) ? $context["couponParam"] : (function () { throw new RuntimeError('Variable "couponParam" does not exist.', 3, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ((isset($context["couponParam"]) || array_key_exists("couponParam", $context) ? $context["couponParam"] : (function () { throw new RuntimeError('Variable "couponParam" does not exist.', 3, $this->source); })())) : (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.', 3, $this->source); })()), "discountCode", [], "any", false, false, false, 3)));
// line 5
yield "
";
// line 6
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["couponParam"]) || array_key_exists("couponParam", $context) ? $context["couponParam"] : (function () { throw new RuntimeError('Variable "couponParam" does not exist.', 6, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 7
yield " ";
$context["apiCouponEntity"] = $this->extensions['App\Twig\CouponExtension']->getCouponEntity((isset($context["couponParam"]) || array_key_exists("couponParam", $context) ? $context["couponParam"] : (function () { throw new RuntimeError('Variable "couponParam" does not exist.', 7, $this->source); })()));
// line 8
yield " ";
if ((($tmp = $this->extensions['App\Twig\CouponExtension']->isCouponSuitable((isset($context["apiCouponEntity"]) || array_key_exists("apiCouponEntity", $context) ? $context["apiCouponEntity"] : (function () { throw new RuntimeError('Variable "apiCouponEntity" does not exist.', 8, $this->source); })()), (isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 8, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 9
yield " ";
$context["discountCode"] = (isset($context["apiCouponEntity"]) || array_key_exists("apiCouponEntity", $context) ? $context["apiCouponEntity"] : (function () { throw new RuntimeError('Variable "apiCouponEntity" does not exist.', 9, $this->source); })());
// line 10
yield " ";
}
}
// line 12
yield "
";
// line 14
yield " ";
$context["priceData"] = $this->extensions['App\Twig\PriceExtension']->getVariantPriceDetails(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.', 14, $this->source); })()), "subscription", [], "any", false, false, false, 14), (isset($context["activeCoupon"]) || array_key_exists("activeCoupon", $context) ? $context["activeCoupon"] : (function () { throw new RuntimeError('Variable "activeCoupon" does not exist.', 14, $this->source); })()));
// line 15
yield " ";
if ((( !Twig\Extension\CoreExtension::testEmpty((isset($context["activeCoupon"]) || array_key_exists("activeCoupon", $context) ? $context["activeCoupon"] : (function () { throw new RuntimeError('Variable "activeCoupon" does not exist.', 15, $this->source); })())) && CoreExtension::getAttribute($this->env, $this->source, ($context["priceData"] ?? null), "couponActive", [], "any", true, true, false, 15)) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 15, $this->source); })()), "couponActive", [], "any", false, false, false, 15))) {
// line 16
yield " ";
$context["activePriceNet"] = (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 16, $this->source); })()), "priceAfterCouponNet", [], "any", false, false, false, 16) > 0)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 16, $this->source); })()), "priceAfterCouponNet", [], "any", false, false, false, 16)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 16, $this->source); })()), "priceNet", [], "any", false, false, false, 16)));
// line 17
yield " ";
$context["activePriceGross"] = (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 17, $this->source); })()), "priceAfterCouponGross", [], "any", false, false, false, 17) > 0)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 17, $this->source); })()), "priceAfterCouponGross", [], "any", false, false, false, 17)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 17, $this->source); })()), "priceGross", [], "any", false, false, false, 17)));
// line 18
yield " ";
$context["hasDiscount"] = ( !Twig\Extension\CoreExtension::testEmpty( // line 19
(isset($context["discountCode"]) || array_key_exists("discountCode", $context) ? $context["discountCode"] : (function () { throw new RuntimeError('Variable "discountCode" does not exist.', 19, $this->source); })())) && ((Twig\Extension\CoreExtension::replace( // line 21
(isset($context["activePriceNet"]) || array_key_exists("activePriceNet", $context) ? $context["activePriceNet"] : (function () { throw new RuntimeError('Variable "activePriceNet" does not exist.', 21, $this->source); })()), ["," => "."]) * 1) < (Twig\Extension\CoreExtension::replace(CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 21, $this->source); })()), "priceNet", [], "any", false, false, false, 21), ["," => "."]) * 1)));
// line 23
yield " ";
} else {
// line 24
yield " ";
$context["hasDiscount"] = false;
// line 25
yield " ";
$context["activePriceNet"] = (((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 25, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 25, $this->source); })()), "priceNet", [], "any", false, false, false, 25)) : (0.0));
// line 26
yield " ";
$context["activePriceGross"] = (((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 26, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 26, $this->source); })()), "priceGross", [], "any", false, false, false, 26)) : (0.0));
// line 27
yield " ";
}
// line 29
yield "
<div class=\"rowSignUp__modal__price price-box\" style=\"background-color: ";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 30, $this->source); })()), "html", null, true);
yield ";\">
";
// line 31
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.', 31, $this->source); })())))) {
// line 32
yield " ";
// line 33
yield " <div class=\"switch-net-gross-box text-center\">
<div class=\"switch-net-gross-box-title\">Pokazuj ceny jako:</div>
<div class=\"btn-group btn-group-sm mb-3\" role=\"group\" aria-label=\"Switch net/gross\" style=\"margin-left: 4px; padding: 5px; border: 1px solid #fff\"\">
<button type=\"button\"
class=\"btn btn-light ";
// line 37
yield ((((isset($context["initialType"]) || array_key_exists("initialType", $context) ? $context["initialType"] : (function () { throw new RuntimeError('Variable "initialType" does not exist.', 37, $this->source); })()) == "netto")) ? ("active") : (""));
yield " js-switch-netto\">
netto
</button>
<button type=\"button\"
class=\"btn btn-light ";
// line 41
yield ((((isset($context["initialType"]) || array_key_exists("initialType", $context) ? $context["initialType"] : (function () { throw new RuntimeError('Variable "initialType" does not exist.', 41, $this->source); })()) == "brutto")) ? ("active") : (""));
yield " js-switch-brutto\">
brutto
</button>
</div>
</div>
";
// line 47
yield " <div class=\"row rowSignUp__modal__price__title__row\">
<div class=\"col rowSignUp__modal__price__title\">
";
// line 49
if ((($tmp = (isset($context["lifetimeLanding"]) || array_key_exists("lifetimeLanding", $context) ? $context["lifetimeLanding"] : (function () { throw new RuntimeError('Variable "lifetimeLanding" does not exist.', 49, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 50
yield " ";
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.', 50, $this->source); })()), "description", [], "any", false, false, false, 50), "html", null, true);
yield "
";
} else {
// line 52
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 54
yield " </div>
";
// line 55
if ((((CoreExtension::getAttribute($this->env, $this->source, ($context["landingProductVariant"] ?? null), "tooltipTitle", [], "any", true, true, false, 55) && !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.', 55, $this->source); })()), "tooltipTitle", [], "any", false, false, false, 55))) && CoreExtension::getAttribute($this->env, $this->source, // line 56
($context["landingProductVariant"] ?? null), "tooltipContent", [], "any", true, true, false, 56)) && !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.', 56, $this->source); })()), "tooltipContent", [], "any", false, false, false, 56)))) {
// line 57
yield " <button class=\"col rowSignUp__modal__price__tooltip\" data-tooltip=\"";
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.', 57, $this->source); })()), "subscription", [], "any", false, false, false, 57), "html", null, true);
yield "\">
<span style=\"border-bottom: 1px solid white;\">";
// line 58
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.', 58, $this->source); })()), "tooltipTitle", [], "any", false, false, false, 58), "html", null, true);
yield "</span>
</button>
";
} elseif ((((CoreExtension::getAttribute($this->env, $this->source, // line 60
($context["module"] ?? null), "tooltipTitle", [], "any", true, true, false, 60) && !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.', 60, $this->source); })()), "tooltipTitle", [], "any", false, false, false, 60))) && CoreExtension::getAttribute($this->env, $this->source, // line 61
($context["module"] ?? null), "tooltipContent", [], "any", true, true, false, 61)) && !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.', 61, $this->source); })()), "tooltipContent", [], "any", false, false, false, 61)))) {
// line 62
yield " <button class=\"col rowSignUp__modal__price__tooltip\">
<span style=\"border-bottom: 1px solid white;\">";
// line 63
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.', 63, $this->source); })()), "tooltipTitle", [], "any", false, false, false, 63), "html", null, true);
yield "</span>
</button>
";
}
// line 66
yield " </div>
";
}
// line 68
yield " <div class=\"row ";
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.', 68, $this->source); })()))) {
yield " row-rowSignUp-no-price ";
}
yield "\">
<div class=\"";
// line 69
if ((((isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 69, $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.', 69, $this->source); })()), "isRecurringSubscription", [], "any", false, false, false, 69)) && ((isset($context["lifetimeLanding"]) || array_key_exists("lifetimeLanding", $context) ? $context["lifetimeLanding"] : (function () { throw new RuntimeError('Variable "lifetimeLanding" does not exist.', 69, $this->source); })()) == false))) {
yield "col-12";
} else {
yield "col-6";
}
yield " rowSignUp__modal__price__noPadding\">
";
// line 70
if ((($tmp = (isset($context["hasDiscount"]) || array_key_exists("hasDiscount", $context) ? $context["hasDiscount"] : (function () { throw new RuntimeError('Variable "hasDiscount" does not exist.', 70, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 71
yield " <div class=\"rowSignUp__modal__price__oldPrice\">
";
// line 72
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["installmentAmount"]) || array_key_exists("installmentAmount", $context) ? $context["installmentAmount"] : (function () { throw new RuntimeError('Variable "installmentAmount" does not exist.', 72, $this->source); })()), "html", null, true);
yield "
<div class=\"js-old-netto\" style=\"display: ";
// line 73
yield ((((isset($context["initialType"]) || array_key_exists("initialType", $context) ? $context["initialType"] : (function () { throw new RuntimeError('Variable "initialType" does not exist.', 73, $this->source); })()) == "netto")) ? ("block") : ("none"));
yield ";\">
";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 74, $this->source); })()), "priceNet", [], "any", false, false, false, 74), "html", null, true);
yield " PLN
</div>
<div class=\"js-old-brutto\" style=\"display: ";
// line 76
yield ((((isset($context["initialType"]) || array_key_exists("initialType", $context) ? $context["initialType"] : (function () { throw new RuntimeError('Variable "initialType" does not exist.', 76, $this->source); })()) == "brutto")) ? ("block") : ("none"));
yield ";\">
";
// line 77
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 77, $this->source); })()), "priceGross", [], "any", false, false, false, 77), "html", null, true);
yield " PLN
</div>
</div>
";
}
// line 81
yield "
";
// line 82
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.', 82, $this->source); })()))) {
// line 83
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env, $this->source, (isset($context["buttonToCountryNotFound"]) || array_key_exists("buttonToCountryNotFound", $context) ? $context["buttonToCountryNotFound"] : (function () { throw new RuntimeError('Variable "buttonToCountryNotFound" does not exist.', 83, $this->source); })()), "route", [], "any", false, false, false, 83), ["request" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["buttonToCountryNotFound"]) || array_key_exists("buttonToCountryNotFound", $context) ? $context["buttonToCountryNotFound"] : (function () { throw new RuntimeError('Variable "buttonToCountryNotFound" does not exist.', 83, $this->source); })()), "request", [], "any", false, false, false, 83), "slugCourse" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["buttonToCountryNotFound"]) || array_key_exists("buttonToCountryNotFound", $context) ? $context["buttonToCountryNotFound"] : (function () { throw new RuntimeError('Variable "buttonToCountryNotFound" does not exist.', 83, $this->source); })()), "slugCourse", [], "any", false, false, false, 83)]), "html", null, true);
yield "\" class=\"rowSignUp__modal__buy-access-btn\">
";
// line 84
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.signInNow"), "html", null, true);
yield "
</a><img src=\"\" onerror=\"";
// line 85
yield $this->extensions['App\Twig\GoogleAnalyticsExtension']->renderGaDataLayerUS($this->env, "prod_details_impressions", 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.', 85, $this->source); })()), "id", [], "any", false, false, false, 85), ["class" => "Course"]);
yield "\">
";
} else {
// line 87
yield " ";
if (((((isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 87, $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.', 87, $this->source); })()), "isRecurringSubscription", [], "any", false, false, false, 87)) && ((isset($context["lifetimeLanding"]) || array_key_exists("lifetimeLanding", $context) ? $context["lifetimeLanding"] : (function () { throw new RuntimeError('Variable "lifetimeLanding" does not exist.', 87, $this->source); })()) == false)) && !Twig\Extension\CoreExtension::testEmpty((isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 87, $this->source); })())))) {
// line 88
yield " <div class=\"rowSignUp__modal__price__currentSubPrice\">
<div class=\"js-active-netto\" style=\"display: ";
// line 89
yield ((((isset($context["initialType"]) || array_key_exists("initialType", $context) ? $context["initialType"] : (function () { throw new RuntimeError('Variable "initialType" does not exist.', 89, $this->source); })()) == "netto")) ? ("block") : ("none"));
yield ";\">
";
// line 90
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["activePriceNet"]) || array_key_exists("activePriceNet", $context) ? $context["activePriceNet"] : (function () { throw new RuntimeError('Variable "activePriceNet" does not exist.', 90, $this->source); })()), "html", null, true);
yield " PLN
</div>
<div class=\"js-active-brutto\" style=\"display: ";
// line 92
yield ((((isset($context["initialType"]) || array_key_exists("initialType", $context) ? $context["initialType"] : (function () { throw new RuntimeError('Variable "initialType" does not exist.', 92, $this->source); })()) == "brutto")) ? ("block") : ("none"));
yield ";\">
";
// line 93
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["activePriceGross"]) || array_key_exists("activePriceGross", $context) ? $context["activePriceGross"] : (function () { throw new RuntimeError('Variable "activePriceGross" does not exist.', 93, $this->source); })()), "html", null, true);
yield " PLN
</div>
/ 90 ";
// line 95
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.days"), "html", null, true);
yield "
</div><br>
";
} else {
// line 98
yield " <div class=\"rowSignUp__modal__price__currentPrice\">
";
// line 99
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["installmentAmount"]) || array_key_exists("installmentAmount", $context) ? $context["installmentAmount"] : (function () { throw new RuntimeError('Variable "installmentAmount" does not exist.', 99, $this->source); })()), "html", null, true);
yield "
";
// line 100
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 100, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 101
yield " <div class=\"js-active-netto\" style=\"display: ";
yield ((((isset($context["initialType"]) || array_key_exists("initialType", $context) ? $context["initialType"] : (function () { throw new RuntimeError('Variable "initialType" does not exist.', 101, $this->source); })()) == "netto")) ? ("block") : ("none"));
yield ";\">
";
// line 102
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["activePriceNet"]) || array_key_exists("activePriceNet", $context) ? $context["activePriceNet"] : (function () { throw new RuntimeError('Variable "activePriceNet" does not exist.', 102, $this->source); })()), "html", null, true);
yield " PLN
</div>
<div class=\"js-active-brutto\" style=\"display: ";
// line 104
yield ((((isset($context["initialType"]) || array_key_exists("initialType", $context) ? $context["initialType"] : (function () { throw new RuntimeError('Variable "initialType" does not exist.', 104, $this->source); })()) == "brutto")) ? ("block") : ("none"));
yield ";\">
";
// line 105
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["activePriceGross"]) || array_key_exists("activePriceGross", $context) ? $context["activePriceGross"] : (function () { throw new RuntimeError('Variable "activePriceGross" does not exist.', 105, $this->source); })()), "html", null, true);
yield " PLN
</div>
";
} else {
// line 108
yield " ";
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.', 108, $this->source); })()), "request", [], "any", false, false, false, 108), "locale", [], "any", false, false, false, 108) == "pl")) {
// line 109
yield " ";
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.', 109, $this->source); })()), "defaultPrice", [], "any", false, false, false, 109), "html", null, true);
yield " PLN
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 110
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 110, $this->source); })()), "request", [], "any", false, false, false, 110), "locale", [], "any", false, false, false, 110) == "en-us")) {
// line 111
yield " ";
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.', 111, $this->source); })()), "defaultPrice", [], "any", false, false, false, 111), "html", null, true);
yield " EUR
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 112
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 112, $this->source); })()), "request", [], "any", false, false, false, 112), "locale", [], "any", false, false, false, 112) == "de")) {
// line 113
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(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.', 113, $this->source); })()), "defaultPrice", [], "any", false, false, false, 113), "2"), "html", null, true);
yield " EUR
";
} else {
// line 115
yield " ";
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.', 115, $this->source); })()), "defaultPrice", [], "any", false, false, false, 115), "html", null, true);
yield " USD
";
}
// line 117
yield " ";
}
// line 118
yield " </div>
";
}
// line 120
yield " ";
}
// line 121
yield " ";
if (((((isset($context["hasDiscount"]) || array_key_exists("hasDiscount", $context) ? $context["hasDiscount"] : (function () { throw new RuntimeError('Variable "hasDiscount" does not exist.', 121, $this->source); })()) && (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.', 121, $this->source); })()), "request", [], "any", false, false, false, 121), "locale", [], "any", false, false, false, 121) == "pl")) && CoreExtension::getAttribute($this->env, $this->source, ($context["priceData"] ?? null), "omnibusNet", [], "any", true, true, false, 121)) && CoreExtension::getAttribute($this->env, $this->source, ($context["priceData"] ?? null), "omnibusGross", [], "any", true, true, false, 121))) {
// line 122
yield " <div style=\"margin-left:10px;\" class=\"omnibus-widget\">
<div class=\"js-active-netto\" style=\"display: ";
// line 123
yield ((((isset($context["initialType"]) || array_key_exists("initialType", $context) ? $context["initialType"] : (function () { throw new RuntimeError('Variable "initialType" does not exist.', 123, $this->source); })()) == "netto")) ? ("block") : ("none"));
yield ";\">
Najniższa cena z 30 dni przed promocją: ";
// line 124
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 124, $this->source); })()), "omnibusNet", [], "any", false, false, false, 124), "html", null, true);
yield " zł
</div>
<div class=\"js-active-brutto\" style=\"display: ";
// line 126
yield ((((isset($context["initialType"]) || array_key_exists("initialType", $context) ? $context["initialType"] : (function () { throw new RuntimeError('Variable "initialType" does not exist.', 126, $this->source); })()) == "brutto")) ? ("block") : ("none"));
yield ";\">
Najniższa cena z 30 dni przed promocją: ";
// line 127
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["priceData"]) || array_key_exists("priceData", $context) ? $context["priceData"] : (function () { throw new RuntimeError('Variable "priceData" does not exist.', 127, $this->source); })()), "omnibusGross", [], "any", false, false, false, 127), "html", null, true);
yield " zł
</div>
</div>
";
}
// line 131
yield " </div>
<div class=\"col-6 rowSignUp__modal__price__btnGroup\" style=\"";
// line 132
if ((((isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 132, $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.', 132, $this->source); })()), "isRecurringSubscription", [], "any", false, false, false, 132)) && ((isset($context["lifetimeLanding"]) || array_key_exists("lifetimeLanding", $context) ? $context["lifetimeLanding"] : (function () { throw new RuntimeError('Variable "lifetimeLanding" does not exist.', 132, $this->source); })()) == false))) {
yield "margin:auto;";
}
yield "\">
";
// line 133
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty((isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 133, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 134
yield " ";
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.', 134, $this->source); })()), "request", [], "any", false, false, false, 134), "locale", [], "any", false, false, false, 134) == "en")) {
// line 135
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmUniqskillsContactForm");
yield "\"
class=\"button button-blueBackground rowSignUp__modal__price__btnGroup__btnSignUp\">";
// line 136
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 138
yield " <button
class=\"button button-blueBackground addToCart rowSignUp__modal__price__btnGroup__btnSignUp\"
type=\"button\" style=\"border: 0; background-color: ";
// line 140
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["buttonColor"]) || array_key_exists("buttonColor", $context) ? $context["buttonColor"] : (function () { throw new RuntimeError('Variable "buttonColor" does not exist.', 140, $this->source); })()), "html", null, true);
yield ";\"
";
// line 141
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.', 141, $this->source); })()), "request", [], "any", false, false, false, 141), "locale", [], "any", false, false, false, 141) == "en")) {
// line 142
yield " href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmUniqskillsContactForm");
yield "\"
";
} else {
// line 144
yield " data-carturl=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmUniqskillsCartIndex");
yield "\"
data-addurl=\"";
// line 145
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmProductCartFrontendAdd");
yield "\"
data-notfound=\"";
// line 146
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 147
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 147, $this->source); })()), "session", [], "any", false, false, false, 147), "get", ["userLocale", "pl"], "method", false, false, false, 147), "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.', 147, $this->source); })()), "slug", [], "any", false, false, false, 147)]), "html", null, true);
yield "\"
data-productVariantNoComplete=\"";
// line 148
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 148, $this->source); })()), "productVariantNoComplete", [], "any", false, false, false, 148), "html", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\CartExtension']->getAdditionalVariants((isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 148, $this->source); })())), "html", null, true);
yield "\"
";
// line 149
if ((($tmp = !(null === (isset($context["discountCode"]) || array_key_exists("discountCode", $context) ? $context["discountCode"] : (function () { throw new RuntimeError('Variable "discountCode" does not exist.', 149, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 150
yield " data-coupon=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["discountCode"]) || array_key_exists("discountCode", $context) ? $context["discountCode"] : (function () { throw new RuntimeError('Variable "discountCode" does not exist.', 150, $this->source); })()), "code", [], "any", false, false, false, 150), "html", null, true);
yield "\"
";
}
// line 152
yield " data-lifetimelanding=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["lifetimeLanding"]) || array_key_exists("lifetimeLanding", $context) ? $context["lifetimeLanding"] : (function () { throw new RuntimeError('Variable "lifetimeLanding" does not exist.', 152, $this->source); })()), "html", null, true);
yield "\"
data-locale=\"";
// line 153
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 153, $this->source); })()), "request", [], "any", false, false, false, 153), "locale", [], "any", false, false, false, 153), "html", null, true);
yield "\"
onClick=\"";
// line 154
yield $this->extensions['App\Twig\FacebookPixelExtension']->renderFacebookPixelTrack($this->env, "AddToCart", 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.', 154, $this->source); })()), "id", [], "any", false, false, false, 154));
yield "
";
// line 155
yield $this->extensions['App\Twig\GoogleAnalyticsExtension']->renderGaDataLayerUS($this->env, "add_to_cart", 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.', 155, $this->source); })()), "id", [], "any", false, false, false, 155));
yield "
sendMixPanelEvent('";
// line 156
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("App\\Utils\\Uniqskills\\MixPanel\\MixPanelEvent::ADD_TO_CART"), "html", null, true);
yield "', {
'product_variant_id': ";
// line 157
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 157, $this->source); })()), "id", [], "any", false, false, false, 157), "html", null, true);
yield ",
'product_variant_no': '";
// line 158
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 158, $this->source); })()), "productVariantNoComplete", [], "any", false, false, false, 158), "html", null, true);
yield "',
'product_variant_trade_name': '";
// line 159
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 159, $this->source); })()), "tradeName", [], "any", false, false, false, 159), "html", null, true);
yield "'
})
";
// line 161
yield $this->extensions['App\Twig\GoogleAnalyticsExtension']->renderGA4("add_to_cart", 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.', 161, $this->source); })()), "id", [], "any", false, false, false, 161));
yield "
\"
";
}
// line 164
yield " ><img src=\"\" onerror=\"";
yield $this->extensions['App\Twig\GoogleAnalyticsExtension']->renderGaDataLayerUS($this->env, "prod_details_impression", 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.', 164, $this->source); })()), "id", [], "any", false, false, false, 164), ["class" => "ProductVariant"]);
yield "\">
";
// line 165
if ((($tmp = 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.', 165, $this->source); })()), "isRecurringSubscription", [], "any", false, false, false, 165)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 166
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.subscribe"), "html", null, true);
yield "
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 167
(isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 167, $this->source); })()), "priceNet", [], "any", false, false, false, 167) == 0)) {
// line 168
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.orderAccess"), "html", null, true);
yield "
";
} else {
// line 170
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 172
yield " </button>
";
}
// line 174
yield "
";
}
// line 176
yield "
";
// line 177
if ((( !Twig\Extension\CoreExtension::testEmpty((isset($context["productVariant"]) || array_key_exists("productVariant", $context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.', 177, $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.', 177, $this->source); })()), "isGiftable", [], "any", false, false, false, 177)) && (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.', 177, $this->source); })()), "request", [], "any", false, false, false, 177), "locale", [], "any", false, false, false, 177) != "en"))) {
// line 178
yield " <button
class=\"button button-blueBackground giftButton addToCart rowSignUp__modal__price__btnGroup__btnGift\"
type=\"submit\" style=\"margin-top: 10px;\"
data-carturl=\"";
// line 181
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmUniqskillsCartIndex");
yield "\"
data-addurl=\"";
// line 182
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fmProductCartFrontendAdd");
yield "\"
data-notfound=\"";
// line 183
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 184
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 184, $this->source); })()), "session", [], "any", false, false, false, 184), "get", ["userLocale", "pl"], "method", false, false, false, 184), "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.', 184, $this->source); })()), "slug", [], "any", false, false, false, 184)]), "html", null, true);
yield "\"
data-productVariantNoComplete=\"";
// line 185
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 185, $this->source); })()), "productVariantNoComplete", [], "any", false, false, false, 185), "html", null, true);
yield "\"
data-isGift=\"true\"
";
// line 187
if ((($tmp = !(null === (isset($context["discountCode"]) || array_key_exists("discountCode", $context) ? $context["discountCode"] : (function () { throw new RuntimeError('Variable "discountCode" does not exist.', 187, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 188
yield " data-coupon=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["discountCode"]) || array_key_exists("discountCode", $context) ? $context["discountCode"] : (function () { throw new RuntimeError('Variable "discountCode" does not exist.', 188, $this->source); })()), "code", [], "any", false, false, false, 188), "html", null, true);
yield "\"
";
}
// line 190
yield " data-lifetimelanding=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["lifetimeLanding"]) || array_key_exists("lifetimeLanding", $context) ? $context["lifetimeLanding"] : (function () { throw new RuntimeError('Variable "lifetimeLanding" does not exist.', 190, $this->source); })()), "html", null, true);
yield "\"
data-locale=\"";
// line 191
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 191, $this->source); })()), "request", [], "any", false, false, false, 191), "locale", [], "any", false, false, false, 191), "html", null, true);
yield "\"
onClick=\"";
// line 192
yield $this->extensions['App\Twig\FacebookPixelExtension']->renderFacebookPixelTrack($this->env, "AddToCart", 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.', 192, $this->source); })()), "id", [], "any", false, false, false, 192));
yield " ";
yield $this->extensions['App\Twig\GoogleAnalyticsExtension']->renderGaDataLayerUS($this->env, "add_to_cart", 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.', 192, $this->source); })()), "id", [], "any", false, false, false, 192));
yield "
sendMixPanelEvent('";
// line 193
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("App\\Utils\\Uniqskills\\MixPanel\\MixPanelEvent::ADD_TO_CART"), "html", null, true);
yield "', {
'product_variant_id': ";
// line 194
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 194, $this->source); })()), "id", [], "any", false, false, false, 194), "html", null, true);
yield ",
'product_variant_no': '";
// line 195
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 195, $this->source); })()), "productVariantNoComplete", [], "any", false, false, false, 195), "html", null, true);
yield "',
'product_variant_trade_name': '";
// line 196
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 196, $this->source); })()), "tradeName", [], "any", false, false, false, 196), "html", null, true);
yield "',
'gift': true
})
";
// line 199
yield $this->extensions['App\Twig\GoogleAnalyticsExtension']->renderGA4("add_to_cart", 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.', 199, $this->source); })()), "id", [], "any", false, false, false, 199));
yield "
\">
";
// line 201
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("uniqskills.landing.nl.buyForGift"), "html", null, true);
yield "
</button>
";
}
// line 204
yield " </div>
</div>
</div>";
$__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-price_modal.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 597 => 204, 591 => 201, 586 => 199, 580 => 196, 576 => 195, 572 => 194, 568 => 193, 562 => 192, 558 => 191, 553 => 190, 547 => 188, 545 => 187, 540 => 185, 536 => 184, 535 => 183, 531 => 182, 527 => 181, 522 => 178, 520 => 177, 517 => 176, 513 => 174, 509 => 172, 503 => 170, 497 => 168, 495 => 167, 490 => 166, 488 => 165, 483 => 164, 477 => 161, 472 => 159, 468 => 158, 464 => 157, 460 => 156, 456 => 155, 452 => 154, 448 => 153, 443 => 152, 437 => 150, 435 => 149, 430 => 148, 426 => 147, 425 => 146, 421 => 145, 416 => 144, 410 => 142, 408 => 141, 404 => 140, 400 => 138, 395 => 136, 390 => 135, 387 => 134, 385 => 133, 379 => 132, 376 => 131, 369 => 127, 365 => 126, 360 => 124, 356 => 123, 353 => 122, 350 => 121, 347 => 120, 343 => 118, 340 => 117, 334 => 115, 328 => 113, 326 => 112, 321 => 111, 319 => 110, 314 => 109, 311 => 108, 305 => 105, 301 => 104, 296 => 102, 291 => 101, 289 => 100, 285 => 99, 282 => 98, 276 => 95, 271 => 93, 267 => 92, 262 => 90, 258 => 89, 255 => 88, 252 => 87, 247 => 85, 243 => 84, 238 => 83, 236 => 82, 233 => 81, 226 => 77, 222 => 76, 217 => 74, 213 => 73, 209 => 72, 206 => 71, 204 => 70, 196 => 69, 189 => 68, 185 => 66, 179 => 63, 176 => 62, 174 => 61, 173 => 60, 168 => 58, 163 => 57, 161 => 56, 160 => 55, 157 => 54, 151 => 52, 145 => 50, 143 => 49, 139 => 47, 131 => 41, 124 => 37, 118 => 33, 116 => 32, 114 => 31, 110 => 30, 107 => 29, 104 => 27, 101 => 26, 98 => 25, 95 => 24, 92 => 23, 90 => 21, 89 => 19, 87 => 18, 84 => 17, 81 => 16, 78 => 15, 75 => 14, 72 => 12, 68 => 10, 65 => 9, 62 => 8, 59 => 7, 57 => 6, 54 => 5, 51 => 3, 48 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{# --- Checking for coupon code from parameter --- #}
{% set couponParam = app.request.query.get('apicoupon') %}
{% set activeCoupon = couponParam is not empty ? couponParam : landingProductVariant.discountCode %}
{# --- END OF: Checking for coupon code from parameter --- #}
{% if couponParam is not empty %}
{% set apiCouponEntity = getCouponEntity(couponParam) %}
{% if isCouponSuitable(apiCouponEntity, productVariant) %}
{% set discountCode = apiCouponEntity %}
{% endif %}
{% endif %}
{# --- Calculating prices --- #}
{% set priceData = getVariantPriceDetails(landingProductVariant.subscription, activeCoupon) %}
{% if activeCoupon is not empty and priceData.couponActive is defined and priceData.couponActive %}
{% set activePriceNet = priceData.priceAfterCouponNet > 0 ? priceData.priceAfterCouponNet : priceData.priceNet %}
{% set activePriceGross = priceData.priceAfterCouponGross > 0 ? priceData.priceAfterCouponGross : priceData.priceGross %}
{% set
hasDiscount = discountCode is not empty
and
(activePriceNet|replace({',': '.'}) * 1) < (priceData.priceNet|replace({',': '.'}) * 1)
%}
{% else %}
{% set hasDiscount = false %}
{% set activePriceNet = priceData is not empty ? priceData.priceNet : 0.0 %}
{% set activePriceGross = priceData is not empty ? priceData.priceGross : 0.0 %}
{% endif %}
{# --- END OF: Calculating prices --- #}
<div class=\"rowSignUp__modal__price price-box\" style=\"background-color: {{ backgroundColor }};\">
{% if (buttonToCountryNotFound is not defined) or (not buttonToCountryNotFound) %}
{# --- Switch net/gross --- #}
<div class=\"switch-net-gross-box text-center\">
<div class=\"switch-net-gross-box-title\">Pokazuj ceny jako:</div>
<div class=\"btn-group btn-group-sm mb-3\" role=\"group\" aria-label=\"Switch net/gross\" style=\"margin-left: 4px; padding: 5px; border: 1px solid #fff\"\">
<button type=\"button\"
class=\"btn btn-light {{ initialType == 'netto' ? 'active' : '' }} js-switch-netto\">
netto
</button>
<button type=\"button\"
class=\"btn btn-light {{ initialType == 'brutto' ? 'active' : '' }} js-switch-brutto\">
brutto
</button>
</div>
</div>
{# --- END OF: Switch net/gross --- #}
<div class=\"row rowSignUp__modal__price__title__row\">
<div class=\"col rowSignUp__modal__price__title\">
{% if lifetimeLanding %}
{{ landingProductVariant.description }}
{% else %}
{{ 'uniqskills.landing.price'|trans }}
{% endif %}
</div>
{% if landingProductVariant.tooltipTitle is defined and landingProductVariant.tooltipTitle is not empty
and landingProductVariant.tooltipContent is defined and landingProductVariant.tooltipContent is not empty %}
<button class=\"col rowSignUp__modal__price__tooltip\" data-tooltip=\"{{ landingProductVariant.subscription }}\">
<span style=\"border-bottom: 1px solid white;\">{{ landingProductVariant.tooltipTitle }}</span>
</button>
{% elseif module.tooltipTitle is defined and module.tooltipTitle is not empty
and module.tooltipContent is defined and module.tooltipContent is not empty %}
<button class=\"col rowSignUp__modal__price__tooltip\">
<span style=\"border-bottom: 1px solid white;\">{{ module.tooltipTitle }}</span>
</button>
{% endif %}
</div>
{% endif %}
<div class=\"row {% if buttonToCountryNotFound is defined and buttonToCountryNotFound %} row-rowSignUp-no-price {% endif %}\">
<div class=\"{% if productVariant and productVariant.isRecurringSubscription and lifetimeLanding == false %}col-12{% else %}col-6{% endif %} rowSignUp__modal__price__noPadding\">
{% if hasDiscount %}
<div class=\"rowSignUp__modal__price__oldPrice\">
{{ installmentAmount }}
<div class=\"js-old-netto\" style=\"display: {{ initialType == 'netto' ? 'block' : 'none' }};\">
{{ priceData.priceNet }} PLN
</div>
<div class=\"js-old-brutto\" style=\"display: {{ initialType == 'brutto' ? 'block' : 'none' }};\">
{{ priceData.priceGross }} PLN
</div>
</div>
{% endif %}
{% if buttonToCountryNotFound is defined and buttonToCountryNotFound %}
<a href=\"{{ path(buttonToCountryNotFound.route, { request: buttonToCountryNotFound.request, slugCourse: buttonToCountryNotFound.slugCourse}) }}\" class=\"rowSignUp__modal__buy-access-btn\">
{{ 'uniqskills.landing.signInNow'|trans }}
</a><img src=\"\" onerror=\"{{ gaDataLayerUS('prod_details_impressions', course.id, {'class': 'Course'})|raw }}\">
{% else %}
{% if productVariant and productVariant.isRecurringSubscription and lifetimeLanding == false and priceData is not empty %}
<div class=\"rowSignUp__modal__price__currentSubPrice\">
<div class=\"js-active-netto\" style=\"display: {{ initialType == 'netto' ? 'block' : 'none' }};\">
{{ activePriceNet }} PLN
</div>
<div class=\"js-active-brutto\" style=\"display: {{ initialType == 'brutto' ? 'block' : 'none' }};\">
{{ activePriceGross }} PLN
</div>
/ 90 {{ 'uniqskills.landing.days'|trans }}
</div><br>
{% else %}
<div class=\"rowSignUp__modal__price__currentPrice\">
{{ installmentAmount }}
{% if priceData is not empty %}
<div class=\"js-active-netto\" style=\"display: {{ initialType == 'netto' ? 'block' : 'none' }};\">
{{ activePriceNet }} PLN
</div>
<div class=\"js-active-brutto\" style=\"display: {{ initialType == 'brutto' ? 'block' : 'none' }};\">
{{ activePriceGross }} PLN
</div>
{% else %}
{% if app.request.locale == \"pl\" %}
{{ course.defaultPrice }} PLN
{% elseif app.request.locale == \"en-us\" %}
{{ course.defaultPrice }} EUR
{% elseif app.request.locale == 'de' %}
{{ course.defaultPrice|number_format(\"2\") }} EUR
{% else %}
{{ course.defaultPrice }} USD
{% endif %}
{% endif %}
</div>
{% endif %}
{% endif %}
{% if hasDiscount and app.request.locale == 'pl' and priceData.omnibusNet is defined and priceData.omnibusGross is defined %}
<div style=\"margin-left:10px;\" class=\"omnibus-widget\">
<div class=\"js-active-netto\" style=\"display: {{ initialType == 'netto' ? 'block' : 'none' }};\">
Najniższa cena z 30 dni przed promocją: {{ priceData.omnibusNet }} zł
</div>
<div class=\"js-active-brutto\" style=\"display: {{ initialType == 'brutto' ? 'block' : 'none' }};\">
Najniższa cena z 30 dni przed promocją: {{ priceData.omnibusGross }} zł
</div>
</div>
{% endif %}
</div>
<div class=\"col-6 rowSignUp__modal__price__btnGroup\" style=\"{% if productVariant and productVariant.isRecurringSubscription and lifetimeLanding == false %}margin:auto;{% endif %}\">
{% if productVariant is not empty %}
{% 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; background-color: {{ buttonColor }};\"
{% if app.request.locale == 'en' %}
href=\"{{ path('fmUniqskillsContactForm') }}\"
{% else %}
data-carturl=\"{{ path('fmUniqskillsCartIndex') }}\"
data-addurl=\"{{ path('fmProductCartFrontendAdd') }}\"
data-notfound=\"{{ path('fmUniqskillsOrderError',
{'_locale': app.session.get('userLocale', 'pl'), 'slugCourse': course.slug}) }}\"
data-productVariantNoComplete=\"{{ productVariant.productVariantNoComplete }}{{ getAdditionalVariants(productVariant) }}\"
{% if discountCode is not null %}
data-coupon=\"{{ discountCode.code }}\"
{% endif %}
data-lifetimelanding=\"{{ lifetimeLanding }}\"
data-locale=\"{{ app.request.locale }}\"
onClick=\"{{ fbPixelTrack('AddToCart', productVariant.id)|raw }}
{{ gaDataLayerUS('add_to_cart', productVariant.id)|raw }}
sendMixPanelEvent('{{ constant('App\\\\Utils\\\\Uniqskills\\\\MixPanel\\\\MixPanelEvent::ADD_TO_CART') }}', {
'product_variant_id': {{ productVariant.id }},
'product_variant_no': '{{ productVariant.productVariantNoComplete }}',
'product_variant_trade_name': '{{ productVariant.tradeName }}'
})
{{ ga4('add_to_cart', productVariant.id)|raw }}
\"
{% endif %}
><img src=\"\" onerror=\"{{ gaDataLayerUS('prod_details_impression', productVariant.id, {'class': 'ProductVariant'})|raw }}\">
{% if productVariant.isRecurringSubscription %}
{{ 'uniqskills.landing.subscribe'|trans }}
{% elseif productVariant.priceNet == 0 %}
{{ 'uniqskills.landing.orderAccess'|trans }}
{% else %}
{{ 'uniqskills.landing.signInNow'|trans }}
{% endif %}
</button>
{% endif %}
{% endif %}
{% if productVariant is not empty and productVariant.isGiftable and app.request.locale != 'en' %}
<button
class=\"button button-blueBackground giftButton addToCart rowSignUp__modal__price__btnGroup__btnGift\"
type=\"submit\" style=\"margin-top: 10px;\"
data-carturl=\"{{ path('fmUniqskillsCartIndex') }}\"
data-addurl=\"{{ path('fmProductCartFrontendAdd') }}\"
data-notfound=\"{{ path('fmUniqskillsOrderError',
{'_locale': app.session.get('userLocale', 'pl'), 'slugCourse': course.slug}) }}\"
data-productVariantNoComplete=\"{{ productVariant.productVariantNoComplete }}\"
data-isGift=\"true\"
{% if discountCode is not null %}
data-coupon=\"{{ discountCode.code }}\"
{% endif %}
data-lifetimelanding=\"{{ lifetimeLanding }}\"
data-locale=\"{{ app.request.locale }}\"
onClick=\"{{ fbPixelTrack('AddToCart', productVariant.id)|raw }} {{ gaDataLayerUS('add_to_cart', productVariant.id)|raw }}
sendMixPanelEvent('{{ constant('App\\\\Utils\\\\Uniqskills\\\\MixPanel\\\\MixPanelEvent::ADD_TO_CART') }}', {
'product_variant_id': {{ productVariant.id }},
'product_variant_no': '{{ productVariant.productVariantNoComplete }}',
'product_variant_trade_name': '{{ productVariant.tradeName }}',
'gift': true
})
{{ ga4('add_to_cart', productVariant.id)|raw }}
\">
{{ 'uniqskills.landing.nl.buyForGift'|trans }}
</button>
{% endif %}
</div>
</div>
</div>", "uniqskills/catalogue/landing_new/landing_partials/_payment-price_modal.html.twig", "/app/test/global_order_system/templates/uniqskills/catalogue/landing_new/landing_partials/_payment-price_modal.html.twig");
}
}