<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @templates/Front/vignette.html.twig */
class __TwigTemplate_d62f277031f1d5530de0e4200389f2aa8d48bfc58e77cb813348acf14722dc55 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'head' => [$this, 'block_head'],
'title' => [$this, 'block_title'],
'metatags' => [$this, 'block_metatags'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'header' => [$this, 'block_header'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@templates/Front/Shop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@templates/Front/vignette.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@templates/Front/vignette.html.twig"));
$this->parent = $this->loadTemplate("@templates/Front/Shop/layout.html.twig", "@templates/Front/vignette.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_head($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 4
echo " <head>
";
// line 5
$this->displayBlock('title', $context, $blocks);
// line 6
echo "
";
// line 7
$this->displayBlock('metatags', $context, $blocks);
// line 10
echo " <meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta http-equiv=\"Content-Language\" content=\"ro\">
<meta name=\"google-site-verification\" content=\"BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ\">
<meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
<meta name=\"keywords\" content=\"";
// line 15
if ((twig_length_filter($this->env, (isset($context["vignetteKeywordsForSeo"]) || array_key_exists("vignetteKeywordsForSeo", $context) ? $context["vignetteKeywordsForSeo"] : (function () { throw new RuntimeError('Variable "vignetteKeywordsForSeo" does not exist.', 15, $this->source); })())) > 0)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["vignetteKeywordsForSeo"]) || array_key_exists("vignetteKeywordsForSeo", $context) ? $context["vignetteKeywordsForSeo"] : (function () { throw new RuntimeError('Variable "vignetteKeywordsForSeo" does not exist.', 15, $this->source); })()), "content", [], "any", false, false, false, 15), "html", null, true);
}
echo "\"/>
";
// line 17
$this->displayBlock('stylesheets', $context, $blocks);
// line 24
echo "
";
// line 25
echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.head"]);
echo "
";
// line 26
$this->displayBlock('javascripts', $context, $blocks);
// line 64
echo " </head>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo " <title>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.calculator_vignette_price"), "html", null, true);
echo " | Roviniete.ro</title> ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 8
echo " <meta name=\"description\" content=\"";
if ((twig_length_filter($this->env, (isset($context["vignetteDescriptionForSeo"]) || array_key_exists("vignetteDescriptionForSeo", $context) ? $context["vignetteDescriptionForSeo"] : (function () { throw new RuntimeError('Variable "vignetteDescriptionForSeo" does not exist.', 8, $this->source); })())) > 0)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["vignetteDescriptionForSeo"]) || array_key_exists("vignetteDescriptionForSeo", $context) ? $context["vignetteDescriptionForSeo"] : (function () { throw new RuntimeError('Variable "vignetteDescriptionForSeo" does not exist.', 8, $this->source); })()), "content", [], "any", false, false, false, 8), "html", null, true);
}
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 17
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 18
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/homepage.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/bootstrap.min.css"), "html", null, true);
echo "\">
";
// line 20
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("bootstrap-fix", null, "bootstrapTheme");
echo "
<link rel=\"stylesheet\" href=\"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/vignette_shop.v1.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 22
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/css/bs-stepper.css"), "html", null, true);
echo "\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 26
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 27
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/sentry-bundle.min.js"), "html", null, true);
echo "\"></script>
<script>
if (typeof Sentry !== 'undefined') {
Sentry.init({
dsn: \"";
// line 31
echo twig_escape_filter($this->env, (isset($context["sentry_dsn"]) || array_key_exists("sentry_dsn", $context) ? $context["sentry_dsn"] : (function () { throw new RuntimeError('Variable "sentry_dsn" does not exist.', 31, $this->source); })()), "html", null, true);
echo "\",
integrations: [new Sentry.Integrations.TryCatch({
eventTarget: false,
})]
});
}
MESSAGE_INVALID_REGISTRATION_PLATE = '";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.invalid_registration_plate"), "html", null, true);
echo "';
MESSAGE_INVALID_VIN = '";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.invalid_vin"), "html", null, true);
echo "'
let roadAssistanceValidFrom = null;
</script>
<script src=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/jquery.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/js/bs-stepper.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/jquery-ui.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 44
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/popper.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/bootstrap.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 46
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/moment.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/jquery.validate.min.js"), "html", null, true);
echo "\"></script>
";
// line 48
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("vignette");
echo "
<script src=\"";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/js/leftmenu.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/fosjsrouting/js/router.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/shop/js/_bootstrap_select.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 52
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
echo "\"></script>
<script>
dataLayer = [];
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','";
// line 61
echo twig_escape_filter($this->env, (isset($context["gtm_code"]) || array_key_exists("gtm_code", $context) ? $context["gtm_code"] : (function () { throw new RuntimeError('Variable "gtm_code" does not exist.', 61, $this->source); })()), "html", null, true);
echo "');</script>
<!-- End Google Tag Manager -->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 67
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 68
echo " <!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id=";
// line 69
echo twig_escape_filter($this->env, (isset($context["gtm_code"]) || array_key_exists("gtm_code", $context) ? $context["gtm_code"] : (function () { throw new RuntimeError('Variable "gtm_code" does not exist.', 69, $this->source); })()), "html", null, true);
echo "\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
";
// line 72
$this->loadTemplate("@templates/AdminCustom/Layout/loading.html.twig", "@templates/Front/vignette.html.twig", 72)->display(twig_array_merge($context, ["showLoading" => true]));
// line 73
echo " <div class=\"custom-container\">
<div style=\"max-width: 100%\">
<div class=\"bg-white\">
<header>
";
// line 77
$this->loadTemplate("@templates/Front/Shop/v2/_header.html.twig", "@templates/Front/vignette.html.twig", 77)->display($context);
// line 78
echo "
";
// line 79
echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.layout.after_header"]);
echo "
</header>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 86
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 87
echo " <div id=\"loadingDiv\" class=\"loading d-none\">
<div class=\"card w-50\">
<div class=\"card-body bg-loading-card\">
<img src=\"";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/spinner.gif"), "html", null, true);
echo "\"
style=\"width: 50px; pointer-events: none\"/>
<h5>Se verifica datele</h5>
</div>
</div>
</div>
<div class=\"d-inline-flex mx-3\">
<a href=\"";
// line 97
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
echo "\" class=\"section text-primary\" style=\"font-size: 0.8em;\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html", null, true);
echo "</a>
<div class=\"divider\"> /</div>
<small class=\"section active\">";
// line 99
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignettes"), "html", null, true);
echo "</small>
</div>
";
// line 101
if (twig_get_attribute($this->env, $this->source, (isset($context["lastProductStatus"]) || array_key_exists("lastProductStatus", $context) ? $context["lastProductStatus"] : (function () { throw new RuntimeError('Variable "lastProductStatus" does not exist.', 101, $this->source); })()), "vignetteStatus", [], "any", false, false, false, 101)) {
// line 102
echo " <h2 class=\"mx-3\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.calculator_vignette_price"), "html", null, true);
echo "</h2>
";
// line 103
$context["smsPrice"] = twig_get_attribute($this->env, $this->source, (isset($context["sms_price_ron"]) || array_key_exists("sms_price_ron", $context) ? $context["sms_price_ron"] : (function () { throw new RuntimeError('Variable "sms_price_ron" does not exist.', 103, $this->source); })()), "calculateSmsPrice", [], "any", false, false, false, 103);
// line 104
echo " <script type=\"text/javascript\">
var one_day = '";
// line 105
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.1_day")), "html", null, true);
echo "';
var seven_days = '";
// line 106
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.7_days")), "html", null, true);
echo "';
var ten_days = '";
// line 107
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.10_days")), "html", null, true);
echo "';
var thirty_days = '";
// line 108
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.30_days")), "html", null, true);
echo "';
var sixty_days = '";
// line 109
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.60_days")), "html", null, true);
echo "';
var ninety_days = '";
// line 110
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.90_days")), "html", null, true);
echo "';
var twelve_months = '";
// line 111
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months")), "html", null, true);
echo "';
var locale = '";
// line 112
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (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), "getLocale", [], "method", false, false, false, 112), "html", null, true);
echo "';
</script>
";
// line 114
$context["oldValues"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 114, $this->source); })()), "request", [], "any", false, false, false, 114), "request", [], "any", false, false, false, 114);
// line 115
echo "
<div id=\"specialErrors\" class=\"alert alert-warning alert-dismissible fade show d-none\" role=\"alert\">
<div class=\"header text-center\">
<h2>";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.warning"), "html", null, true);
echo "</h2>
</div>
<p>
<h5 class=\"text-center text-primary vignette-already-bought d-none\">
";
// line 122
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignette_available_for_choosen_date"), "html", null, true);
echo "
</h5>
<h5 class=\"special-error\">
</h5>
<a class=\"text-center\">
</a>
</p>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div id=\"categoryError\" class=\"alert alert-warning fade show d-none\" role=\"alert\">
<div class=\"header text-center\">
<h2>";
// line 135
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.error"), "html", null, true);
echo "</h2>
</div>
<p>
<h5 class=\"text-center text-primary\">
";
// line 139
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignette_category_error"), "html", null, true);
echo "
</h5>
<h5 class=\"special-error\">
</h5>
<a class=\"text-center\">
</a>
</p>
</div>
<div id=\"divNoSpecialCharacters\" class=\"alert alert-warning d-none\" role=\"alert\">
";
// line 148
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.no_special_characters_allowed"), "html", null, true);
echo "
</div>
<div style=\"margin-bottom: 100px;\">
<div id=\"stepperForm\" class=\"bs-stepper linear\">
<div class=\"row\" style=\"padding: 0 20px 20px;\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div id=\"vignetteStep1Summary\" class=\"card d-none my-3\" onclick=\"stepper.previous()\">
<div class=\"card-body d-flex justify-content-between align-items-center\">
<div class=\"d-inline-flex justify-content-center align-items-center\">
<img src=\"";
// line 157
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_check_small_dark.png"), "html", null, true);
echo "\" style=\"width: 30px\"/>
<h3>
<a class=\"font-weight-bolder text-primary\">";
// line 159
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignette_details"), "html", null, true);
echo ":</a>
<a class=\"font-weight-bolder text-dark\">";
// line 160
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category"), "html", null, true);
echo " - </a>
<a id=\"categoryTitleText\">-</a>;
<a class=\"font-weight-bolder text-dark\">";
// line 162
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.valid_from"), "html", null, true);
echo " - </a>
<a id=\"availabilityTitleText\">-</a>
</h3>
</div>
<div id=\"editVignetteStep1\">
<img src=\"";
// line 167
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/icons/ic_edit_grey.png"), "html", null, true);
echo "\" style=\"width: 30px\"/>
</div>
</div>
</div>
</div>
</div>
<div class=\"bs-stepper-header d-none\" role=\"tablist\">
<div id=\"divStepVignetteDetails\" class=\"step active\" data-target=\"#vignetteDetails\" onclick=\"stepper.previous()\" style=\"pointer-events: none\">
<button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVignetteDetails\" aria-controls=\"vignetteDetails\" aria-selected=\"true\">
<span class=\"bs-stepper-circle\"><a>1</a></span>
<small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-primary font-weight-bolder\">";
// line 177
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vignette_details")), "html", null, true);
echo "</small>
</button>
</div>
<div class=\"bs-stepper-line\"></div>
<div id=\"divStepVehicleDetails\" class=\"step\" data-target=\"#vehicleDetails\" onclick=\"stepper.next()\" style=\"pointer-events: none\">
<button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVehicleDetails\" aria-controls=\"vehicleDetails\" aria-selected=\"false\" disabled>
<span class=\"inactive-step bs-stepper-circle\"><a>2</a></span>
<small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-black-50 font-weight-bolder\">";
// line 184
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.car_data")), "html", null, true);
echo " </small>
</button>
</div>
<div class=\"bs-stepper-line\"></div>
</div>
<div class=\"bs-stepper-content\">
<form id=\"vignetteForm\" method=\"POST\">
<input type=\"hidden\" name=\"ignoreAlreadyActive\" id=\"ignoreAlreadyActive\" value=\"false\">
<input type=\"hidden\" name=\"ignoreWrongCategory\" id=\"ignoreWrongCategory\" value=\"false\">
<input type=\"hidden\" name=\"productStatusExtraOptions\" id=\"productStatusExtraOptions\" value=\"";
// line 193
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["lastProductStatus"]) || array_key_exists("lastProductStatus", $context) ? $context["lastProductStatus"] : (function () { throw new RuntimeError('Variable "lastProductStatus" does not exist.', 193, $this->source); })()), "extraOptionsStatus", [], "any", false, false, false, 193), "html", null, true);
echo "\">
<div id=\"vignetteDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade active dstepper-block\" aria-labelledby=\"stepperFormTrigger1\">
<div class=\"row my-3\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div class=\"card vignette-card shadow\">
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6\">
<h3 id=\"selectedCategoryText\" class=\"mb-2 font-weight-bolder\">";
// line 201
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_car_type"), "html", null, true);
echo "</h3>
";
// line 202
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["vignetteCategories"]) || array_key_exists("vignetteCategories", $context) ? $context["vignetteCategories"] : (function () { throw new RuntimeError('Variable "vignetteCategories" does not exist.', 202, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 203
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 203) % 2) != 0)) {
// line 204
echo " <div class=\"d-flex justify-content-center my-2\">
";
}
// line 206
echo " <label type=\"button\" for=\"";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 206))), "html", null, true);
echo "\" class=\"btn btn-vignette-unselected w-100 mx-3 webkit-none\" data-value=\"front\">
<input type=\"radio\" name=\"category\" data-error-message=\"";
// line 207
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_category_selected"), "html", null, true);
echo "\" id=\"";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 207))), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 207), "html", null, true);
echo "\" data-category=\"
";
// line 208
if ((twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 208) == (isset($context["category_rovignette_a_id"]) || array_key_exists("category_rovignette_a_id", $context) ? $context["category_rovignette_a_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_a_id" does not exist.', 208, $this->source); })()))) {
// line 209
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_a_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 210
$context["category"], "id", [], "any", false, false, false, 210) == (isset($context["category_rovignette_b_id"]) || array_key_exists("category_rovignette_b_id", $context) ? $context["category_rovignette_b_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_b_id" does not exist.', 210, $this->source); })()))) {
// line 211
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_b_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 212
$context["category"], "id", [], "any", false, false, false, 212) == (isset($context["category_rovignette_c_id"]) || array_key_exists("category_rovignette_c_id", $context) ? $context["category_rovignette_c_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_c_id" does not exist.', 212, $this->source); })()))) {
// line 213
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_c_name");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 214
$context["category"], "id", [], "any", false, false, false, 214) == (isset($context["category_rovignette_d_id"]) || array_key_exists("category_rovignette_d_id", $context) ? $context["category_rovignette_d_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_d_id" does not exist.', 214, $this->source); })()))) {
// line 215
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_d_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 216
$context["category"], "id", [], "any", false, false, false, 216) == (isset($context["category_rovignette_e_id"]) || array_key_exists("category_rovignette_e_id", $context) ? $context["category_rovignette_e_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_e_id" does not exist.', 216, $this->source); })()))) {
// line 217
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_e_name");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 218
$context["category"], "id", [], "any", false, false, false, 218) == (isset($context["category_rovignette_f_id"]) || array_key_exists("category_rovignette_f_id", $context) ? $context["category_rovignette_f_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_f_id" does not exist.', 218, $this->source); })()))) {
// line 219
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_f_name");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 220
$context["category"], "id", [], "any", false, false, false, 220) == (isset($context["category_rovignette_g_id"]) || array_key_exists("category_rovignette_g_id", $context) ? $context["category_rovignette_g_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_g_id" does not exist.', 220, $this->source); })()))) {
// line 221
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_g_name"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 222
$context["category"], "id", [], "any", false, false, false, 222) == (isset($context["category_rovignette_h_id"]) || array_key_exists("category_rovignette_h_id", $context) ? $context["category_rovignette_h_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_h_id" does not exist.', 222, $this->source); })()))) {
// line 223
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_h_name"), "html", null, true);
echo "
";
}
// line 225
echo " \" ";
if (((( !(null === (isset($context["vehicle"]) || array_key_exists("vehicle", $context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.', 225, $this->source); })())) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["vehicle"]) || array_key_exists("vehicle", $context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.', 225, $this->source); })()), "roVignetteCategory", [], "any", false, false, false, 225))) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["vehicle"] ?? null), "roVignetteCategory", [], "any", false, true, false, 225), "id", [], "any", true, true, false, 225)) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["vehicle"]) || array_key_exists("vehicle", $context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.', 225, $this->source); })()), "roVignetteCategory", [], "any", false, false, false, 225), "id", [], "any", false, false, false, 225) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 225)))) {
echo " checked
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 226
(isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 226, $this->source); })()), "get", [0 => "category"], "method", false, false, false, 226) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 226))) {
echo " checked ";
}
echo " hidden>
<img src=\"";
// line 227
echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("assets/shop/images/icons/ic_rovinieta_categ_" . twig_lower_filter($this->env, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 227))))) . ".png"), "html", null, true);
echo "\" style=\"width: 46px\"/> <br/>
<a class=\"text-dark\" id=\"vehicleType-";
// line 228
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_first($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "code", [], "any", false, false, false, 228))), "html", null, true);
echo "\">
";
// line 229
if ((twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 229) == (isset($context["category_rovignette_a_id"]) || array_key_exists("category_rovignette_a_id", $context) ? $context["category_rovignette_a_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_a_id" does not exist.', 229, $this->source); })()))) {
// line 230
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_a_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 231
$context["category"], "id", [], "any", false, false, false, 231) == (isset($context["category_rovignette_b_id"]) || array_key_exists("category_rovignette_b_id", $context) ? $context["category_rovignette_b_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_b_id" does not exist.', 231, $this->source); })()))) {
// line 232
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_b_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 233
$context["category"], "id", [], "any", false, false, false, 233) == (isset($context["category_rovignette_c_id"]) || array_key_exists("category_rovignette_c_id", $context) ? $context["category_rovignette_c_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_c_id" does not exist.', 233, $this->source); })()))) {
// line 234
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_c_short_code");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 235
$context["category"], "id", [], "any", false, false, false, 235) == (isset($context["category_rovignette_d_id"]) || array_key_exists("category_rovignette_d_id", $context) ? $context["category_rovignette_d_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_d_id" does not exist.', 235, $this->source); })()))) {
// line 236
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_d_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 237
$context["category"], "id", [], "any", false, false, false, 237) == (isset($context["category_rovignette_e_id"]) || array_key_exists("category_rovignette_e_id", $context) ? $context["category_rovignette_e_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_e_id" does not exist.', 237, $this->source); })()))) {
// line 238
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_e_short_code");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 239
$context["category"], "id", [], "any", false, false, false, 239) == (isset($context["category_rovignette_f_id"]) || array_key_exists("category_rovignette_f_id", $context) ? $context["category_rovignette_f_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_f_id" does not exist.', 239, $this->source); })()))) {
// line 240
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_f_short_code");
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 241
$context["category"], "id", [], "any", false, false, false, 241) == (isset($context["category_rovignette_g_id"]) || array_key_exists("category_rovignette_g_id", $context) ? $context["category_rovignette_g_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_g_id" does not exist.', 241, $this->source); })()))) {
// line 242
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_g_short_code"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 243
$context["category"], "id", [], "any", false, false, false, 243) == (isset($context["category_rovignette_h_id"]) || array_key_exists("category_rovignette_h_id", $context) ? $context["category_rovignette_h_id"] : (function () { throw new RuntimeError('Variable "category_rovignette_h_id" does not exist.', 243, $this->source); })()))) {
// line 244
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.category_rovignette_h_short_code"), "html", null, true);
echo "
";
}
// line 246
echo " </a>
</label>
";
// line 248
if (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 248) % 2) == 0)) {
// line 249
echo " </div>
";
}
// line 251
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 252
echo " </div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 text-center\">
<h3 class=\"font-weight-bolder mb-2\">";
// line 254
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_start_date"), "html", null, true);
echo "</h3>
<div class=\"d-flex justify-content-center align-items-center\">
<input type=\"hidden\" id=\"validFrom\" name=\"validFrom\" ";
// line 256
if (twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 256, $this->source); })()), "get", [0 => "validFrom"], "method", false, false, false, 256)) {
echo " data-value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 256, $this->source); })()), "get", [0 => "validFrom"], "method", false, false, false, 256), "html", null, true);
echo "\"
";
} elseif ( !(null === // line 257
(isset($context["oldValidFrom"]) || array_key_exists("oldValidFrom", $context) ? $context["oldValidFrom"] : (function () { throw new RuntimeError('Variable "oldValidFrom" does not exist.', 257, $this->source); })()))) {
echo " data-value=\"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["oldValidFrom"]) || array_key_exists("oldValidFrom", $context) ? $context["oldValidFrom"] : (function () { throw new RuntimeError('Variable "oldValidFrom" does not exist.', 257, $this->source); })()), "m/d/Y"), "html", null, true);
echo "\"
";
}
// line 258
echo ">
<div data-error-message = '";
// line 259
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_date_selected"), "html", null, true);
echo "' id=\"datepicker\"></div>
</div>
<div class=\"d-flex justify-content-center mt-3\">
<div class=\"d-flex\">
<div class=\"current-date-circle\" style=\"width: 18px; height: 18px\"></div>
<div>
<a class=\"ml-2 text-dark\">";
// line 265
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.current_date"), "html", null, true);
echo ":</a> <br/>
<h5 class=\"ml-2 text-dark\">";
// line 266
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "d/m/Y"), "html", null, true);
echo "</h5>
</div>
</div>
<div id=\"divStartDatePicker\">
<div class=\"d-flex ml-4\">
<div class=\"picked-date-circle\" style=\"width: 18px; height: 18px\"></div>
<div>
<a class=\"ml-2 text-dark\">";
// line 273
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.start_date"), "html", null, true);
echo ":</a> <br/>
<h5 class=\"ml-2 text-muted\" id=\"startDatePicker\">DD/MM/YYYY</h5>
</div>
</div>
</div>
</div>
</div>
<div id=\"divPaymentNotAvailable\" class=\"alert alert-warning d-none mt-2\" role=\"alert\">
";
// line 281
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.info_payment_not_available");
echo "
</div>
</div>
</div>
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
<div class=\"btn-wrapper\">
<div class=\"first-step error-messages\">
</div>
<button id=\"btnSubmitStep1\" type=\"button\" class=\"btn btn-primary-inactive w-100\" style=\"height: 40px\" disabled>
<a>";
// line 293
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.next_step"), "html", null, true);
echo "</a>
</button>
</div>
</div>
</div>
</div>
<div id=\"vehicleDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade dstepper-none\" aria-labelledby=\"stepperFormTrigger2\">
<div class=\"row my-3\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div class=\"card vignette-card shadow\">
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 availability-wrapper\" data-error-message=\"";
// line 305
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_availability_selected"), "html", null, true);
echo "\">
<h3 class=\"mb-3 font-weight-bolder\">";
// line 306
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.choose_validity"), "html", null, true);
echo "</h3>
<div class=\"d-flex justify-content-between\">
<label type=\"button\" id=\"lblAv1Day\" for=\"av_1\" class=\"btn btn-vignette-unselected w-100 mt-2 webkit-none\" style=\"display: none\" data-value=\"";
// line 309
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.1_day"), "html", null, true);
echo "\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_1\" value=\"1\" ";
// line 311
if ((twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 311, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 311) == 1)) {
echo " checked ";
}
echo " hidden>
<h2 id=\"txtAv1Day\" class=\"text-primary txtAvailability\">";
// line 312
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.1_day"), "html", null, true);
echo "</h2>
<a id=\"txtAv1DayPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
</div>
</label>
</div>
<div class=\"d-flex justify-content-between mt-3 mb-3\">
<label type=\"button\" id=\"lblAv7Day\" for=\"av_7\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"";
// line 318
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.7_days"), "html", null, true);
echo "\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_7\" value=\"2\" ";
// line 320
if ((twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 320, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 320) == 2)) {
echo " checked ";
}
echo " hidden required>
<h2 id=\"txtAv7Days\" class=\"text-primary txtAvailability\">";
// line 321
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.7_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv7DaysPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
</div>
</label>
<label type=\"button\" id=\"lblAv10Day\" for=\"av_10\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"";
// line 325
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.10_days"), "html", null, true);
echo "\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_10\" value=\"6\" ";
// line 327
if ((twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 327, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 327) == 6)) {
echo " checked ";
}
echo " hidden required>
<h2 id=\"txtAv10Days\" class=\"text-primary txtAvailability\">";
// line 328
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.10_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv10DaysPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
</div>
</label>
<label type=\"button\" for=\"av_30\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"";
// line 332
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.30_days"), "html", null, true);
echo "\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_30\" value=\"3\" ";
// line 334
if ((twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 334, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 334) == 3)) {
echo " checked ";
}
echo " hidden>
<h2 id=\"txtAv30Days\" class=\"text-primary txtAvailability\">";
// line 335
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.30_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv30DaysPrice\" class=\"txtAvailabilityPrice text-dark\">33.60 LEI</a>
</div>
</label>
</div>
<div class=\"d-flex justify-content-between\">
<label type=\"button\" id=\"lblAv90Day\" for=\"av_90\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"";
// line 341
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.90_days"), "html", null, true);
echo "\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_90\" value=\"4\" ";
// line 343
if ((twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 343, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 343) == 4)) {
echo " checked ";
}
echo " hidden>
<h2 id=\"txtAv90Days\" class=\"text-primary txtAvailability\">";
// line 344
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.90_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv90DaysPrice\" class=\"txtAvailabilityPrice text-dark\">117.60 LEI</a>
</div>
</label>
<label type=\"button\" id=\"lblAv60Day\" for=\"av_60\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"";
// line 348
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.60_days"), "html", null, true);
echo "\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_60\" value=\"7\" ";
// line 350
if ((twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 350, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 350) == 7)) {
echo " checked ";
}
echo " hidden>
<h2 id=\"txtAv60Days\" class=\"text-primary txtAvailability\">";
// line 351
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.60_days"), "html", null, true);
echo "</h2>
<a id=\"txtAv60DaysPrice\" class=\"txtAvailabilityPrice text-dark\">117.60 LEI</a>
</div>
</label>
<label type=\"button\" for=\"av_12\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"";
// line 355
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months"), "html", null, true);
echo "\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_12\" value=\"5\" ";
// line 357
if ((twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 357, $this->source); })()), "get", [0 => "availability"], "method", false, false, false, 357) == 5)) {
echo " checked ";
}
echo " hidden>
<h2 id=\"txtAv1Year\" class=\"text-primary txtAvailability\">";
// line 358
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.12_months"), "html", null, true);
echo "</h2>
<a id=\"txtAv1YearPrice\" class=\"txtAvailabilityPrice text-dark\">333.60 LEI</a>
</div>
</label>
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6\" style=\"padding-left: 50px; padding-right: 50px\">
<h3 class=\"mb-3 font-weight-bolder\">";
// line 365
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.select_car_data"), "html", null, true);
echo "</h3>
<div class=\"row mt-3 d-flex align-items-end\">
<div class=\"col-5 col-sm-5 col-md-6 col-lg-5 col-xl-5\">
<label for=\"carCountry\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 368
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country_code"), "html", null, true);
echo "</label>
<select id=\"carCountry\" name=\"carCountry\" class=\"form-control input-custom input-custom-grey\" required>
<option value=\"\">";
// line 370
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country"), "html", null, true);
echo "</option>
";
// line 371
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter((isset($context["countries"]) || array_key_exists("countries", $context) ? $context["countries"] : (function () { throw new RuntimeError('Variable "countries" does not exist.', 371, $this->source); })()), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 371, $this->source); })()), "name", [], "any", false, false, false, 371) > twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 371, $this->source); })()), "name", [], "any", false, false, false, 371)); }));
foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
// line 372
echo " <option id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 372), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 372), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 372, $this->source); })()), "get", [0 => "carCountry"], "method", false, false, false, 372) == twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 372))) {
echo " selected ";
}
echo ">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "name", [], "any", false, false, false, 372), "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 374
echo " </select>
</div>
<div class=\"col-7 col-sm-7 col-md-6 col-lg-7 col-xl-7\">
<label for=\"registrationPlate\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 377
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.registration_plate"), "html", null, true);
echo "</label>
<input id=\"registrationPlate\" data-warning-message=\"";
// line 378
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.warning.characters_not_allowed"), "html", null, true);
echo "\" data-error-message=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.errors.no_plate"), "html", null, true);
echo "\" name=\"registrationPlate\"
maxlength=\"10\" type=\"text\" class=\"form-control input-custom input-custom-grey
\" placeholder=\"";
// line 380
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.registration_plate"), "html", null, true);
echo "\" oninvalid=\"this.setCustomValidity('";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.please_fill_this_field"), "html", null, true);
echo "')\"
oninput=\"setCustomValidity('')\"
";
// line 382
if ((( !(null === (isset($context["vehicle"]) || array_key_exists("vehicle", $context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.', 382, $this->source); })())) && !(null === twig_get_attribute($this->env, $this->source, (isset($context["vehicle"]) || array_key_exists("vehicle", $context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.', 382, $this->source); })()), "registrationPlate", [], "any", false, false, false, 382))) && twig_get_attribute($this->env, $this->source, ($context["vehicle"] ?? null), "registrationPlate", [], "any", true, true, false, 382))) {
// line 383
echo " value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["vehicle"]) || array_key_exists("vehicle", $context) ? $context["vehicle"] : (function () { throw new RuntimeError('Variable "vehicle" does not exist.', 383, $this->source); })()), "registrationPlate", [], "any", false, false, false, 383), "html", null, true);
echo "\"
";
} elseif (twig_get_attribute($this->env, $this->source, // line 384
(isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 384, $this->source); })()), "get", [0 => "registrationPlate"], "method", false, false, false, 384)) {
// line 385
echo " value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oldValues"]) || array_key_exists("oldValues", $context) ? $context["oldValues"] : (function () { throw new RuntimeError('Variable "oldValues" does not exist.', 385, $this->source); })()), "get", [0 => "registrationPlate"], "method", false, false, false, 385), "html", null, true);
echo "\"
";
}
// line 386
echo " required>
<div data-error-message = '";
// line 387
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.invalid_registration_plate"), "html", null, true);
echo "' id=\"registrationPlateError\"></div>
</div>
</div>
<div class=\"row mt-2\">
<div class=\"col-12\">
<div id=\"vinBlock\" class=\"d-none\">
<label for=\"vin\" class=\"text-dark lbl-custom lbl-custom-grey d-none\" style=\"width: 98.5% !important;\">";
// line 394
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vin"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.chassis_number"), "html", null, true);
echo ")</label>
<input id=\"vin\" name=\"vin\" type=\"text\" style=\"width: 98.5% !important;\"
class=\"form-control input-custom input-custom-grey\" placeholder=\"";
// line 396
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.vin"), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.chassis_number"), "html", null, true);
echo ")\">
</div>
</div>
</div>
";
// line 400
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 400, $this->source); })()), "request", [], "any", false, false, false, 400), "locale", [], "any", false, false, false, 400) == "ro") && twig_get_attribute($this->env, $this->source, (isset($context["lastProductStatus"]) || array_key_exists("lastProductStatus", $context) ? $context["lastProductStatus"] : (function () { throw new RuntimeError('Variable "lastProductStatus" does not exist.', 400, $this->source); })()), "vignetteSmsStatus", [], "any", false, false, false, 400))) {
// line 401
echo " <div class=\"row mt-2\">
<div class=\"col-12\">
<div id=\"divAlertSms\" class=\"vignette-alert-container px-2 py-3\">
<div class=\"d-flex justify-content-between align-items-center-center\">
<div class=\"custom-control custom-checkbox\">
<input type=\"checkbox\" name=\"vignetteAlert\" id=\"vignetteAlert\" class=\"custom-control-input\" data-price=\"";
// line 406
echo twig_escape_filter($this->env, (isset($context["smsPrice"]) || array_key_exists("smsPrice", $context) ? $context["smsPrice"] : (function () { throw new RuntimeError('Variable "smsPrice" does not exist.', 406, $this->source); })()), "html", null, true);
echo "\">
<label for=\"vignetteAlert\" class=\"custom-control-label\">
<h4 class=\"text-dark\" style=\"letter-spacing: 0.01em;\">";
// line 408
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.sms_alert"), "html", null, true);
echo "</h4>
</label>
</div>
<div>
<h4>";
// line 412
echo twig_escape_filter($this->env, (isset($context["smsPrice"]) || array_key_exists("smsPrice", $context) ? $context["smsPrice"] : (function () { throw new RuntimeError('Variable "smsPrice" does not exist.', 412, $this->source); })()), "html", null, true);
echo " Lei (";
echo twig_escape_filter($this->env, (isset($context["sms_price_eur"]) || array_key_exists("sms_price_eur", $context) ? $context["sms_price_eur"] : (function () { throw new RuntimeError('Variable "sms_price_eur" does not exist.', 412, $this->source); })()), "html", null, true);
echo " Eur)</h4>
</div>
</div>
<div>
<a>";
// line 416
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.alert_description"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
";
}
// line 422
echo " <div id=\"app\">
";
// line 423
if ((twig_get_attribute($this->env, $this->source, (isset($context["lastProductStatus"]) || array_key_exists("lastProductStatus", $context) ? $context["lastProductStatus"] : (function () { throw new RuntimeError('Variable "lastProductStatus" does not exist.', 423, $this->source); })()), "roadAssistanceStatus", [], "any", false, false, false, 423) && twig_get_attribute($this->env, $this->source, (isset($context["lastProductStatus"]) || array_key_exists("lastProductStatus", $context) ? $context["lastProductStatus"] : (function () { throw new RuntimeError('Variable "lastProductStatus" does not exist.', 423, $this->source); })()), "vignetteRoadAssistanceStatus", [], "any", false, false, false, 423))) {
// line 424
echo " <road-assistance
:price=\"";
// line 425
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["road_assistance_service"]) || array_key_exists("road_assistance_service", $context) ? $context["road_assistance_service"] : (function () { throw new RuntimeError('Variable "road_assistance_service" does not exist.', 425, $this->source); })()), "retrieveDefaultPrice", [], "any", false, false, false, 425), "html", null, true);
echo "\"
:terms-and-conditions-route=\"'";
// line 426
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show", ["slug" => "terms-and-conditions-road-assistance"]);
echo "'\"
v-bind:is-mobile=\"false\"></road-assistance>
";
}
// line 429
echo " </div>
<div class=\"row mt-2\">
<div class=\"col-12\">
<div id=\"divCnairAlert\" class=\"vignette-alert-container px-2 py-3 bg-white d-none\">
<div class=\"d-flex justify-content-between align-items-center-center\">
<div class=\"custom-control custom-checkbox\">
<input type=\"checkbox\" name=\"email_allowed\" id=\"email_allowed\" class=\"custom-control-input\">
<label for=\"email_allowed\" class=\"custom-control-label\">
<h5 class=\"text-dark\" style=\"letter-spacing: 0.01em;\">";
// line 437
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.cnair_alert"), "html", null, true);
echo "</h5>
</label>
</div>
</div>
<div id=\"divEmail\" class=\"d-none\">
<input id=\"email\" name=\"email\" type=\"text\" class=\"form-control input-custom input-custom-grey required\" >
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
<div>
<div class=\"second-step error-messages\">
</div>
<div class=\"btn-wrapper\">
<button id=\"btnSubmitVignette\" type=\"submit\" class=\"btn btn-primary-inactive btn-submit w-100\" style=\"height: 40px\"><a>";
// line 458
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.buy_now"), "html", null, true);
echo "</a></button>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div class=\"bs-stepper-content\">
<div class=\"row my-3\">
";
// line 469
if ((twig_length_filter($this->env, (isset($context["accordionBlocksAboutVignette"]) || array_key_exists("accordionBlocksAboutVignette", $context) ? $context["accordionBlocksAboutVignette"] : (function () { throw new RuntimeError('Variable "accordionBlocksAboutVignette" does not exist.', 469, $this->source); })())) > 0)) {
// line 470
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["accordionBlocksAboutVignette"]) || array_key_exists("accordionBlocksAboutVignette", $context) ? $context["accordionBlocksAboutVignette"] : (function () { throw new RuntimeError('Variable "accordionBlocksAboutVignette" does not exist.', 470, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["block"]) {
// line 471
echo " <div class=\"col-12 col-sm-6 col-md-6 col-lg-3 col-xl-3 my-3\">
<button class=\"accordion\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse";
// line 472
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" aria-expanded=\"false\" aria-controls=\"collapse";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["block"], "name", [], "any", false, false, false, 472), "html", null, true);
echo "</button>
<div class=\"collapse\" id=\"collapse";
// line 473
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\">
<div class=\"card card-body border\">";
// line 474
echo twig_get_attribute($this->env, $this->source, $context["block"], "content", [], "any", false, false, false, 474);
echo "</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['block'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 478
echo " ";
}
// line 479
echo " </div>
</div>
</div>
</div>
<script>
\$(document).ready(function () {
let locale = getLocale();
function getLocale() {
let url = Routing.generate('app_shop_get_locale');
\$.ajax({
url: url,
type: 'GET',
async: false,
dataType: 'json',
success: function (locale) {
if (locale == 'ro_RO' || locale == 'ro') {
\$('[name=\"carCountry\"] option').filter(function() {
return (\$(this).val() == 'RO');
}).prop('selected', true).change();
}
},
error: function (data) {
}
});
}
})
var stepper = new Stepper(\$('.bs-stepper')[0]);
</script>
<script>
const route = \"";
// line 511
echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage"), "js"), "html", null, true);
echo "\";
const roadAssistanceTranslations = '";
// line 512
echo json_encode((isset($context["roadAssistanceTranslations"]) || array_key_exists("roadAssistanceTranslations", $context) ? $context["roadAssistanceTranslations"] : (function () { throw new RuntimeError('Variable "roadAssistanceTranslations" does not exist.', 512, $this->source); })()));
echo "';
</script>
";
// line 515
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("vue");
echo "
<style>
.text-primary {
color: #E95A31;
}
.webkit-none {
-webkit-appearance: none !important;
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight {
background: none !important;
color: #454545 !important;
border: none !important;
}
.modal-backdrop {
opacity: 50% !important;
}
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
background-color: #e95a31 !important;
}
.b-calendar-grid-body {
margin-left: .5rem!important;
margin-right: .5rem!important;
}
.b-calendar-grid-weekdays {
border: none !important;
}
.loading {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
z-index: 999;
position: fixed;
background-color: rgba(0,0,0,0.7);
opacity: 100%;
width: 100%;
height: 100%;
}
</style>
";
} else {
// line 562
echo " <div class=\"card text-center my-3\">
<div class=\"card-header\">
<h2>";
// line 564
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.disabled_temporary"), "html", null, true);
echo "</h2>
</div>
<div class=\"card-body\">
<a href=\"";
// line 567
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.back_to_store"), "html", null, true);
echo "</a>
</div>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@templates/Front/vignette.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1347 => 567, 1341 => 564, 1337 => 562, 1287 => 515, 1281 => 512, 1277 => 511, 1243 => 479, 1240 => 478, 1230 => 474, 1226 => 473, 1218 => 472, 1215 => 471, 1210 => 470, 1208 => 469, 1194 => 458, 1170 => 437, 1160 => 429, 1154 => 426, 1150 => 425, 1147 => 424, 1145 => 423, 1142 => 422, 1133 => 416, 1124 => 412, 1117 => 408, 1112 => 406, 1105 => 401, 1103 => 400, 1094 => 396, 1087 => 394, 1077 => 387, 1074 => 386, 1068 => 385, 1066 => 384, 1061 => 383, 1059 => 382, 1052 => 380, 1045 => 378, 1041 => 377, 1036 => 374, 1019 => 372, 1015 => 371, 1011 => 370, 1006 => 368, 1000 => 365, 990 => 358, 984 => 357, 979 => 355, 972 => 351, 966 => 350, 961 => 348, 954 => 344, 948 => 343, 943 => 341, 934 => 335, 928 => 334, 923 => 332, 916 => 328, 910 => 327, 905 => 325, 898 => 321, 892 => 320, 887 => 318, 878 => 312, 872 => 311, 867 => 309, 861 => 306, 857 => 305, 842 => 293, 827 => 281, 816 => 273, 806 => 266, 802 => 265, 793 => 259, 790 => 258, 783 => 257, 777 => 256, 772 => 254, 768 => 252, 754 => 251, 750 => 249, 748 => 248, 744 => 246, 738 => 244, 736 => 243, 731 => 242, 729 => 241, 724 => 240, 722 => 239, 717 => 238, 715 => 237, 710 => 236, 708 => 235, 703 => 234, 701 => 233, 696 => 232, 694 => 231, 689 => 230, 687 => 229, 683 => 228, 679 => 227, 673 => 226, 668 => 225, 662 => 223, 660 => 222, 655 => 221, 653 => 220, 648 => 219, 646 => 218, 641 => 217, 639 => 216, 634 => 215, 632 => 214, 627 => 213, 625 => 212, 620 => 211, 618 => 210, 613 => 209, 611 => 208, 603 => 207, 598 => 206, 594 => 204, 591 => 203, 574 => 202, 570 => 201, 559 => 193, 547 => 184, 537 => 177, 524 => 167, 516 => 162, 511 => 160, 507 => 159, 502 => 157, 490 => 148, 478 => 139, 471 => 135, 455 => 122, 448 => 118, 443 => 115, 441 => 114, 436 => 112, 432 => 111, 428 => 110, 424 => 109, 420 => 108, 416 => 107, 412 => 106, 408 => 105, 405 => 104, 403 => 103, 398 => 102, 396 => 101, 391 => 99, 384 => 97, 374 => 90, 369 => 87, 359 => 86, 343 => 79, 340 => 78, 338 => 77, 332 => 73, 330 => 72, 324 => 69, 321 => 68, 311 => 67, 298 => 61, 286 => 52, 282 => 51, 278 => 50, 274 => 49, 270 => 48, 266 => 47, 262 => 46, 258 => 45, 254 => 44, 250 => 43, 246 => 42, 242 => 41, 236 => 38, 232 => 37, 223 => 31, 215 => 27, 205 => 26, 193 => 22, 189 => 21, 185 => 20, 181 => 19, 176 => 18, 166 => 17, 151 => 8, 141 => 7, 120 => 5, 109 => 64, 107 => 26, 103 => 25, 100 => 24, 98 => 17, 91 => 15, 84 => 10, 82 => 7, 79 => 6, 77 => 5, 74 => 4, 64 => 3, 41 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@templates/Front/Shop/layout.html.twig' %}
{% block head %}
<head>
{% block title %} <title>{{ 'app.ui.calculator_vignette_price'|trans }} | Roviniete.ro</title> {% endblock %}
{% block metatags %}
<meta name=\"description\" content=\"{% if vignetteDescriptionForSeo|length > 0 %}{{ vignetteDescriptionForSeo.content }}{% endif %}\"/>
{% endblock %}
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta http-equiv=\"Content-Language\" content=\"ro\">
<meta name=\"google-site-verification\" content=\"BEtIqk-choaMawpOxG98NtbWKAZK5MuTxV_2-pSHGFQ\">
<meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">
<meta name=\"keywords\" content=\"{% if vignetteKeywordsForSeo|length > 0 %}{{ vignetteKeywordsForSeo.content }}{% endif %}\"/>
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/homepage.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/bootstrap.min.css') }}\">
{{ encore_entry_link_tags('bootstrap-fix', null, 'bootstrapTheme') }}
<link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/vignette_shop.v1.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('/assets/shop/css/bs-stepper.css') }}\">
{% endblock %}
{{ sonata_block_render_event('sylius.shop.layout.head') }}
{% block javascripts %}
<script src=\"{{ asset('assets/shop/js/sentry-bundle.min.js') }}\"></script>
<script>
if (typeof Sentry !== 'undefined') {
Sentry.init({
dsn: \"{{ sentry_dsn }}\",
integrations: [new Sentry.Integrations.TryCatch({
eventTarget: false,
})]
});
}
MESSAGE_INVALID_REGISTRATION_PLATE = '{{ 'app.ui.invalid_registration_plate'|trans }}';
MESSAGE_INVALID_VIN = '{{ 'app.ui.invalid_vin'|trans }}'
let roadAssistanceValidFrom = null;
</script>
<script src=\"{{ asset('assets/shop/js/jquery.min.js') }}\"></script>
<script src=\"{{ asset('/assets/shop/js/bs-stepper.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/jquery-ui.min.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/popper.min.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/bootstrap.min.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/moment.min.js') }}\"></script>
<script src=\"{{ asset('assets/shop/js/jquery.validate.min.js') }}\"></script>
{{ encore_entry_script_tags('vignette') }}
<script src=\"{{ asset('assets/shop/js/leftmenu.js') }}\"></script>
<script src=\"{{ asset('/bundles/fosjsrouting/js/router.js') }}\"></script>
<script src=\"{{ asset('/assets/shop/js/_bootstrap_select.min.js') }}\"></script>
<script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
<script>
dataLayer = [];
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ gtm_code }}');</script>
<!-- End Google Tag Manager -->
{% endblock %}
</head>
{% endblock %}
{% block header %}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=\"https://www.googletagmanager.com/ns.html?id={{ gtm_code }}\"
height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% include '@templates/AdminCustom/Layout/loading.html.twig' with {showLoading: true} %}
<div class=\"custom-container\">
<div style=\"max-width: 100%\">
<div class=\"bg-white\">
<header>
{% include '@templates/Front/Shop/v2/_header.html.twig' %}
{{ sonata_block_render_event('sylius.shop.layout.after_header') }}
</header>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div id=\"loadingDiv\" class=\"loading d-none\">
<div class=\"card w-50\">
<div class=\"card-body bg-loading-card\">
<img src=\"{{ asset('assets/shop/images/spinner.gif') }}\"
style=\"width: 50px; pointer-events: none\"/>
<h5>Se verifica datele</h5>
</div>
</div>
</div>
<div class=\"d-inline-flex mx-3\">
<a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section text-primary\" style=\"font-size: 0.8em;\">{{ 'sylius.ui.home'|trans }}</a>
<div class=\"divider\"> /</div>
<small class=\"section active\">{{ 'app.ui.vignettes'|trans }}</small>
</div>
{% if lastProductStatus.vignetteStatus %}
<h2 class=\"mx-3\">{{ 'app.ui.calculator_vignette_price'|trans}}</h2>
{% set smsPrice = sms_price_ron.calculateSmsPrice %}
<script type=\"text/javascript\">
var one_day = '{{ 'app.ui.1_day'|trans|lower }}';
var seven_days = '{{ 'app.ui.7_days'|trans|lower }}';
var ten_days = '{{ 'app.ui.10_days'|trans|lower }}';
var thirty_days = '{{ 'app.ui.30_days'|trans|lower }}';
var sixty_days = '{{ 'app.ui.60_days'|trans|lower }}';
var ninety_days = '{{ 'app.ui.90_days'|trans|lower }}';
var twelve_months = '{{ 'app.ui.12_months'|trans|lower }}';
var locale = '{{ app.request.getLocale() }}';
</script>
{% set oldValues = app.request.request %}
<div id=\"specialErrors\" class=\"alert alert-warning alert-dismissible fade show d-none\" role=\"alert\">
<div class=\"header text-center\">
<h2>{{ 'sylius.ui.warning'|trans }}</h2>
</div>
<p>
<h5 class=\"text-center text-primary vignette-already-bought d-none\">
{{ 'app.ui.vignette_available_for_choosen_date'|trans }}
</h5>
<h5 class=\"special-error\">
</h5>
<a class=\"text-center\">
</a>
</p>
<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div id=\"categoryError\" class=\"alert alert-warning fade show d-none\" role=\"alert\">
<div class=\"header text-center\">
<h2>{{ 'app.ui.error'|trans }}</h2>
</div>
<p>
<h5 class=\"text-center text-primary\">
{{ 'app.ui.vignette_category_error'|trans }}
</h5>
<h5 class=\"special-error\">
</h5>
<a class=\"text-center\">
</a>
</p>
</div>
<div id=\"divNoSpecialCharacters\" class=\"alert alert-warning d-none\" role=\"alert\">
{{ 'app.ui.no_special_characters_allowed'|trans }}
</div>
<div style=\"margin-bottom: 100px;\">
<div id=\"stepperForm\" class=\"bs-stepper linear\">
<div class=\"row\" style=\"padding: 0 20px 20px;\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div id=\"vignetteStep1Summary\" class=\"card d-none my-3\" onclick=\"stepper.previous()\">
<div class=\"card-body d-flex justify-content-between align-items-center\">
<div class=\"d-inline-flex justify-content-center align-items-center\">
<img src=\"{{ asset('assets/shop/images/icons/ic_check_small_dark.png') }}\" style=\"width: 30px\"/>
<h3>
<a class=\"font-weight-bolder text-primary\">{{ 'app.ui.vignette_details'|trans }}:</a>
<a class=\"font-weight-bolder text-dark\">{{ 'app.ui.category'|trans }} - </a>
<a id=\"categoryTitleText\">-</a>;
<a class=\"font-weight-bolder text-dark\">{{ 'app.ui.valid_from'|trans }} - </a>
<a id=\"availabilityTitleText\">-</a>
</h3>
</div>
<div id=\"editVignetteStep1\">
<img src=\"{{ asset('assets/shop/images/icons/ic_edit_grey.png') }}\" style=\"width: 30px\"/>
</div>
</div>
</div>
</div>
</div>
<div class=\"bs-stepper-header d-none\" role=\"tablist\">
<div id=\"divStepVignetteDetails\" class=\"step active\" data-target=\"#vignetteDetails\" onclick=\"stepper.previous()\" style=\"pointer-events: none\">
<button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVignetteDetails\" aria-controls=\"vignetteDetails\" aria-selected=\"true\">
<span class=\"bs-stepper-circle\"><a>1</a></span>
<small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-primary font-weight-bolder\">{{'app.ui.vignette_details'|trans|upper}}</small>
</button>
</div>
<div class=\"bs-stepper-line\"></div>
<div id=\"divStepVehicleDetails\" class=\"step\" data-target=\"#vehicleDetails\" onclick=\"stepper.next()\" style=\"pointer-events: none\">
<button type=\"button\" class=\"step-trigger\" role=\"tab\" id=\"stepVehicleDetails\" aria-controls=\"vehicleDetails\" aria-selected=\"false\" disabled>
<span class=\"inactive-step bs-stepper-circle\"><a>2</a></span>
<small style=\"font-size: 0.8em; letter-spacing: 1px;\" class=\"bs-stepper-label text-black-50 font-weight-bolder\">{{'app.ui.car_data'|trans|upper}} </small>
</button>
</div>
<div class=\"bs-stepper-line\"></div>
</div>
<div class=\"bs-stepper-content\">
<form id=\"vignetteForm\" method=\"POST\">
<input type=\"hidden\" name=\"ignoreAlreadyActive\" id=\"ignoreAlreadyActive\" value=\"false\">
<input type=\"hidden\" name=\"ignoreWrongCategory\" id=\"ignoreWrongCategory\" value=\"false\">
<input type=\"hidden\" name=\"productStatusExtraOptions\" id=\"productStatusExtraOptions\" value=\"{{ lastProductStatus.extraOptionsStatus }}\">
<div id=\"vignetteDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade active dstepper-block\" aria-labelledby=\"stepperFormTrigger1\">
<div class=\"row my-3\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div class=\"card vignette-card shadow\">
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6\">
<h3 id=\"selectedCategoryText\" class=\"mb-2 font-weight-bolder\">{{'app.ui.select_car_type'|trans}}</h3>
{% for category in vignetteCategories %}
{% if loop.index % 2 != 0 %}
<div class=\"d-flex justify-content-center my-2\">
{% endif %}
<label type=\"button\" for=\"{{ category.code|first|lower }}\" class=\"btn btn-vignette-unselected w-100 mx-3 webkit-none\" data-value=\"front\">
<input type=\"radio\" name=\"category\" data-error-message=\"{{'app.errors.no_category_selected'|trans }}\" id=\"{{ category.code|first|lower }}\" value=\"{{ category.id }}\" data-category=\"
{% if category.id == category_rovignette_a_id%}
{{ 'app.ui.category_rovignette_a_name'|trans }}
{% elseif category.id == category_rovignette_b_id %}
{{ 'app.ui.category_rovignette_b_name'|trans }}
{% elseif category.id == category_rovignette_c_id %}
{{ 'app.ui.category_rovignette_c_name'|trans|raw }}
{% elseif category.id == category_rovignette_d_id %}
{{ 'app.ui.category_rovignette_d_name'|trans }}
{% elseif category.id == category_rovignette_e_id %}
{{ 'app.ui.category_rovignette_e_name'|trans|raw }}
{% elseif category.id == category_rovignette_f_id %}
{{ 'app.ui.category_rovignette_f_name'|trans|raw }}
{% elseif category.id == category_rovignette_g_id %}
{{ 'app.ui.category_rovignette_g_name'|trans }}
{% elseif category.id == category_rovignette_h_id %}
{{ 'app.ui.category_rovignette_h_name'|trans }}
{% endif %}
\" {% if vehicle is not null and vehicle.roVignetteCategory is not null and vehicle.roVignetteCategory.id is defined and vehicle.roVignetteCategory.id == category.id %} checked
{% elseif oldValues.get('category') == category.id %} checked {% endif %} hidden>
<img src=\"{{ (asset('assets/shop/images/icons/ic_rovinieta_categ_' ~ category.code|first|lower) ~ '.png')}}\" style=\"width: 46px\"/> <br/>
<a class=\"text-dark\" id=\"vehicleType-{{category.code|first|lower}}\">
{% if category.id == category_rovignette_a_id%}
{{ 'app.ui.category_rovignette_a_short_code'|trans }}
{% elseif category.id == category_rovignette_b_id %}
{{ 'app.ui.category_rovignette_b_short_code'|trans }}
{% elseif category.id == category_rovignette_c_id %}
{{ 'app.ui.category_rovignette_c_short_code'|trans|raw }}
{% elseif category.id == category_rovignette_d_id %}
{{ 'app.ui.category_rovignette_d_short_code'|trans }}
{% elseif category.id == category_rovignette_e_id %}
{{ 'app.ui.category_rovignette_e_short_code'|trans|raw }}
{% elseif category.id == category_rovignette_f_id %}
{{ 'app.ui.category_rovignette_f_short_code'|trans|raw }}
{% elseif category.id == category_rovignette_g_id %}
{{ 'app.ui.category_rovignette_g_short_code'|trans }}
{% elseif category.id == category_rovignette_h_id %}
{{ 'app.ui.category_rovignette_h_short_code'|trans }}
{% endif %}
</a>
</label>
{% if loop.index % 2 == 0 %}
</div>
{% endif %}
{% endfor %}
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 text-center\">
<h3 class=\"font-weight-bolder mb-2\">{{ 'app.ui.select_start_date'|trans}}</h3>
<div class=\"d-flex justify-content-center align-items-center\">
<input type=\"hidden\" id=\"validFrom\" name=\"validFrom\" {% if oldValues.get('validFrom') %} data-value=\"{{ oldValues.get('validFrom')}}\"
{% elseif oldValidFrom is not null %} data-value=\"{{ oldValidFrom|date(\"m/d/Y\") }}\"
{% endif %}>
<div data-error-message = '{{'app.errors.no_date_selected'|trans }}' id=\"datepicker\"></div>
</div>
<div class=\"d-flex justify-content-center mt-3\">
<div class=\"d-flex\">
<div class=\"current-date-circle\" style=\"width: 18px; height: 18px\"></div>
<div>
<a class=\"ml-2 text-dark\">{{'app.ui.current_date'|trans}}:</a> <br/>
<h5 class=\"ml-2 text-dark\">{{ \"now\"|date(\"d/m/Y\") }}</h5>
</div>
</div>
<div id=\"divStartDatePicker\">
<div class=\"d-flex ml-4\">
<div class=\"picked-date-circle\" style=\"width: 18px; height: 18px\"></div>
<div>
<a class=\"ml-2 text-dark\">{{'app.ui.start_date'|trans}}:</a> <br/>
<h5 class=\"ml-2 text-muted\" id=\"startDatePicker\">DD/MM/YYYY</h5>
</div>
</div>
</div>
</div>
</div>
<div id=\"divPaymentNotAvailable\" class=\"alert alert-warning d-none mt-2\" role=\"alert\">
{{ 'app.ui.info_payment_not_available'|trans|raw }}
</div>
</div>
</div>
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
<div class=\"btn-wrapper\">
<div class=\"first-step error-messages\">
</div>
<button id=\"btnSubmitStep1\" type=\"button\" class=\"btn btn-primary-inactive w-100\" style=\"height: 40px\" disabled>
<a>{{'app.ui.next_step'|trans}}</a>
</button>
</div>
</div>
</div>
</div>
<div id=\"vehicleDetails\" role=\"tabpanel\" class=\"bs-stepper-pane fade dstepper-none\" aria-labelledby=\"stepperFormTrigger2\">
<div class=\"row my-3\">
<div class=\"col-12 col-sm-12 col-md-12 col-lg-10 col-xl-10\">
<div class=\"card vignette-card shadow\">
<div class=\"card-body\">
<div class=\"row\">
<div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 availability-wrapper\" data-error-message=\"{{'app.errors.no_availability_selected'|trans }}\">
<h3 class=\"mb-3 font-weight-bolder\">{{'app.ui.choose_validity'|trans}}</h3>
<div class=\"d-flex justify-content-between\">
<label type=\"button\" id=\"lblAv1Day\" for=\"av_1\" class=\"btn btn-vignette-unselected w-100 mt-2 webkit-none\" style=\"display: none\" data-value=\"{{ 'app.ui.1_day'|trans }}\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_1\" value=\"1\" {% if oldValues.get('availability') == 1 %} checked {% endif %} hidden>
<h2 id=\"txtAv1Day\" class=\"text-primary txtAvailability\">{{ 'app.ui.1_day'|trans }}</h2>
<a id=\"txtAv1DayPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
</div>
</label>
</div>
<div class=\"d-flex justify-content-between mt-3 mb-3\">
<label type=\"button\" id=\"lblAv7Day\" for=\"av_7\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"{{ 'app.ui.7_days'|trans }}\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_7\" value=\"2\" {% if oldValues.get('availability') == 2 %} checked {% endif %} hidden required>
<h2 id=\"txtAv7Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.7_days'|trans }}</h2>
<a id=\"txtAv7DaysPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
</div>
</label>
<label type=\"button\" id=\"lblAv10Day\" for=\"av_10\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"{{ 'app.ui.10_days'|trans }}\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_10\" value=\"6\" {% if oldValues.get('availability') == 6 %} checked {% endif %} hidden required>
<h2 id=\"txtAv10Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.10_days'|trans }}</h2>
<a id=\"txtAv10DaysPrice\" class=\"txtAvailabilityPrice text-dark\">17.60 LEI</a>
</div>
</label>
<label type=\"button\" for=\"av_30\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"{{ 'app.ui.30_days'|trans }}\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_30\" value=\"3\" {% if oldValues.get('availability') == 3 %} checked {% endif %} hidden>
<h2 id=\"txtAv30Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.30_days'|trans }}</h2>
<a id=\"txtAv30DaysPrice\" class=\"txtAvailabilityPrice text-dark\">33.60 LEI</a>
</div>
</label>
</div>
<div class=\"d-flex justify-content-between\">
<label type=\"button\" id=\"lblAv90Day\" for=\"av_90\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"{{ 'app.ui.90_days'|trans }}\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_90\" value=\"4\" {% if oldValues.get('availability') == 4 %} checked {% endif %} hidden>
<h2 id=\"txtAv90Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.90_days'|trans }}</h2>
<a id=\"txtAv90DaysPrice\" class=\"txtAvailabilityPrice text-dark\">117.60 LEI</a>
</div>
</label>
<label type=\"button\" id=\"lblAv60Day\" for=\"av_60\" class=\"btn btn-vignette-unselected w-100 mr-4 webkit-none\" style=\"display: none\" data-value=\"{{ 'app.ui.60_days'|trans }}\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_60\" value=\"7\" {% if oldValues.get('availability') == 7 %} checked {% endif %} hidden>
<h2 id=\"txtAv60Days\" class=\"text-primary txtAvailability\">{{ 'app.ui.60_days'|trans }}</h2>
<a id=\"txtAv60DaysPrice\" class=\"txtAvailabilityPrice text-dark\">117.60 LEI</a>
</div>
</label>
<label type=\"button\" for=\"av_12\" class=\"btn btn-vignette-unselected w-100 webkit-none\" data-value=\"{{ 'app.ui.12_months'|trans }}\" data-title=\"front\">
<div class=\"mx-2 my-2\">
<input type=\"radio\" name=\"availability\" id=\"av_12\" value=\"5\" {% if oldValues.get('availability') == 5 %} checked {% endif %} hidden>
<h2 id=\"txtAv1Year\" class=\"text-primary txtAvailability\">{{ 'app.ui.12_months'|trans }}</h2>
<a id=\"txtAv1YearPrice\" class=\"txtAvailabilityPrice text-dark\">333.60 LEI</a>
</div>
</label>
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6\" style=\"padding-left: 50px; padding-right: 50px\">
<h3 class=\"mb-3 font-weight-bolder\">{{'app.ui.select_car_data'|trans}}</h3>
<div class=\"row mt-3 d-flex align-items-end\">
<div class=\"col-5 col-sm-5 col-md-6 col-lg-5 col-xl-5\">
<label for=\"carCountry\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.country_code'|trans}}</label>
<select id=\"carCountry\" name=\"carCountry\" class=\"form-control input-custom input-custom-grey\" required>
<option value=\"\">{{ 'app.ui.country'|trans}}</option>
{% for country in countries|sort((a, b) => a.name > b.name) %}
<option id=\"{{ country.code }}\" value=\"{{ country.code }}\" {% if oldValues.get('carCountry') == country.code %} selected {% endif %}>{{ country.name }}</option>
{% endfor %}
</select>
</div>
<div class=\"col-7 col-sm-7 col-md-6 col-lg-7 col-xl-7\">
<label for=\"registrationPlate\" class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{'app.ui.registration_plate'|trans}}</label>
<input id=\"registrationPlate\" data-warning-message=\"{{ 'app.warning.characters_not_allowed'|trans }}\" data-error-message=\"{{'app.errors.no_plate'|trans }}\" name=\"registrationPlate\"
maxlength=\"10\" type=\"text\" class=\"form-control input-custom input-custom-grey
\" placeholder=\"{{'app.ui.registration_plate'|trans}}\" oninvalid=\"this.setCustomValidity('{{ 'app.ui.please_fill_this_field'|trans }}')\"
oninput=\"setCustomValidity('')\"
{% if vehicle is not null and vehicle.registrationPlate is not null and vehicle.registrationPlate is defined %}
value=\"{{ vehicle.registrationPlate }}\"
{% elseif oldValues.get('registrationPlate') %}
value=\"{{ oldValues.get('registrationPlate') }}\"
{% endif %} required>
<div data-error-message = '{{ 'app.ui.invalid_registration_plate'|trans }}' id=\"registrationPlateError\"></div>
</div>
</div>
<div class=\"row mt-2\">
<div class=\"col-12\">
<div id=\"vinBlock\" class=\"d-none\">
<label for=\"vin\" class=\"text-dark lbl-custom lbl-custom-grey d-none\" style=\"width: 98.5% !important;\">{{'app.ui.vin'|trans}} ({{ 'app.ui.chassis_number'|trans }})</label>
<input id=\"vin\" name=\"vin\" type=\"text\" style=\"width: 98.5% !important;\"
class=\"form-control input-custom input-custom-grey\" placeholder=\"{{'app.ui.vin'|trans}} ({{ 'app.ui.chassis_number'|trans }})\">
</div>
</div>
</div>
{% if app.request.locale == 'ro' and lastProductStatus.vignetteSmsStatus %}
<div class=\"row mt-2\">
<div class=\"col-12\">
<div id=\"divAlertSms\" class=\"vignette-alert-container px-2 py-3\">
<div class=\"d-flex justify-content-between align-items-center-center\">
<div class=\"custom-control custom-checkbox\">
<input type=\"checkbox\" name=\"vignetteAlert\" id=\"vignetteAlert\" class=\"custom-control-input\" data-price=\"{{ smsPrice }}\">
<label for=\"vignetteAlert\" class=\"custom-control-label\">
<h4 class=\"text-dark\" style=\"letter-spacing: 0.01em;\">{{'app.ui.sms_alert'|trans}}</h4>
</label>
</div>
<div>
<h4>{{ smsPrice }} Lei ({{ sms_price_eur }} Eur)</h4>
</div>
</div>
<div>
<a>{{'app.ui.alert_description'|trans}}</a>
</div>
</div>
</div>
</div>
{% endif %}
<div id=\"app\">
{% if lastProductStatus.roadAssistanceStatus and lastProductStatus.vignetteRoadAssistanceStatus %}
<road-assistance
:price=\"{{ road_assistance_service.retrieveDefaultPrice }}\"
:terms-and-conditions-route=\"'{{ path('bitbag_sylius_cms_plugin_shop_page_show', {'slug' : 'terms-and-conditions-road-assistance'}) }}'\"
v-bind:is-mobile=\"false\"></road-assistance>
{% endif %}
</div>
<div class=\"row mt-2\">
<div class=\"col-12\">
<div id=\"divCnairAlert\" class=\"vignette-alert-container px-2 py-3 bg-white d-none\">
<div class=\"d-flex justify-content-between align-items-center-center\">
<div class=\"custom-control custom-checkbox\">
<input type=\"checkbox\" name=\"email_allowed\" id=\"email_allowed\" class=\"custom-control-input\">
<label for=\"email_allowed\" class=\"custom-control-label\">
<h5 class=\"text-dark\" style=\"letter-spacing: 0.01em;\">{{'app.ui.cnair_alert'|trans}}</h5>
</label>
</div>
</div>
<div id=\"divEmail\" class=\"d-none\">
<input id=\"email\" name=\"email\" type=\"text\" class=\"form-control input-custom input-custom-grey required\" >
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"col-12 col-sm-12 col-md-12 col-lg-2 col-xl-2 d-flex align-items-center justify-content-center my-4\">
<div>
<div class=\"second-step error-messages\">
</div>
<div class=\"btn-wrapper\">
<button id=\"btnSubmitVignette\" type=\"submit\" class=\"btn btn-primary-inactive btn-submit w-100\" style=\"height: 40px\"><a>{{'app.ui.buy_now'|trans}}</a></button>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div class=\"bs-stepper-content\">
<div class=\"row my-3\">
{% if accordionBlocksAboutVignette|length > 0 %}
{% for key, block in accordionBlocksAboutVignette %}
<div class=\"col-12 col-sm-6 col-md-6 col-lg-3 col-xl-3 my-3\">
<button class=\"accordion\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse{{ key }}\" aria-expanded=\"false\" aria-controls=\"collapse{{ key }}\">{{ block.name }}</button>
<div class=\"collapse\" id=\"collapse{{ key }}\">
<div class=\"card card-body border\">{{ block.content|raw }}</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>
</div>
</div>
</div>
<script>
\$(document).ready(function () {
let locale = getLocale();
function getLocale() {
let url = Routing.generate('app_shop_get_locale');
\$.ajax({
url: url,
type: 'GET',
async: false,
dataType: 'json',
success: function (locale) {
if (locale == 'ro_RO' || locale == 'ro') {
\$('[name=\"carCountry\"] option').filter(function() {
return (\$(this).val() == 'RO');
}).prop('selected', true).change();
}
},
error: function (data) {
}
});
}
})
var stepper = new Stepper(\$('.bs-stepper')[0]);
</script>
<script>
const route = \"{{ path('sylius_shop_homepage')|escape('js') }}\";
const roadAssistanceTranslations = '{{ roadAssistanceTranslations|json_encode|raw }}';
</script>
{{ encore_entry_script_tags('vue') }}
<style>
.text-primary {
color: #E95A31;
}
.webkit-none {
-webkit-appearance: none !important;
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight {
background: none !important;
color: #454545 !important;
border: none !important;
}
.modal-backdrop {
opacity: 50% !important;
}
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
background-color: #e95a31 !important;
}
.b-calendar-grid-body {
margin-left: .5rem!important;
margin-right: .5rem!important;
}
.b-calendar-grid-weekdays {
border: none !important;
}
.loading {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
z-index: 999;
position: fixed;
background-color: rgba(0,0,0,0.7);
opacity: 100%;
width: 100%;
height: 100%;
}
</style>
{% else %}
<div class=\"card text-center my-3\">
<div class=\"card-header\">
<h2>{{ 'app.ui.disabled_temporary'|trans }}</h2>
</div>
<div class=\"card-body\">
<a href=\"{{ path('sylius_shop_homepage') }}\">{{ 'sylius.ui.back_to_store'|trans }}</a>
</div>
</div>
{% endif %}
{% endblock %}
", "@templates/Front/vignette.html.twig", "/vhosts/test/templates/Front/vignette.html.twig");
}
}