var/cache/dev/twig/29/2925565912af1751c607df5c00c65aff.php line 100

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* uniqskills/catalogue/landing_new/landing_partials/_payment-price.html.twig */
  16. class __TwigTemplate_eed546dd38653d407a69beb71f040214 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""uniqskills/catalogue/landing_new/landing_partials/_payment-price.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""uniqskills/catalogue/landing_new/landing_partials/_payment-price.html.twig"));
  38.         // line 1
  39.         if ((((CoreExtension::getAttribute($this->env$this->source, ($context["landingProductVariant"] ?? null), "tooltipTitle", [], "any"truetruefalse1) &&  !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.'1$this->source); })()), "tooltipTitle", [], "any"falsefalsefalse1))) && CoreExtension::getAttribute($this->env$this->source,         // line 2
  40. ($context["landingProductVariant"] ?? null), "tooltipContent", [], "any"truetruefalse2)) &&  !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.'2$this->source); })()), "tooltipContent", [], "any"falsefalsefalse2)))) {
  41.             // line 3
  42.             yield "    <div class=\"rowSignUp__modal__tooltip__box\" id=\"";
  43.             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.'3$this->source); })()), "subscription", [], "any"falsefalsefalse3), "html"nulltrue);
  44.             yield "\">
  45.         <button class=\"rowSignUp__modal__tooltip__close\" data-tooltip=\"";
  46.             // line 4
  47.             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.'4$this->source); })()), "subscription", [], "any"falsefalsefalse4), "html"nulltrue);
  48.             yield "\">X</button>
  49.         <p>";
  50.             // line 5
  51.             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.'5$this->source); })()), "tooltipContent", [], "any"falsefalsefalse5);
  52.             yield "</p>
  53.     </div>
  54. ";
  55.         } elseif ((((CoreExtension::getAttribute($this->env$this->source,         // line 7
  56. ($context["module"] ?? null), "tooltipTitle", [], "any"truetruefalse7) &&  !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.'7$this->source); })()), "tooltipTitle", [], "any"falsefalsefalse7))) && CoreExtension::getAttribute($this->env$this->source,         // line 8
  57. ($context["module"] ?? null), "tooltipContent", [], "any"truetruefalse8)) &&  !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.'8$this->source); })()), "tooltipContent", [], "any"falsefalsefalse8)))) {
  58.             // line 9
  59.             yield "    <div class=\"rowSignUp__modal__tooltip__box\" id=\"";
  60.             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.'9$this->source); })()), "subscription", [], "any"falsefalsefalse9), "html"nulltrue);
  61.             yield "\">
  62.         <button class=\"rowSignUp__modal__tooltip__close\" data-tooltip=\"";
  63.             // line 10
  64.             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.'10$this->source); })()), "subscription", [], "any"falsefalsefalse10), "html"nulltrue);
  65.             yield "\">X</button>
  66.         <p>";
  67.             // line 11
  68.             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.'11$this->source); })()), "tooltipContent", [], "any"falsefalsefalse11);
  69.             yield "</p>
  70.     </div>
  71. ";
  72.         }
  73.         // line 14
  74.         yield "
  75. ";
  76.         // line 15
  77.         $context["rate"] = (((( !Twig\Extension\CoreExtension::testEmpty((isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant"$context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.'15$this->source); })())) && CoreExtension::getAttribute($this->env$this->source, ($context["landingProductVariant"] ?? null), "priceFormat", [], "any"truetruefalse15)) &&  !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.'15$this->source); })()), "priceFormat", [], "any"falsefalsefalse15)))) ? (CoreExtension::getAttribute($this->env$this->source,         // line 16
  78. (isset($context["landingProductVariant"]) || array_key_exists("landingProductVariant"$context) ? $context["landingProductVariant"] : (function () { throw new RuntimeError('Variable "landingProductVariant" does not exist.'16$this->source); })()), "priceFormat", [], "any"falsefalsefalse16)) : ("gross"));
  79.         // line 19
  80.         yield "
  81. ";
  82.         // line 20
  83.         yield from $this->load("uniqskills/catalogue/landing_new/landing_partials/_payment-price_modal.html.twig"20)->unwrap()->yield(CoreExtension::merge($context, ["productVariant" =>         // line 21
  84. (isset($context["productVariant"]) || array_key_exists("productVariant"$context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.'21$this->source); })()), "discountCode" => (((        // line 22
  85. array_key_exists("discountCode"$context) &&  !(null === $context["discountCode"]))) ? ($context["discountCode"]) : (null)), "oldPriceNet" => (((CoreExtension::getAttribute($this->env$this->source,         // line 23
  86. ($context["productVariant"] ?? null), "getFullPrice", ["net"], "method"truetruefalse23) &&  !(null === 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.'23$this->source); })()), "getFullPrice", ["net"], "method"falsefalsefalse23)))) ? (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.'23$this->source); })()), "getFullPrice", ["net"], "method"falsefalsefalse23)) : (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.'23$this->source); })()), "defaultPrice", [], "any"falsefalsefalse23))), "oldPriceGross" => (((CoreExtension::getAttribute($this->env$this->source,         // line 24
  87. ($context["productVariant"] ?? null), "getFullPrice", ["gross"], "method"truetruefalse24) &&  !(null === 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.'24$this->source); })()), "getFullPrice", ["gross"], "method"falsefalsefalse24)))) ? (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.'24$this->source); })()), "getFullPrice", ["gross"], "method"falsefalsefalse24)) : (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.'24$this->source); })()), "defaultPrice", [], "any"falsefalsefalse24))), "currentPriceNet" => (((($tmp =  !(null ===         // line 25
  88. (isset($context["productVariant"]) || array_key_exists("productVariant"$context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.'25$this->source); })()))) && $tmp instanceof Markup ? (string) $tmp $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.'25$this->source); })()), "getFullPriceAfterCoupon", ["net", (isset($context["discountCode"]) || array_key_exists("discountCode"$context) ? $context["discountCode"] : (function () { throw new RuntimeError('Variable "discountCode" does not exist.'25$this->source); })())], "method"falsefalsefalse25)) : (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.'25$this->source); })()), "defaultPrice", [], "any"falsefalsefalse25))), "currentPriceGross" => (((($tmp =  !(null ===         // line 26
  89. (isset($context["productVariant"]) || array_key_exists("productVariant"$context) ? $context["productVariant"] : (function () { throw new RuntimeError('Variable "productVariant" does not exist.'26$this->source); })()))) && $tmp instanceof Markup ? (string) $tmp $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.'26$this->source); })()), "getFullPriceAfterCoupon", ["gross", (isset($context["discountCode"]) || array_key_exists("discountCode"$context) ? $context["discountCode"] : (function () { throw new RuntimeError('Variable "discountCode" does not exist.'26$this->source); })())], "method"falsefalsefalse26)) : (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.'26$this->source); })()), "defaultPrice", [], "any"falsefalsefalse26))), "landingProductVariant" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source,         // line 27
  90. (isset($context["productVariantsToDisplay"]) || array_key_exists("productVariantsToDisplay"$context) ? $context["productVariantsToDisplay"] : (function () { throw new RuntimeError('Variable "productVariantsToDisplay" does not exist.'27$this->source); })()), 0, [], "array"falsefalsefalse27), "landingProductVariant", [], "any"falsefalsefalse27), "backgroundColor" => "#1f1f3d""buttonColor" => "#e72d4b""rate" =>         // line 30
  91. (isset($context["rate"]) || array_key_exists("rate"$context) ? $context["rate"] : (function () { throw new RuntimeError('Variable "rate" does not exist.'30$this->source); })())]));
  92.         // line 32
  93.         yield "
  94. ";
  95.         // line 33
  96.         if ((($tmp = (isset($context["lifetimeLanding"]) || array_key_exists("lifetimeLanding"$context) ? $context["lifetimeLanding"] : (function () { throw new RuntimeError('Variable "lifetimeLanding" does not exist.'33$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  97.             // line 34
  98.             yield "    ";
  99.             if (((CoreExtension::getAttribute($this->env$this->source, ($context["productVariantsToDisplay"] ?? null), 1, [], "array"truetruefalse34) && CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source,             // line 35
  100. ($context["productVariantsToDisplay"] ?? null), 1, [], "array"falsetruefalse35), "productVariant", [], "any"truetruefalse35)) && CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source,             // line 36
  101. ($context["productVariantsToDisplay"] ?? null), 1, [], "array"falsetruefalse36), "landingProductVariant", [], "any"truetruefalse36))) {
  102.                 // line 38
  103.                 yield "        <div class=\"mt-1\"></div>
  104.         ";
  105.                 // line 40
  106.                 $context["secondProductVariant"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["productVariantsToDisplay"]) || array_key_exists("productVariantsToDisplay"$context) ? $context["productVariantsToDisplay"] : (function () { throw new RuntimeError('Variable "productVariantsToDisplay" does not exist.'40$this->source); })()), 1, [], "array"falsefalsefalse40), "productVariant", [], "any"falsefalsefalse40);
  107.                 // line 41
  108.                 yield "        ";
  109.                 $context["discountId"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["productVariantsToDisplay"]) || array_key_exists("productVariantsToDisplay"$context) ? $context["productVariantsToDisplay"] : (function () { throw new RuntimeError('Variable "productVariantsToDisplay" does not exist.'41$this->source); })()), 1, [], "array"falsefalsefalse41), "landingProductVariant", [], "any"falsefalsefalse41), "discountCode", [], "any"falsefalsefalse41);
  110.                 // line 42
  111.                 yield "        ";
  112.                 $context["secondCoupon"] = $this->extensions['App\Twig\CouponExtension']->getCouponForVariant((isset($context["secondProductVariant"]) || array_key_exists("secondProductVariant"$context) ? $context["secondProductVariant"] : (function () { throw new RuntimeError('Variable "secondProductVariant" does not exist.'42$this->source); })()), (isset($context["discountId"]) || array_key_exists("discountId"$context) ? $context["discountId"] : (function () { throw new RuntimeError('Variable "discountId" does not exist.'42$this->source); })()));
  113.                 // line 43
  114.                 yield "        ";
  115.                 $context["secondLandingProductVariant"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["productVariantsToDisplay"]) || array_key_exists("productVariantsToDisplay"$context) ? $context["productVariantsToDisplay"] : (function () { throw new RuntimeError('Variable "productVariantsToDisplay" does not exist.'43$this->source); })()), 1, [], "array"falsefalsefalse43), "landingProductVariant", [], "any"falsefalsefalse43);
  116.                 // line 44
  117.                 yield "
  118.         ";
  119.                 // line 45
  120.                 if ((((CoreExtension::getAttribute($this->env$this->source, ($context["secondLandingProductVariant"] ?? null), "tooltipTitle", [], "any"truetruefalse45) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["secondLandingProductVariant"]) || array_key_exists("secondLandingProductVariant"$context) ? $context["secondLandingProductVariant"] : (function () { throw new RuntimeError('Variable "secondLandingProductVariant" does not exist.'45$this->source); })()), "tooltipTitle", [], "any"falsefalsefalse45))) && CoreExtension::getAttribute($this->env$this->source,                 // line 46
  121. ($context["secondLandingProductVariant"] ?? null), "tooltipContent", [], "any"truetruefalse46)) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source, (isset($context["secondLandingProductVariant"]) || array_key_exists("secondLandingProductVariant"$context) ? $context["secondLandingProductVariant"] : (function () { throw new RuntimeError('Variable "secondLandingProductVariant" does not exist.'46$this->source); })()), "tooltipContent", [], "any"falsefalsefalse46)))) {
  122.                     // line 47
  123.                     yield "            <div class=\"rowSignUp__modal__tooltip__box\" id=\"";
  124.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["secondLandingProductVariant"]) || array_key_exists("secondLandingProductVariant"$context) ? $context["secondLandingProductVariant"] : (function () { throw new RuntimeError('Variable "secondLandingProductVariant" does not exist.'47$this->source); })()), "subscription", [], "any"falsefalsefalse47), "html"nulltrue);
  125.                     yield "\">
  126.                 <button class=\"rowSignUp__modal__tooltip__close\" data-tooltip=\"";
  127.                     // line 48
  128.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["secondLandingProductVariant"]) || array_key_exists("secondLandingProductVariant"$context) ? $context["secondLandingProductVariant"] : (function () { throw new RuntimeError('Variable "secondLandingProductVariant" does not exist.'48$this->source); })()), "subscription", [], "any"falsefalsefalse48), "html"nulltrue);
  129.                     yield "\">X</button>
  130.                 <p>";
  131.                     // line 49
  132.                     yield CoreExtension::getAttribute($this->env$this->source, (isset($context["secondLandingProductVariant"]) || array_key_exists("secondLandingProductVariant"$context) ? $context["secondLandingProductVariant"] : (function () { throw new RuntimeError('Variable "secondLandingProductVariant" does not exist.'49$this->source); })()), "tooltipContent", [], "any"falsefalsefalse49);
  133.                     yield "</p>
  134.             </div>
  135.         ";
  136.                 }
  137.                 // line 52
  138.                 yield "
  139.         ";
  140.                 // line 53
  141.                 yield from $this->load("uniqskills/catalogue/landing_new/landing_partials/_payment-price_modal.html.twig"53)->unwrap()->yield(CoreExtension::merge($context, ["productVariant" =>                 // line 54
  142. (isset($context["secondProductVariant"]) || array_key_exists("secondProductVariant"$context) ? $context["secondProductVariant"] : (function () { throw new RuntimeError('Variable "secondProductVariant" does not exist.'54$this->source); })()), "discountCode" =>                 // line 55
  143. (isset($context["secondCoupon"]) || array_key_exists("secondCoupon"$context) ? $context["secondCoupon"] : (function () { throw new RuntimeError('Variable "secondCoupon" does not exist.'55$this->source); })()), "oldPriceNet" => CoreExtension::getAttribute($this->env$this->source,                 // line 56
  144. (isset($context["secondProductVariant"]) || array_key_exists("secondProductVariant"$context) ? $context["secondProductVariant"] : (function () { throw new RuntimeError('Variable "secondProductVariant" does not exist.'56$this->source); })()), "getFullPrice", ["net"], "method"falsefalsefalse56), "oldPriceGross" => CoreExtension::getAttribute($this->env$this->source,                 // line 57
  145. (isset($context["secondProductVariant"]) || array_key_exists("secondProductVariant"$context) ? $context["secondProductVariant"] : (function () { throw new RuntimeError('Variable "secondProductVariant" does not exist.'57$this->source); })()), "getFullPrice", ["gross"], "method"falsefalsefalse57), "currentPriceNet" => CoreExtension::getAttribute($this->env$this->source,                 // line 58
  146. (isset($context["secondProductVariant"]) || array_key_exists("secondProductVariant"$context) ? $context["secondProductVariant"] : (function () { throw new RuntimeError('Variable "secondProductVariant" does not exist.'58$this->source); })()), "getFullPriceAfterCoupon", ["net", (isset($context["secondCoupon"]) || array_key_exists("secondCoupon"$context) ? $context["secondCoupon"] : (function () { throw new RuntimeError('Variable "secondCoupon" does not exist.'58$this->source); })())], "method"falsefalsefalse58), "currentPriceGross" => CoreExtension::getAttribute($this->env$this->source,                 // line 59
  147. (isset($context["secondProductVariant"]) || array_key_exists("secondProductVariant"$context) ? $context["secondProductVariant"] : (function () { throw new RuntimeError('Variable "secondProductVariant" does not exist.'59$this->source); })()), "getFullPriceAfterCoupon", ["gross", (isset($context["secondCoupon"]) || array_key_exists("secondCoupon"$context) ? $context["secondCoupon"] : (function () { throw new RuntimeError('Variable "secondCoupon" does not exist.'59$this->source); })())], "method"falsefalsefalse59), "landingProductVariant" =>                 // line 60
  148. (isset($context["secondLandingProductVariant"]) || array_key_exists("secondLandingProductVariant"$context) ? $context["secondLandingProductVariant"] : (function () { throw new RuntimeError('Variable "secondLandingProductVariant" does not exist.'60$this->source); })()), "backgroundColor" => "#2e2239""buttonColor" => "#d27742""rate" =>                 // line 63
  149. (isset($context["rate"]) || array_key_exists("rate"$context) ? $context["rate"] : (function () { throw new RuntimeError('Variable "rate" does not exist.'63$this->source); })())]));
  150.                 // line 65
  151.                 yield "    ";
  152.             }
  153.         }
  154.         
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  156.         
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158.         yield from [];
  159.     }
  160.     /**
  161.      * @codeCoverageIgnore
  162.      */
  163.     public function getTemplateName(): string
  164.     {
  165.         return "uniqskills/catalogue/landing_new/landing_partials/_payment-price.html.twig";
  166.     }
  167.     /**
  168.      * @codeCoverageIgnore
  169.      */
  170.     public function isTraitable(): bool
  171.     {
  172.         return false;
  173.     }
  174.     /**
  175.      * @codeCoverageIgnore
  176.      */
  177.     public function getDebugInfo(): array
  178.     {
  179.         return array (  161 => 65,  159 => 63,  158 => 60,  157 => 59,  156 => 58,  155 => 57,  154 => 56,  153 => 55,  152 => 54,  151 => 53,  148 => 52,  142 => 49,  138 => 48,  133 => 47,  131 => 46,  130 => 45,  127 => 44,  124 => 43,  121 => 42,  118 => 41,  116 => 40,  112 => 38,  110 => 36,  109 => 35,  107 => 34,  105 => 33,  102 => 32,  100 => 30,  99 => 27,  98 => 26,  97 => 25,  96 => 24,  95 => 23,  94 => 22,  93 => 21,  92 => 20,  89 => 19,  87 => 16,  86 => 15,  83 => 14,  77 => 11,  73 => 10,  68 => 9,  66 => 8,  65 => 7,  60 => 5,  56 => 4,  51 => 3,  49 => 2,  48 => 1,);
  180.     }
  181.     public function getSourceContext(): Source
  182.     {
  183.         return new Source("{% if landingProductVariant.tooltipTitle is defined and landingProductVariant.tooltipTitle is not empty
  184.     and landingProductVariant.tooltipContent is defined and landingProductVariant.tooltipContent is not empty %}
  185.     <div class=\"rowSignUp__modal__tooltip__box\" id=\"{{ landingProductVariant.subscription }}\">
  186.         <button class=\"rowSignUp__modal__tooltip__close\" data-tooltip=\"{{ landingProductVariant.subscription }}\">X</button>
  187.         <p>{{ landingProductVariant.tooltipContent|raw }}</p>
  188.     </div>
  189. {% elseif module.tooltipTitle is defined and module.tooltipTitle is not empty
  190.     and module.tooltipContent is defined and module.tooltipContent is not empty %}
  191.     <div class=\"rowSignUp__modal__tooltip__box\" id=\"{{ landingProductVariant.subscription }}\">
  192.         <button class=\"rowSignUp__modal__tooltip__close\" data-tooltip=\"{{ landingProductVariant.subscription }}\">X</button>
  193.         <p>{{ module.tooltipContent|raw }}</p>
  194.     </div>
  195. {% endif %}
  196. {% set rate = landingProductVariant is not empty and landingProductVariant.priceFormat is defined and landingProductVariant.priceFormat is not empty
  197.     ? landingProductVariant.priceFormat
  198.     : 'gross'
  199. %}
  200. {% include 'uniqskills/catalogue/landing_new/landing_partials/_payment-price_modal.html.twig' with {
  201.     'productVariant': productVariant,
  202.     'discountCode': discountCode ?? null,
  203.     'oldPriceNet': productVariant.getFullPrice('net') ?? course.defaultPrice,
  204.     'oldPriceGross': productVariant.getFullPrice('gross') ?? course.defaultPrice,
  205.     'currentPriceNet': productVariant is not null ? productVariant.getFullPriceAfterCoupon('net', discountCode) : course.defaultPrice,
  206.     'currentPriceGross': productVariant is not null ? productVariant.getFullPriceAfterCoupon('gross', discountCode) : course.defaultPrice,
  207.     'landingProductVariant': productVariantsToDisplay[0].landingProductVariant,
  208.     'backgroundColor': '#1f1f3d',
  209.     'buttonColor': '#e72d4b',
  210.     'rate': rate
  211. } %}
  212. {% if lifetimeLanding %}
  213.     {% if productVariantsToDisplay[1] is defined
  214.         and productVariantsToDisplay[1].productVariant is defined
  215.         and productVariantsToDisplay[1].landingProductVariant is defined
  216.     %}
  217.         <div class=\"mt-1\"></div>
  218.         {% set secondProductVariant = productVariantsToDisplay[1].productVariant %}
  219.         {% set discountId = productVariantsToDisplay[1].landingProductVariant.discountCode %}
  220.         {% set secondCoupon = getCouponForVariant(secondProductVariant, discountId) %}
  221.         {% set secondLandingProductVariant = productVariantsToDisplay[1].landingProductVariant %}
  222.         {% if secondLandingProductVariant.tooltipTitle is defined and secondLandingProductVariant.tooltipTitle is not empty
  223.             and secondLandingProductVariant.tooltipContent is defined and secondLandingProductVariant.tooltipContent is not empty %}
  224.             <div class=\"rowSignUp__modal__tooltip__box\" id=\"{{ secondLandingProductVariant.subscription }}\">
  225.                 <button class=\"rowSignUp__modal__tooltip__close\" data-tooltip=\"{{ secondLandingProductVariant.subscription }}\">X</button>
  226.                 <p>{{ secondLandingProductVariant.tooltipContent|raw }}</p>
  227.             </div>
  228.         {% endif %}
  229.         {% include 'uniqskills/catalogue/landing_new/landing_partials/_payment-price_modal.html.twig' with {
  230.             'productVariant': secondProductVariant,
  231.             'discountCode': secondCoupon,
  232.             'oldPriceNet': secondProductVariant.getFullPrice('net'),
  233.             'oldPriceGross': secondProductVariant.getFullPrice('gross'),
  234.             'currentPriceNet': secondProductVariant.getFullPriceAfterCoupon('net', secondCoupon),
  235.             'currentPriceGross': secondProductVariant.getFullPriceAfterCoupon('gross', secondCoupon),
  236.             'landingProductVariant': secondLandingProductVariant,
  237.             'backgroundColor': '#2e2239',
  238.             'buttonColor': '#d27742',
  239.             'rate': rate
  240.         } %}
  241.     {% endif %}
  242. {% endif %}""uniqskills/catalogue/landing_new/landing_partials/_payment-price.html.twig""/app/test/global_order_system/templates/uniqskills/catalogue/landing_new/landing_partials/_payment-price.html.twig");
  243.     }
  244. }