var/cache/dev/twig/56/568f8c1b041764bd7d5354c2b9f138fe701c4aae69275b8e897eb3c1aab46312.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/service/step4/recapitulatif.html.twig */
  14. class __TwigTemplate_b54f36d21a49308d6535816125e2a23f8bdd3c91d25cdc444da655ccfdab02ed extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/service/step4/recapitulatif.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/service/step4/recapitulatif.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""front/service/step4/recapitulatif.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo " Récapitulatif de devis : ";
  56.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'3$this->source); })()), "title", [], "any"falsefalsefalse3), "html"nulltrue);
  57.         echo " | ";
  58.         $this->displayParentBlock("title"$context$blocks);
  59.         echo " ";
  60.         
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  62.         
  63.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  64.     }
  65.     // line 5
  66.     public function block_body($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  73.         // line 6
  74.         echo "<section class=\"grey-blue-bg small-padding\">
  75.     <div class=\"container\">
  76.         <div class=\"row\">
  77.             <div class=\"col-md-8\">
  78.                 ";
  79.         // line 10
  80.         echo twig_include($this->env$context"base-default/message-flash-devis.html.twig");
  81.         echo "
  82.                 <div class=\"list-single-main-container pl-0\">
  83.                     <div class=\"title-devis\">
  84.                         <span>Devis immédiat pour ";
  85.         // line 13
  86.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'13$this->source); })()), "title", [], "any"falsefalsefalse13), "html"nulltrue);
  87.         echo "</span>
  88.                     </div>
  89.                     <div class=\"etape-demande-devis fl-wrap mb-4\">
  90.                         <div class=\"flex-center-wrap\">
  91.                             <a href=\"";
  92.         // line 17
  93.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_client_service", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'17$this->source); })()), "slug", [], "any"falsefalsefalse17)]), "html"nulltrue);
  94.         echo "\"><span>1</span> Type de trajet</a>
  95.                             <a href=\"";
  96.         // line 18
  97.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_client_service_route_description", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'18$this->source); })()), "slug", [], "any"falsefalsefalse18)]), "html"nulltrue);
  98.         echo "\"><span>2</span> Description trajet</a>
  99.                             <a href=\"";
  100.         // line 19
  101.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_client_service_login_info", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'19$this->source); })()), "slug", [], "any"falsefalsefalse19)]), "html"nulltrue);
  102.         echo "\"><span>3</span> Vos informations</a>
  103.                             <a href=\"#\" class=\"active\"><span>4</span> Récapitulatif/Validation</a>
  104.                         </div> 
  105.                         <div class=\"box-widget-list text-left mt-3\">
  106.                             <div class=\"d-flex align-items-center\">
  107.                                 <img src=\"";
  108.         // line 24
  109.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/bot-recap.png"), "html"nulltrue);
  110.         echo "\" class=\"img-recap-devis\" alt=\"\" />
  111.                                 <p class=\"p-recap-devis\">Nous allons faire un récapitulatif ensemble.</p>
  112.                             </div>
  113.                         </div>
  114.                         <div class=\"box-widget-list text-left mt-1\">
  115.                             <p>Vous avez besoin <span class=\"text-theme-bleu-marine fw-bold text-uppercase\">";
  116.         // line 30
  117.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'30$this->source); })()), "title", [], "any"falsefalsefalse30), "html"nulltrue);
  118.         echo "</span> pour <span class=\"text-theme-bleu-marine fw-bold\">";
  119.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'30$this->source); })()), "numberOfPeople", [], "any"falsefalsefalse30), "html"nulltrue);
  120.         echo "</span> personne(s) au départ de <span class=\"text-theme-bleu-marine fw-bold\">";
  121.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'30$this->source); })()), "departureAddress", [], "any"falsefalsefalse30), "html"nulltrue);
  122.         echo "</span>";
  123.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'30$this->source); })()), "typeOfTrip", [], "any"falsefalsefalse30), "Séjours"))) {
  124.             echo ", le <span class=\"text-theme-bleu-marine fw-bold\">";
  125.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'30$this->source); })()), "departureDate", [], "any"falsefalsefalse30), "d/m/Y"), "html"nulltrue);
  126.             echo "</span>";
  127.         }
  128.         echo " à <span class=\"text-theme-bleu-marine fw-bold\">";
  129.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'30$this->source); })()), "departureTime", [], "any"falsefalsefalse30), "H\\hi"), "html"nulltrue);
  130.         echo "</span> en destination de <span class=\"text-theme-bleu-marine fw-bold\">";
  131.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'30$this->source); })()), "arrivalAddress", [], "any"falsefalsefalse30), "html"nulltrue);
  132.         echo "</span>. </p>
  133.                             ";
  134.         // line 31
  135.         if ((twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'31$this->source); })()), "distance", [], "any"falsefalsefalse31) && twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'31$this->source); })()), "distancePerTrip", [], "any"falsefalsefalse31))) {
  136.             // line 32
  137.             echo "                                <p>Vous allez parcourir une distance approximative de <span class=\"text-theme-bleu-marine fw-bold\">";
  138.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'32$this->source); })()), "distance", [], "any"falsefalsefalse32), "html"nulltrue);
  139.             echo " (";
  140.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'32$this->source); })()), "distancePerTrip", [], "any"falsefalsefalse32), "html"nulltrue);
  141.             echo " par trajet)</span>.</p>
  142.                             ";
  143.         } else {
  144.             // line 34
  145.             echo "                                <p>Vous allez parcourir une distance approximative de <span class=\"text-theme-bleu-marine fw-bold\">";
  146.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'34$this->source); })()), "distance", [], "any"falsefalsefalse34), "html"nulltrue);
  147.             echo "</span>.</p>
  148.                             ";
  149.         }
  150.         // line 36
  151.         echo "                            ";
  152.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'36$this->source); })()), "needVehicleOnSite", [], "any"falsefalsefalse36), "Non"))) {
  153.             // line 37
  154.             echo "                                <p>Sur place, vous n'aurez pas besoin du véhicule.</p>
  155.                             ";
  156.         } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source,         // line 38
  157. (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'38$this->source); })()), "needVehicleOnSite", [], "any"falsefalsefalse38), "Oui"))) {
  158.             // line 39
  159.             echo "                                ";
  160.             if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'39$this->source); })()), "typeOfTrip", [], "any"falsefalsefalse39), "Séjours"))) {
  161.                 // line 40
  162.                 echo "                                    <p class=\"pb-0\">Voici le détail des destinations pendant votre séjour :</p>
  163.                                 ";
  164.             } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source,             // line 41
  165. (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'41$this->source); })()), "typeOfTrip", [], "any"falsefalsefalse41), "Aller-Retour"))) {
  166.                 // line 42
  167.                 echo "                                    <p class=\"pb-0\">Voici le détail des destinations pendant votre trajet :</p>
  168.                                 ";
  169.             }
  170.             // line 44
  171.             echo "                                ";
  172.             $context['_parent'] = $context;
  173.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'44$this->source); })()), "vehicleDetails", [], "any"falsefalsefalse44));
  174.             $context['loop'] = [
  175.               'parent' => $context['_parent'],
  176.               'index0' => 0,
  177.               'index'  => 1,
  178.               'first'  => true,
  179.             ];
  180.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  181.                 $length count($context['_seq']);
  182.                 $context['loop']['revindex0'] = $length 1;
  183.                 $context['loop']['revindex'] = $length;
  184.                 $context['loop']['length'] = $length;
  185.                 $context['loop']['last'] = === $length;
  186.             }
  187.             foreach ($context['_seq'] as $context["_key"] => $context["vehicleDetail"]) {
  188.                 // line 45
  189.                 echo "                                    ";
  190.                 if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'45$this->source); })()), "typeOfTrip", [], "any"falsefalsefalse45), "Séjours"))) {
  191.                     // line 46
  192.                     echo "                                        <p ";
  193.                     if (twig_get_attribute($this->env$this->source$context["vehicleDetail"], "infos", [], "any"falsefalsefalse46)) {
  194.                         echo "class=\"pb-0\"";
  195.                     } else {
  196.                         if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse46)) {
  197.                         } else {
  198.                             echo "class=\"pb-0\"";
  199.                         }
  200.                     }
  201.                     echo "><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> Le <span class=\"text-theme-bleu-marine fw-bold\">";
  202.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "day", [], "any"falsefalsefalse46), "d/m/Y"), "html"nulltrue);
  203.                     echo "</span>, départ de <span class=\"text-theme-bleu-marine fw-bold\">";
  204.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "departureAddress", [], "any"falsefalsefalse46), "html"nulltrue);
  205.                     echo "</span> à destination de <span class=\"text-theme-bleu-marine fw-bold\">";
  206.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "destinationAddress", [], "any"falsefalsefalse46), "html"nulltrue);
  207.                     echo "</span>. Départ à <span class=\"text-theme-bleu-marine fw-bold\">";
  208.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "departureTime", [], "any"falsefalsefalse46), "H\\hi"), "html"nulltrue);
  209.                     echo "</span> et retour à <span class=\"text-theme-bleu-marine fw-bold\">";
  210.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "returnTime", [], "any"falsefalsefalse46), "H\\hi"), "html"nulltrue);
  211.                     echo "</span>. </p>
  212.                                         ";
  213.                     // line 47
  214.                     if (twig_get_attribute($this->env$this->source$context["vehicleDetail"], "infos", [], "any"falsefalsefalse47)) {
  215.                         // line 48
  216.                         echo "                                            <p ";
  217.                         if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse48)) {
  218.                         } else {
  219.                             echo "class=\"pb-0\"";
  220.                         }
  221.                         echo ">Informations supplémentaires : <span class=\"text-theme-bleu-marine fw-bold\">";
  222.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "infos", [], "any"falsefalsefalse48), "html"nulltrue);
  223.                         echo "</span></p>
  224.                                         ";
  225.                     }
  226.                     // line 50
  227.                     echo "                                    ";
  228.                 } elseif ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'50$this->source); })()), "typeOfTrip", [], "any"falsefalsefalse50), "Aller-Retour"))) {
  229.                     // line 51
  230.                     echo "                                        <p ";
  231.                     if (twig_get_attribute($this->env$this->source$context["vehicleDetail"], "infos", [], "any"falsefalsefalse51)) {
  232.                         echo "class=\"pb-0\"";
  233.                     } else {
  234.                         if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse51)) {
  235.                         } else {
  236.                             echo "class=\"pb-0\"";
  237.                         }
  238.                     }
  239.                     echo "><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> Trajet Aller-Retour : départ de <span class=\"text-theme-bleu-marine fw-bold\">";
  240.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "departureAddress", [], "any"falsefalsefalse51), "html"nulltrue);
  241.                     echo "</span> à destination de <span class=\"text-theme-bleu-marine fw-bold\">";
  242.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "destinationAddress", [], "any"falsefalsefalse51), "html"nulltrue);
  243.                     echo "</span>. Départ à <span class=\"text-theme-bleu-marine fw-bold\">";
  244.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "departureTime", [], "any"falsefalsefalse51), "H\\hi"), "html"nulltrue);
  245.                     echo "</span> et retour à <span class=\"text-theme-bleu-marine fw-bold\">";
  246.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "returnTime", [], "any"falsefalsefalse51), "H\\hi"), "html"nulltrue);
  247.                     echo "</span>. </p>
  248.                                         ";
  249.                     // line 52
  250.                     if (twig_get_attribute($this->env$this->source$context["vehicleDetail"], "infos", [], "any"falsefalsefalse52)) {
  251.                         // line 53
  252.                         echo "                                            <p ";
  253.                         if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse53)) {
  254.                         } else {
  255.                             echo "class=\"pb-0\"";
  256.                         }
  257.                         echo ">Informations supplémentaires : <span class=\"text-theme-bleu-marine fw-bold\">";
  258.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "infos", [], "any"falsefalsefalse53), "html"nulltrue);
  259.                         echo "</span></p>
  260.                                         ";
  261.                     }
  262.                     // line 54
  263.                     echo 
  264.                                     ";
  265.                 }
  266.                 // line 56
  267.                 echo "                                ";
  268.                 ++$context['loop']['index0'];
  269.                 ++$context['loop']['index'];
  270.                 $context['loop']['first'] = false;
  271.                 if (isset($context['loop']['length'])) {
  272.                     --$context['loop']['revindex0'];
  273.                     --$context['loop']['revindex'];
  274.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  275.                 }
  276.             }
  277.             $_parent $context['_parent'];
  278.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['vehicleDetail'], $context['_parent'], $context['loop']);
  279.             $context array_intersect_key($context$_parent) + $_parent;
  280.             // line 57
  281.             echo "                            ";
  282.         }
  283.         // line 58
  284.         echo "                            ";
  285.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'58$this->source); })()), "addPdfDocument", [], "any"falsefalsefalse58), "Oui"))) {
  286.             // line 59
  287.             echo "                                <p class=\"pb-0\">Vous souhaitez envoyer le(s) document(s) suivant(s) au transporteur :</p>
  288.                                 ";
  289.             // line 60
  290.             $context['_parent'] = $context;
  291.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'60$this->source); })()), "attachments", [], "any"falsefalsefalse60));
  292.             $context['loop'] = [
  293.               'parent' => $context['_parent'],
  294.               'index0' => 0,
  295.               'index'  => 1,
  296.               'first'  => true,
  297.             ];
  298.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  299.                 $length count($context['_seq']);
  300.                 $context['loop']['revindex0'] = $length 1;
  301.                 $context['loop']['revindex'] = $length;
  302.                 $context['loop']['length'] = $length;
  303.                 $context['loop']['last'] = === $length;
  304.             }
  305.             foreach ($context['_seq'] as $context["_key"] => $context["attachment"]) {
  306.                 // line 61
  307.                 echo "                                    <p ";
  308.                 if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse61)) {
  309.                 } else {
  310.                     echo "class=\"pb-0\"";
  311.                 }
  312.                 echo "><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> <span class=\"xt-theme-bleu-marine fw-bold text-italic\">";
  313.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["attachment"], "originalName", [], "any"falsefalsefalse61), "html"nulltrue);
  314.                 echo "</span></p>
  315.                                 ";
  316.                 ++$context['loop']['index0'];
  317.                 ++$context['loop']['index'];
  318.                 $context['loop']['first'] = false;
  319.                 if (isset($context['loop']['length'])) {
  320.                     --$context['loop']['revindex0'];
  321.                     --$context['loop']['revindex'];
  322.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  323.                 }
  324.             }
  325.             $_parent $context['_parent'];
  326.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attachment'], $context['_parent'], $context['loop']);
  327.             $context array_intersect_key($context$_parent) + $_parent;
  328.             // line 63
  329.             echo "                            ";
  330.         }
  331.         // line 64
  332.         echo "                            ";
  333.         if (((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'64$this->source); })()), "typeOfTrip", [], "any"falsefalsefalse64), "Aller-Retour")) || (=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'64$this->source); })()), "typeOfTrip", [], "any"falsefalsefalse64), "Séjours")))) {
  334.             // line 65
  335.             echo "                                <p>Votre retour s'effectuera ";
  336.             if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'65$this->source); })()), "typeOfTrip", [], "any"falsefalsefalse65), "Séjours"))) {
  337.                 echo "le <span class=\"text-theme-bleu-marine fw-bold\">";
  338.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'65$this->source); })()), "returnDate", [], "any"falsefalsefalse65), "d/m/Y"), "html"nulltrue);
  339.                 echo "</span>";
  340.             }
  341.             echo " à <span class=\"text-theme-bleu-marine fw-bold\">";
  342.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'65$this->source); })()), "returnTime", [], "any"falsefalsefalse65), "H\\hi"), "html"nulltrue);
  343.             echo "</span> depuis le <span class=\"text-theme-bleu-marine fw-bold\">";
  344.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'65$this->source); })()), "arrivalAddress", [], "any"falsefalsefalse65), "html"nulltrue);
  345.             echo "</span> vers <span class=\"text-theme-bleu-marine fw-bold\">";
  346.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'65$this->source); })()), "departureAddress", [], "any"falsefalsefalse65), "html"nulltrue);
  347.             echo "</span>. </p>
  348.                             ";
  349.         }
  350.         // line 67
  351.         echo "                            <p>Vous ";
  352.         if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'67$this->source); })()), "devisLuggage", [], "any"falsefalsefalse67), "name", [], "any"falsefalsefalse67), "Aucun bagage"))) {
  353.             echo "ne";
  354.         }
  355.         echo " disposerez d";
  356.         if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'67$this->source); })()), "devisLuggage", [], "any"falsefalsefalse67), "name", [], "any"falsefalsefalse67), "Aucun bagage"))) {
  357.             echo "'";
  358.         } else {
  359.             echo "e";
  360.         }
  361.         echo " <span class=\"text-theme-bleu-marine fw-bold\">";
  362.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'67$this->source); })()), "devisLuggage", [], "any"falsefalsefalse67), "name", [], "any"falsefalsefalse67), "html"nulltrue);
  363.         echo "</span>, et le type de déplacement sera <span class=\"text-theme-bleu-marine fw-bold\">";
  364.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'67$this->source); })()), "devisTravelReason", [], "any"falsefalsefalse67), "name", [], "any"falsefalsefalse67), "html"nulltrue);
  365.         echo "</span>.</p>
  366.                             ";
  367.         // line 68
  368.         if ((twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'68$this->source); })()), "devisEquipment", [], "any"falsefalsefalse68) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'68$this->source); })()), "devisEquipment", [], "any"falsefalsefalse68)))) {
  369.             // line 69
  370.             echo "                                <p class=\"pb-0\">Vous avez besoin d'équipements particuliers dans le véhicule ci-dessous :</p>
  371.                                 ";
  372.             // line 70
  373.             $context['_parent'] = $context;
  374.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'70$this->source); })()), "devisEquipment", [], "any"falsefalsefalse70));
  375.             $context['loop'] = [
  376.               'parent' => $context['_parent'],
  377.               'index0' => 0,
  378.               'index'  => 1,
  379.               'first'  => true,
  380.             ];
  381.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  382.                 $length count($context['_seq']);
  383.                 $context['loop']['revindex0'] = $length 1;
  384.                 $context['loop']['revindex'] = $length;
  385.                 $context['loop']['length'] = $length;
  386.                 $context['loop']['last'] = === $length;
  387.             }
  388.             foreach ($context['_seq'] as $context["_key"] => $context["equipment"]) {
  389.                 // line 71
  390.                 echo "                                <p ";
  391.                 if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse71)) {
  392.                 } else {
  393.                     echo "class=\"pb-0\"";
  394.                 }
  395.                 echo "><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> ";
  396.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["equipment"], "name", [], "any"falsefalsefalse71), "html"nulltrue);
  397.                 echo "</p>
  398.                                 ";
  399.                 ++$context['loop']['index0'];
  400.                 ++$context['loop']['index'];
  401.                 $context['loop']['first'] = false;
  402.                 if (isset($context['loop']['length'])) {
  403.                     --$context['loop']['revindex0'];
  404.                     --$context['loop']['revindex'];
  405.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  406.                 }
  407.             }
  408.             $_parent $context['_parent'];
  409.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['equipment'], $context['_parent'], $context['loop']);
  410.             $context array_intersect_key($context$_parent) + $_parent;
  411.             // line 73
  412.             echo "                            ";
  413.         } else {
  414.             // line 74
  415.             echo "                                <p>Vous n'avez pas besoin d'équipements particuliers dans le véhicule.</p>
  416.                             ";
  417.         }
  418.         // line 76
  419.         echo "                        </div>
  420.                         <div class=\"box-widget-list\">
  421.                             <hr class=\"my-2\">
  422.                         </div>
  423.                         <div class=\"box-widget-list text-left mt-4 mb-1\">
  424.                             <h1 class=\"text-theme-bleu-marine text-uppercase text-center fw-bold\">Option de diffusion</h1>
  425.                         </div>
  426.                         <div class=\"devis-currency-wrap\">
  427.                             <div class=\"show-currency-devis\">
  428.                                 <span class=\"text-theme-orange text-uppercase fw-bold mr-1\">
  429.                                     <img src=\"";
  430.         // line 87
  431.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/money_8366606.png"), "html"nulltrue);
  432.         echo "\" class=\"img-crab-devis mr-2\" alt=\"\"> ";
  433.         echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'87$this->source); })()), "user", [], "any"falsefalsefalse87), "creditBalance", [], "any"falsefalsefalse87), 2","" "), "html"nulltrue);
  434.         echo " Crédit(s) 
  435.                                 </span>
  436.                                 <span class=\"text-theme-gray text-uppercase fw-bold mr-1\"> Restant</span>
  437.                                 <span class=\"text-uppercase btn-recharger-devis modal-open\">Recharger</span>
  438.                             </div>
  439.                         </div>
  440.                         
  441.                         ";
  442.         // line 94
  443.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'94$this->source); })()), 'form_start');
  444.         echo "
  445.                         <div class=\"form-diffusion-option\">
  446.                             <div class=\"mb-1\">
  447.                                 ";
  448.         // line 97
  449.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'97$this->source); })()), "miseEnAvance", [], "any"falsefalsefalse97), 'widget');
  450.         echo "
  451.                                 <img src=\"";
  452.         // line 98
  453.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/views.png"), "html"nulltrue);
  454.         echo "\" class=\"ml-1\" alt=\"\">
  455.                                 <label for=\"sg_devis_miseEnAvance\">Mise en avant de votre demande <span class=\"dot-mise-en-avance\">:</span> <span class=\"ml-2\">6 Crédits</span></label>
  456.                             </div>
  457.                             <div class=\"mb-1\">
  458.                                 ";
  459.         // line 102
  460.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'102$this->source); })()), "remonteEnTeteDeListe", [], "any"falsefalsefalse102), 'widget');
  461.         echo "
  462.                                 <img src=\"";
  463.         // line 103
  464.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/up_annonce.png"), "html"nulltrue);
  465.         echo "\" class=\"ml-1\" alt=\"\">
  466.                                 <label for=\"sg_devis_remonteEnTeteDeListe\">Remonter en tête de liste tout les jours : <span class=\"ml-2\">8 Crédits</span></label>
  467.                             </div>
  468.                             <div class=\"mb-1\">
  469.                                 ";
  470.         // line 107
  471.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'107$this->source); })()), "demandeUrgente", [], "any"falsefalsefalse107), 'widget');
  472.         echo "
  473.                                 <img src=\"";
  474.         // line 108
  475.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/annonce_urgente.png"), "html"nulltrue);
  476.         echo "\" class=\"ml-1\" alt=\"\">
  477.                                 <label for=\"sg_devis_demandeUrgente\">Logo demande urgente <span class=\"dot-demande-urgente\">:</span> <span class=\"ml-2\">3 Crédits</span></label>
  478.                             </div>
  479.                             <div class=\"div-total-devis\">
  480.                                 ";
  481.         // line 113
  482.         if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'113$this->source); })()), "vars", [], "any"falsefalsefalse113), "errors", [], "any"falsefalsefalse113))) {
  483.             // line 114
  484.             echo "                                    <div class=\"form-error\">
  485.                                         ";
  486.             // line 115
  487.             $context['_parent'] = $context;
  488.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'115$this->source); })()), "vars", [], "any"falsefalsefalse115), "errors", [], "any"falsefalsefalse115));
  489.             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  490.                 // line 116
  491.                 echo "                                            <p class=\"pb-0\">";
  492.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["error"], "message", [], "any"falsefalsefalse116), "html"nulltrue);
  493.                 echo "</p>
  494.                                         ";
  495.             }
  496.             $_parent $context['_parent'];
  497.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  498.             $context array_intersect_key($context$_parent) + $_parent;
  499.             // line 118
  500.             echo "                                    </div>
  501.                                 ";
  502.         }
  503.         // line 120
  504.         echo "                                <div class=\"\">   
  505.                                     <p class=\"text-uppercase fw-bold\">Total : <span id=\"total-balance\" class=\"text-theme-orange\">xx</span><span class=\"text-theme-orange\"> crédit(s)</span></p>
  506.                                 </div>
  507.                             </div>
  508.                         </div>            
  509.                         
  510.                         <div class=\"book-form\">
  511.                             <div class=\"width-100 d-flex justify-content-between flex-wrap mt-4\">
  512.                                 <a href=\"";
  513.         // line 128
  514.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_client_service_login_info", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'128$this->source); })()), "slug", [], "any"falsefalsefalse128)]), "html"nulltrue);
  515.         echo "\" class=\"btn-prev color3-bg\">
  516.                                     <i class=\"fal fa-angle-double-left\"></i> Précédent
  517.                                 </a>
  518.                                 <button type=\"submit\" class=\"btn-next color2-bg\">
  519.                                     ";
  520.         // line 132
  521.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Validation", [], "messages");
  522.         // line 133
  523.         echo "                                </button>
  524.                             </div>
  525.                         </div>
  526.                         ";
  527.         // line 136
  528.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'136$this->source); })()), 'form_end');
  529.         echo "
  530.                     </div>
  531.                 </div>
  532.             </div>
  533.             <div class=\"col-md-4\">
  534.                 <div class=\"box-widget-wrap\">  
  535.                     <div class=\"box-widget-item fl-wrap\">
  536.                         <div class=\"box-widget widget-posts\">
  537.                             <div class=\"box-widget-content pb-3\">
  538.                                 <div class=\"box-widget-item-header mb-3\">
  539.                                     <h3 class=\"text-uppercase fw-bold text-theme-bleu-marine\">Votre demande</h3>
  540.                                 </div>
  541.                                 <div class=\"box-widget-list\">
  542.                                     <h4 class=\"text-left mb-3 step-devis-request text-theme-bleu-marine fw-bold\"><span>1</span> Type de trajet</h4>
  543.                                 </div>
  544.                                 <div id=\"map-distance-2address\" data-departure-address=";
  545.         // line 153
  546.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'153$this->source); })()), "departureAddress", [], "any"falsefalsefalse153), "html_attr");
  547.         echo " data-arrival-address=";
  548.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'153$this->source); })()), "arrivalAddress", [], "any"falsefalsefalse153), "html_attr");
  549.         echo " data-start-latitude=\"";
  550.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'153$this->source); })()), "startLatitude", [], "any"falsefalsefalse153), "html_attr");
  551.         echo "\" data-start-longitude=\"";
  552.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'153$this->source); })()), "startLongitude", [], "any"falsefalsefalse153), "html_attr");
  553.         echo "\" data-end-latitude=\"";
  554.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'153$this->source); })()), "endLatitude", [], "any"falsefalsefalse153), "html_attr");
  555.         echo "\" data-end-longitude=\"";
  556.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'153$this->source); })()), "endLongitude", [], "any"falsefalsefalse153), "html_attr");
  557.         echo "\"></div>
  558.                                 <div class=\"box-widget-list\">
  559.                                     <h4 class=\"text-left text-uppercase text-theme-orange fw-bold mb-1\">";
  560.         // line 155
  561.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'155$this->source); })()), "typeOfTrip", [], "any"falsefalsefalse155), "html"nulltrue);
  562.         echo "</h4>
  563.                                 </div>
  564.                                 <div class=\"box-widget-list\">
  565.                                     <ul>
  566.                                         ";
  567.         // line 159
  568.         if (twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'159$this->source); })()), "departureAddress", [], "any"falsefalsefalse159)) {
  569.             // line 160
  570.             echo "                                            <li class=\"departure-address\"><a href=\"#\" class=\"mx-0\"><i class=\"fal fa-map-marker-alt\"></i> ";
  571.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'160$this->source); })()), "departureAddress", [], "any"falsefalsefalse160), "html"nulltrue);
  572.             echo "</a></li>
  573.                                         ";
  574.         }
  575.         // line 162
  576.         echo "                                        ";
  577.         if (twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'162$this->source); })()), "arrivalAddress", [], "any"falsefalsefalse162)) {
  578.             // line 163
  579.             echo "                                            <li class=\"arrival-address\"><a href=\"#\" class=\"mx-0\"><i class=\"fal fa-map-pin\"></i> ";
  580.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'163$this->source); })()), "arrivalAddress", [], "any"falsefalsefalse163), "html"nulltrue);
  581.             echo "</a></li>
  582.                                         ";
  583.         }
  584.         // line 165
  585.         echo "                                        ";
  586.         if ((twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'165$this->source); })()), "departureDate", [], "any"falsefalsefalse165) && twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'165$this->source); })()), "departureTime", [], "any"falsefalsefalse165))) {
  587.             // line 166
  588.             echo "                                            <li class=\"mb-2\"><span><i class=\"fal fa-calendar-alt\"></i> Aller :</span> <a href=\"#\">";
  589.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'166$this->source); })()), "departureDate", [], "any"falsefalsefalse166), "d/m/Y"), "html"nulltrue);
  590.             echo " départ à ";
  591.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'166$this->source); })()), "departureTime", [], "any"falsefalsefalse166), "H\\hi"), "html"nulltrue);
  592.             echo "</a></li>
  593.                                         ";
  594.         }
  595.         // line 168
  596.         echo "                                        ";
  597.         if ((twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'168$this->source); })()), "returnDate", [], "any"falsefalsefalse168) && twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'168$this->source); })()), "returnTime", [], "any"falsefalsefalse168))) {
  598.             // line 169
  599.             echo "                                            <li class=\"mb-2\"><span><i class=\"fal fa-calendar-alt\"></i> Retour :</span> <a href=\"#\">";
  600.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'169$this->source); })()), "returnDate", [], "any"falsefalsefalse169), "d/m/Y"), "html"nulltrue);
  601.             echo " départ à ";
  602.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'169$this->source); })()), "returnTime", [], "any"falsefalsefalse169), "H\\hi"), "html"nulltrue);
  603.             echo " </a></li>
  604.                                         ";
  605.         } elseif (((null === twig_get_attribute($this->env$this->source,         // line 170
  606. (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'170$this->source); })()), "returnDate", [], "any"falsefalsefalse170)) && twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'170$this->source); })()), "returnTime", [], "any"falsefalsefalse170))) {
  607.             // line 171
  608.             echo "                                            <li class=\"mb-2\"><span><i class=\"fal fa-clock\"></i> Retour :</span> <a href=\"#\"> ";
  609.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'171$this->source); })()), "returnTime", [], "any"falsefalsefalse171), "H\\hi"), "html"nulltrue);
  610.             echo " </a></li>
  611.                                         ";
  612.         }
  613.         // line 173
  614.         echo "                                        ";
  615.         if ((twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'173$this->source); })()), "distance", [], "any"falsefalsefalse173) && twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'173$this->source); })()), "distancePerTrip", [], "any"falsefalsefalse173))) {
  616.             // line 174
  617.             echo "                                            <li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Distance :</span> <a href=\"#\">";
  618.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'174$this->source); })()), "distance", [], "any"falsefalsefalse174), "html"nulltrue);
  619.             echo " (";
  620.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'174$this->source); })()), "distancePerTrip", [], "any"falsefalsefalse174), "html"nulltrue);
  621.             echo " par trajet)</a></li>
  622.                                         ";
  623.         } else {
  624.             // line 176
  625.             echo "                                            <li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Distance :</span> <a href=\"#\">";
  626.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'176$this->source); })()), "distance", [], "any"falsefalsefalse176), "html"nulltrue);
  627.             echo "</a></li>
  628.                                         ";
  629.         }
  630.         // line 178
  631.         echo "                                        ";
  632.         if (twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'178$this->source); })()), "numberOfPeople", [], "any"falsefalsefalse178)) {
  633.             // line 179
  634.             echo "                                            <li><span><i class=\"fal fa-users\"></i> Passagers :</span> <a href=\"#\">";
  635.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'179$this->source); })()), "numberOfPeople", [], "any"falsefalsefalse179), "html"nulltrue);
  636.             echo "</a></li>
  637.                                         ";
  638.         }
  639.         // line 181
  640.         echo "                                    </ul>
  641.                                 </div>
  642.                             </div>
  643.                             <div class=\"box-widget-content pt-0\">
  644.                                 <div class=\"box-widget-list\">
  645.                                     <h4 class=\"text-left mb-1 step-devis-request text-theme-bleu-marine fw-bold\"><span>2</span> Description trajet</h4>
  646.                                 </div>
  647.                                 <div class=\"box-widget-list\">
  648.                                     <ul>
  649.                                         <li class=\"departure-address mb-0\"><a href=\"#\" class=\"mx-0 text-uppercase\"><i class=\"fal fa-car\"></i> Utilisation du véhicule : ";
  650.         // line 190
  651.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'190$this->source); })()), "needVehicleOnSite", [], "any"falsefalsefalse190), "Oui"))) {
  652.             echo "<strong>Oui</strong>";
  653.         } else {
  654.             echo "<strong>Non</strong>";
  655.         }
  656.         echo "</a></li>
  657.                                         ";
  658.         // line 191
  659.         if ((twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'191$this->source); })()), "vehicleDetails", [], "any"falsefalsefalse191) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'191$this->source); })()), "vehicleDetails", [], "any"falsefalsefalse191)))) {
  660.             // line 192
  661.             echo "                                            ";
  662.             $context['_parent'] = $context;
  663.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'192$this->source); })()), "vehicleDetails", [], "any"falsefalsefalse192));
  664.             foreach ($context['_seq'] as $context["_key"] => $context["vehicleDetail"]) {
  665.                 echo "   
  666.                                                 ";
  667.                 // line 193
  668.                 if (twig_get_attribute($this->env$this->source$context["vehicleDetail"], "day", [], "any"falsefalsefalse193)) {
  669.                     echo "                                         
  670.                                                 <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">- ";
  671.                     // line 194
  672.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "day", [], "any"falsefalsefalse194), "d/m/Y"), "html"nulltrue);
  673.                     echo " :</a></li>
  674.                                                 ";
  675.                 }
  676.                 // line 196
  677.                 echo "                                                ";
  678.                 if (twig_get_attribute($this->env$this->source$context["vehicleDetail"], "departureAddress", [], "any"falsefalsefalse196)) {
  679.                     echo "           
  680.                                                 <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">";
  681.                     // line 197
  682.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "departureAddress", [], "any"falsefalsefalse197), "html"nulltrue);
  683.                     echo ",</a></li>
  684.                                                 ";
  685.                 }
  686.                 // line 199
  687.                 echo "                                                ";
  688.                 if (twig_get_attribute($this->env$this->source$context["vehicleDetail"], "destinationAddress", [], "any"falsefalsefalse199)) {
  689.                     // line 200
  690.                     echo "                                                <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">";
  691.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "destinationAddress", [], "any"falsefalsefalse200), "html"nulltrue);
  692.                     echo "</a></li>
  693.                                                 ";
  694.                 }
  695.                 // line 202
  696.                 echo "                                                ";
  697.                 if ((twig_get_attribute($this->env$this->source$context["vehicleDetail"], "departureTime", [], "any"falsefalsefalse202) && twig_get_attribute($this->env$this->source$context["vehicleDetail"], "returnTime", [], "any"falsefalsefalse202))) {
  698.                     // line 203
  699.                     echo "                                                <li class=\"departure-address ";
  700.                     if (twig_get_attribute($this->env$this->source$context["vehicleDetail"], "infos", [], "any"falsefalsefalse203)) {
  701.                         echo "py-0";
  702.                     } else {
  703.                         echo "pt-0";
  704.                     }
  705.                     echo "\"><a href=\"#\" class=\"mx-0 text-transform-none\">Départ ";
  706.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "departureTime", [], "any"falsefalsefalse203), "H\\hi"), "html"nulltrue);
  707.                     echo " - Retour ";
  708.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["vehicleDetail"], "returnTime", [], "any"falsefalsefalse203), "H\\hi"), "html"nulltrue);
  709.                     echo "</a></li>
  710.                                                 ";
  711.                 }
  712.                 // line 205
  713.                 echo "                                                ";
  714.                 if (twig_get_attribute($this->env$this->source$context["vehicleDetail"], "infos", [], "any"falsefalsefalse205)) {
  715.                     // line 206
  716.                     echo "                                                <li class=\"departure-address pt-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">";
  717.                     echo twig_get_attribute($this->env$this->source$context["vehicleDetail"], "infos", [], "any"falsefalsefalse206);
  718.                     echo "</a></li>
  719.                                                 ";
  720.                 }
  721.                 // line 208
  722.                 echo "                                            ";
  723.             }
  724.             $_parent $context['_parent'];
  725.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['vehicleDetail'], $context['_parent'], $context['loop']);
  726.             $context array_intersect_key($context$_parent) + $_parent;
  727.             // line 209
  728.             echo "                                        ";
  729.         }
  730.         // line 210
  731.         echo "                                        <li class=\"departure-address pt-1 mb-0\"><a href=\"#\" class=\"mx-0 text-uppercase\"><i class=\"fal fa-paperclip\"></i> Documents complémentaires : ";
  732.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'210$this->source); })()), "addPdfDocument", [], "any"falsefalsefalse210), "Oui"))) {
  733.             echo "<strong>Oui</strong>";
  734.         } else {
  735.             echo "<strong>Non</strong>";
  736.         }
  737.         echo "</a></li>
  738.                                         ";
  739.         // line 211
  740.         if ((twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'211$this->source); })()), "attachments", [], "any"falsefalsefalse211) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'211$this->source); })()), "attachments", [], "any"falsefalsefalse211)))) {
  741.             // line 212
  742.             echo "                                            ";
  743.             $context['_parent'] = $context;
  744.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'212$this->source); })()), "attachments", [], "any"falsefalsefalse212));
  745.             $context['loop'] = [
  746.               'parent' => $context['_parent'],
  747.               'index0' => 0,
  748.               'index'  => 1,
  749.               'first'  => true,
  750.             ];
  751.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  752.                 $length count($context['_seq']);
  753.                 $context['loop']['revindex0'] = $length 1;
  754.                 $context['loop']['revindex'] = $length;
  755.                 $context['loop']['length'] = $length;
  756.                 $context['loop']['last'] = === $length;
  757.             }
  758.             foreach ($context['_seq'] as $context["_key"] => $context["attachment"]) {
  759.                 echo "    
  760.                                                 ";
  761.                 // line 213
  762.                 if (twig_get_attribute($this->env$this->source$context["attachment"], "originalName", [], "any"falsefalsefalse213)) {
  763.                     echo "                                               
  764.                                                 <li class=\"departure-address ";
  765.                     // line 214
  766.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse214)) {
  767.                         echo "pt-0";
  768.                     } else {
  769.                         echo "py-0";
  770.                     }
  771.                     echo "\"><a href=\"#\" class=\"mx-0 text-transform-none text-italic fw-bold text-theme-bleu-marine\">";
  772.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["attachment"], "originalName", [], "any"falsefalsefalse214), "html"nulltrue);
  773.                     echo "</a></li>
  774.                                                 ";
  775.                 }
  776.                 // line 216
  777.                 echo "                                            ";
  778.                 ++$context['loop']['index0'];
  779.                 ++$context['loop']['index'];
  780.                 $context['loop']['first'] = false;
  781.                 if (isset($context['loop']['length'])) {
  782.                     --$context['loop']['revindex0'];
  783.                     --$context['loop']['revindex'];
  784.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  785.                 }
  786.             }
  787.             $_parent $context['_parent'];
  788.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attachment'], $context['_parent'], $context['loop']);
  789.             $context array_intersect_key($context$_parent) + $_parent;
  790.             // line 217
  791.             echo "                                        ";
  792.         }
  793.         // line 218
  794.         echo "                                        
  795.                                         ";
  796.         // line 219
  797.         if (twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'219$this->source); })()), "devisTravelReason", [], "any"falsefalsefalse219)) {
  798.             // line 220
  799.             echo "                                            <li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Motif du déplacement :</span> <a href=\"#\">";
  800.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'220$this->source); })()), "devisTravelReason", [], "any"falsefalsefalse220), "name", [], "any"falsefalsefalse220), "html"nulltrue);
  801.             echo "</a></li>
  802.                                         ";
  803.         }
  804.         // line 222
  805.         echo "                                        ";
  806.         if (twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'222$this->source); })()), "devisLuggage", [], "any"falsefalsefalse222)) {
  807.             // line 223
  808.             echo "                                            <li class=\"mb-2\"><span><i class=\"fal fa-suitcase\"></i> Bagages :</span> <a href=\"#\">";
  809.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'223$this->source); })()), "devisLuggage", [], "any"falsefalsefalse223), "name", [], "any"falsefalsefalse223), "html"nulltrue);
  810.             echo "</a></li>
  811.                                         ";
  812.         }
  813.         // line 225
  814.         echo "                                        ";
  815.         if (twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'225$this->source); })()), "infos", [], "any"falsefalsefalse225)) {
  816.             // line 226
  817.             echo "                                            <li class=\"mb-2\"><span><i class=\"fal fa-info-circle\"></i> Informations complémentaires :</span></li>
  818.                                             <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">";
  819.             // line 227
  820.             echo twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'227$this->source); })()), "infos", [], "any"falsefalsefalse227);
  821.             echo "</a></li>
  822.                                         ";
  823.         }
  824.         // line 229
  825.         echo "                                        ";
  826.         if (twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'229$this->source); })()), "devisEquipment", [], "any"falsefalsefalse229)) {
  827.             // line 230
  828.             echo "                                            <li class=\"mb-2\"><span><i class=\"fal fa-screwdriver\"></i> Equipement indispensable :</span></li>
  829.                                             ";
  830.             // line 231
  831.             $context['_parent'] = $context;
  832.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'231$this->source); })()), "devisEquipment", [], "any"falsefalsefalse231));
  833.             foreach ($context['_seq'] as $context["_key"] => $context["equipment"]) {
  834.                 // line 232
  835.                 echo "                                                <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">- ";
  836.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["equipment"], "name", [], "any"falsefalsefalse232), "html"nulltrue);
  837.                 echo "</a></li>
  838.                                             ";
  839.             }
  840.             $_parent $context['_parent'];
  841.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['equipment'], $context['_parent'], $context['loop']);
  842.             $context array_intersect_key($context$_parent) + $_parent;
  843.             // line 234
  844.             echo "                                        ";
  845.         }
  846.         // line 235
  847.         echo "                                        ";
  848.         if (twig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'235$this->source); })()), "devisBudget", [], "any"falsefalsefalse235)) {
  849.             // line 236
  850.             echo "                                            <li class=\"mb-0\"><span><i class=\"fal fa-money-bill-wave\"></i> Budget :</span> <a href=\"#\">";
  851.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["devis"]) || array_key_exists("devis"$context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.'236$this->source); })()), "devisBudget", [], "any"falsefalsefalse236), "name", [], "any"falsefalsefalse236), "html"nulltrue);
  852.             echo "</a></li>
  853.                                         ";
  854.         }
  855.         // line 238
  856.         echo "                                    </ul>
  857.                                 </div>
  858.                             </div>
  859.                         </div>
  860.                     </div>  
  861.                 </div>      
  862.             </div>
  863.         </div>
  864.     </div>
  865. </section>      
  866. ";
  867.         
  868.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  869.         
  870.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  871.     }
  872.     // line 250
  873.     public function block_javascripts($context, array $blocks = [])
  874.     {
  875.         $macros $this->macros;
  876.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  877.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  878.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  879.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  880.         // line 251
  881.         echo "    ";
  882.         $this->displayParentBlock("javascripts"$context$blocks);
  883.         echo "
  884.     <script>
  885.         const stripe = Stripe('";
  886.         // line 253
  887.         echo twig_escape_filter($this->env, (isset($context["stripe_public_key"]) || array_key_exists("stripe_public_key"$context) ? $context["stripe_public_key"] : (function () { throw new RuntimeError('Variable "stripe_public_key" does not exist.'253$this->source); })()), "html"nulltrue);
  888.         echo "');
  889.         const elements = stripe.elements();
  890.         const cardNumber = elements.create('cardNumber', { placeholder: '1234 1234 1234 1234' });
  891.         cardNumber.mount('#sg_credit_reload_card_number');
  892.         const expDate = elements.create('cardExpiry');
  893.         expDate.mount('#sg_credit_reload_expiry');
  894.         const cvc = elements.create('cardCvc', { placeholder: 'CVV' });
  895.         cvc.mount('#sg_credit_reload_cvv');
  896.         cardNumber.addEventListener(\"change\", (event) => {
  897.             const displayError = document.getElementById(\"sg_credit_reload_card_errors\")
  898.             displayError.textContent = event.error ? event.error.message : \"\";
  899.         })
  900.         expDate.addEventListener(\"change\", (event) => {
  901.             const displayError = document.getElementById(\"sg_credit_reload_expiry_errors\")
  902.             displayError.textContent = event.error ? event.error.message : \"\";
  903.         })
  904.         cvc.addEventListener(\"change\", (event) => {
  905.             const displayError = document.getElementById(\"sg_credit_reload_cvv_errors\")
  906.             displayError.textContent = event.error ? event.error.message : \"\";
  907.         })
  908.         const form = document.getElementById('paymentFormRecap');
  909.         form.addEventListener('submit', async (event) => {
  910.             event.preventDefault();
  911.             const cardHolderName = document.getElementById(\"sg_credit_reload_card_holder_name\").value;
  912.             const montant = document.getElementById(\"sg_credit_reload_amount\").value * 100;
  913.             const payButton = document.getElementById(\"card-button\");
  914.             payButton.disabled = true; 
  915.             try {
  916.                 const response = await fetch(\"";
  917.         // line 285
  918.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_client_credit_reload_modal");
  919.         echo "\", {
  920.                     method: 'POST',
  921.                     body: new FormData(form),
  922.                     headers: {
  923.                         'X-Requested-With': 'XMLHttpRequest',
  924.                     }
  925.                 });
  926.                 
  927.                 if (!response.ok) {
  928.                     throw new Error(\"Erreur de communication avec le serveur.\");
  929.                 }
  930.                 const data = await response.json();
  931.                 if (!data.client_secret) {
  932.                     throw new Error(\"Erreur lors de la création du paiement.\");
  933.                 }
  934.                 const clientSecret = data.client_secret;
  935.                 const paymentResult = await stripe.confirmCardPayment(clientSecret, {
  936.                     payment_method: {
  937.                         card: cardNumber,
  938.                         billing_details: {
  939.                             name: cardHolderName,
  940.                         },
  941.                     },
  942.                 });
  943.                 
  944.                 if (paymentResult.error) {
  945.                     document.getElementById(\"errors\").innerText = paymentResult.error.message;
  946.                     payButton.disabled = false;
  947.                 } else if (paymentResult.paymentIntent && paymentResult.paymentIntent.status === 'succeeded') {
  948.                     const completeResponse = await fetch(\"";
  949.         // line 316
  950.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_client_complete_payment_modal");
  951.         echo "\", {
  952.                         method: 'POST',
  953.                         headers: {
  954.                             'Content-Type': 'application/json',
  955.                             'X-Requested-With': 'XMLHttpRequest',
  956.                         },
  957.                         body: JSON.stringify({
  958.                             payment_intent_id: paymentResult.paymentIntent.id,
  959.                             amount: montant, 
  960.                             status: paymentResult.paymentIntent.status
  961.                         })
  962.                     });
  963.                     const completeData = await completeResponse.json();
  964.                     if (completeData.success) {
  965.                         window.scrollTo(0, 0);
  966.                         window.location.reload(true);
  967.                     } else {
  968.                         document.getElementById(\"errors\").innerText = completeData.message || \"Erreur lors de la finalisation du paiement.\";
  969.                     }
  970.                 } else {                                                                                                                        
  971.                     document.getElementById(\"errors\").innerText = \"Le paiement a échoué.\";
  972.                     payButton.disabled = false;
  973.                 }
  974.             } catch (error) {
  975.                 document.getElementById(\"errors\").innerText = error.message;
  976.                 payButton.disabled = false;
  977.             }
  978.         }); 
  979.     </script>
  980. ";
  981.         
  982.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  983.         
  984.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  985.     }
  986.     /**
  987.      * @codeCoverageIgnore
  988.      */
  989.     public function getTemplateName()
  990.     {
  991.         return "front/service/step4/recapitulatif.html.twig";
  992.     }
  993.     /**
  994.      * @codeCoverageIgnore
  995.      */
  996.     public function isTraitable()
  997.     {
  998.         return false;
  999.     }
  1000.     /**
  1001.      * @codeCoverageIgnore
  1002.      */
  1003.     public function getDebugInfo()
  1004.     {
  1005.         return array (  985 => 316,  951 => 285,  916 => 253,  910 => 251,  900 => 250,  880 => 238,  874 => 236,  871 => 235,  868 => 234,  859 => 232,  855 => 231,  852 => 230,  849 => 229,  844 => 227,  841 => 226,  838 => 225,  832 => 223,  829 => 222,  823 => 220,  821 => 219,  818 => 218,  815 => 217,  801 => 216,  790 => 214,  786 => 213,  766 => 212,  764 => 211,  755 => 210,  752 => 209,  746 => 208,  740 => 206,  737 => 205,  723 => 203,  720 => 202,  714 => 200,  711 => 199,  706 => 197,  701 => 196,  696 => 194,  692 => 193,  685 => 192,  683 => 191,  675 => 190,  664 => 181,  658 => 179,  655 => 178,  649 => 176,  641 => 174,  638 => 173,  632 => 171,  630 => 170,  623 => 169,  620 => 168,  612 => 166,  609 => 165,  603 => 163,  600 => 162,  594 => 160,  592 => 159,  585 => 155,  570 => 153,  550 => 136,  545 => 133,  543 => 132,  536 => 128,  526 => 120,  522 => 118,  513 => 116,  509 => 115,  506 => 114,  504 => 113,  496 => 108,  492 => 107,  485 => 103,  481 => 102,  474 => 98,  470 => 97,  464 => 94,  452 => 87,  439 => 76,  435 => 74,  432 => 73,  410 => 71,  393 => 70,  390 => 69,  388 => 68,  371 => 67,  355 => 65,  352 => 64,  349 => 63,  327 => 61,  310 => 60,  307 => 59,  304 => 58,  301 => 57,  287 => 56,  283 => 54,  272 => 53,  270 => 52,  250 => 51,  247 => 50,  236 => 48,  234 => 47,  212 => 46,  209 => 45,  191 => 44,  187 => 42,  185 => 41,  182 => 40,  179 => 39,  177 => 38,  174 => 37,  171 => 36,  165 => 34,  157 => 32,  155 => 31,  137 => 30,  128 => 24,  120 => 19,  116 => 18,  112 => 17,  105 => 13,  99 => 10,  93 => 6,  83 => 5,  60 => 3,  37 => 1,);
  1006.     }
  1007.     public function getSourceContext()
  1008.     {
  1009.         return new Source("{% extends 'base.html.twig' %}
  1010. {% block title %} Récapitulatif de devis : {{ service.title }} | {{ parent() }} {% endblock %}
  1011. {% block body %}
  1012. <section class=\"grey-blue-bg small-padding\">
  1013.     <div class=\"container\">
  1014.         <div class=\"row\">
  1015.             <div class=\"col-md-8\">
  1016.                 {{ include('base-default/message-flash-devis.html.twig') }}
  1017.                 <div class=\"list-single-main-container pl-0\">
  1018.                     <div class=\"title-devis\">
  1019.                         <span>Devis immédiat pour {{ service.title }}</span>
  1020.                     </div>
  1021.                     <div class=\"etape-demande-devis fl-wrap mb-4\">
  1022.                         <div class=\"flex-center-wrap\">
  1023.                             <a href=\"{{ url('app_client_service', {'slug': service.slug}) }}\"><span>1</span> Type de trajet</a>
  1024.                             <a href=\"{{ url('app_client_service_route_description', {'slug': service.slug}) }}\"><span>2</span> Description trajet</a>
  1025.                             <a href=\"{{ url('app_client_service_login_info', {'slug': service.slug}) }}\"><span>3</span> Vos informations</a>
  1026.                             <a href=\"#\" class=\"active\"><span>4</span> Récapitulatif/Validation</a>
  1027.                         </div> 
  1028.                         <div class=\"box-widget-list text-left mt-3\">
  1029.                             <div class=\"d-flex align-items-center\">
  1030.                                 <img src=\"{{ asset('front/images/bot-recap.png') }}\" class=\"img-recap-devis\" alt=\"\" />
  1031.                                 <p class=\"p-recap-devis\">Nous allons faire un récapitulatif ensemble.</p>
  1032.                             </div>
  1033.                         </div>
  1034.                         <div class=\"box-widget-list text-left mt-1\">
  1035.                             <p>Vous avez besoin <span class=\"text-theme-bleu-marine fw-bold text-uppercase\">{{ service.title }}</span> pour <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.numberOfPeople }}</span> personne(s) au départ de <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.departureAddress }}</span>{% if devis.typeOfTrip == 'Séjours' %}, le <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.departureDate|date('d/m/Y') }}</span>{% endif %} à <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.departureTime|date('H\\\\hi') }}</span> en destination de <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.arrivalAddress }}</span>. </p>
  1036.                             {% if devis.distance and devis.distancePerTrip %}
  1037.                                 <p>Vous allez parcourir une distance approximative de <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.distance }} ({{ devis.distancePerTrip }} par trajet)</span>.</p>
  1038.                             {% else %}
  1039.                                 <p>Vous allez parcourir une distance approximative de <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.distance }}</span>.</p>
  1040.                             {% endif %}
  1041.                             {% if devis.needVehicleOnSite == 'Non' %}
  1042.                                 <p>Sur place, vous n'aurez pas besoin du véhicule.</p>
  1043.                             {% elseif devis.needVehicleOnSite == 'Oui' %}
  1044.                                 {% if devis.typeOfTrip == 'Séjours' %}
  1045.                                     <p class=\"pb-0\">Voici le détail des destinations pendant votre séjour :</p>
  1046.                                 {% elseif devis.typeOfTrip == 'Aller-Retour' %}
  1047.                                     <p class=\"pb-0\">Voici le détail des destinations pendant votre trajet :</p>
  1048.                                 {% endif %}
  1049.                                 {% for vehicleDetail in devis.vehicleDetails %}
  1050.                                     {% if devis.typeOfTrip == 'Séjours' %}
  1051.                                         <p {% if vehicleDetail.infos %}class=\"pb-0\"{% else %}{% if loop.last %}{% else %}class=\"pb-0\"{% endif %}{% endif %}><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> Le <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.day|date('d/m/Y') }}</span>, départ de <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.departureAddress }}</span> à destination de <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.destinationAddress }}</span>. Départ à <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.departureTime|date('H\\\\hi') }}</span> et retour à <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.returnTime|date('H\\\\hi') }}</span>. </p>
  1052.                                         {% if vehicleDetail.infos %}
  1053.                                             <p {% if loop.last %}{% else %}class=\"pb-0\"{% endif %}>Informations supplémentaires : <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.infos }}</span></p>
  1054.                                         {% endif %}
  1055.                                     {% elseif devis.typeOfTrip == 'Aller-Retour' %}
  1056.                                         <p {% if vehicleDetail.infos %}class=\"pb-0\"{% else %}{% if loop.last %}{% else %}class=\"pb-0\"{% endif %}{% endif %}><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> Trajet Aller-Retour : départ de <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.departureAddress }}</span> à destination de <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.destinationAddress }}</span>. Départ à <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.departureTime|date('H\\\\hi') }}</span> et retour à <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.returnTime|date('H\\\\hi') }}</span>. </p>
  1057.                                         {% if vehicleDetail.infos %}
  1058.                                             <p {% if loop.last %}{% else %}class=\"pb-0\"{% endif %}>Informations supplémentaires : <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.infos }}</span></p>
  1059.                                         {% endif %} 
  1060.                                     {% endif %}
  1061.                                 {% endfor %}
  1062.                             {% endif %}
  1063.                             {% if devis.addPdfDocument == 'Oui' %}
  1064.                                 <p class=\"pb-0\">Vous souhaitez envoyer le(s) document(s) suivant(s) au transporteur :</p>
  1065.                                 {% for attachment in devis.attachments %}
  1066.                                     <p {% if loop.last %}{% else %}class=\"pb-0\"{% endif %}><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> <span class=\"xt-theme-bleu-marine fw-bold text-italic\">{{ attachment.originalName }}</span></p>
  1067.                                 {% endfor %}
  1068.                             {% endif %}
  1069.                             {% if devis.typeOfTrip == 'Aller-Retour' or devis.typeOfTrip == 'Séjours' %}
  1070.                                 <p>Votre retour s'effectuera {% if devis.typeOfTrip == 'Séjours' %}le <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.returnDate|date('d/m/Y') }}</span>{% endif %} à <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.returnTime|date('H\\\\hi') }}</span> depuis le <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.arrivalAddress }}</span> vers <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.departureAddress }}</span>. </p>
  1071.                             {% endif %}
  1072.                             <p>Vous {% if devis.devisLuggage.name == 'Aucun bagage' %}ne{% endif %} disposerez d{% if devis.devisLuggage.name == 'Aucun bagage' %}'{% else %}e{% endif %} <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.devisLuggage.name }}</span>, et le type de déplacement sera <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.devisTravelReason.name }}</span>.</p>
  1073.                             {% if devis.devisEquipment and devis.devisEquipment is not empty %}
  1074.                                 <p class=\"pb-0\">Vous avez besoin d'équipements particuliers dans le véhicule ci-dessous :</p>
  1075.                                 {% for equipment in devis.devisEquipment %}
  1076.                                 <p {% if loop.last %}{% else %}class=\"pb-0\"{% endif %}><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> {{ equipment.name }}</p>
  1077.                                 {% endfor %}
  1078.                             {% else %}
  1079.                                 <p>Vous n'avez pas besoin d'équipements particuliers dans le véhicule.</p>
  1080.                             {% endif %}
  1081.                         </div>
  1082.                         <div class=\"box-widget-list\">
  1083.                             <hr class=\"my-2\">
  1084.                         </div>
  1085.                         <div class=\"box-widget-list text-left mt-4 mb-1\">
  1086.                             <h1 class=\"text-theme-bleu-marine text-uppercase text-center fw-bold\">Option de diffusion</h1>
  1087.                         </div>
  1088.                         <div class=\"devis-currency-wrap\">
  1089.                             <div class=\"show-currency-devis\">
  1090.                                 <span class=\"text-theme-orange text-uppercase fw-bold mr-1\">
  1091.                                     <img src=\"{{ asset('front/images/money_8366606.png') }}\" class=\"img-crab-devis mr-2\" alt=\"\"> {{ app.user.creditBalance | number_format(2, ',', ' ') }} Crédit(s) 
  1092.                                 </span>
  1093.                                 <span class=\"text-theme-gray text-uppercase fw-bold mr-1\"> Restant</span>
  1094.                                 <span class=\"text-uppercase btn-recharger-devis modal-open\">Recharger</span>
  1095.                             </div>
  1096.                         </div>
  1097.                         
  1098.                         {{ form_start(form) }}
  1099.                         <div class=\"form-diffusion-option\">
  1100.                             <div class=\"mb-1\">
  1101.                                 {{ form_widget(form.miseEnAvance) }}
  1102.                                 <img src=\"{{ asset('front/images/views.png') }}\" class=\"ml-1\" alt=\"\">
  1103.                                 <label for=\"sg_devis_miseEnAvance\">Mise en avant de votre demande <span class=\"dot-mise-en-avance\">:</span> <span class=\"ml-2\">6 Crédits</span></label>
  1104.                             </div>
  1105.                             <div class=\"mb-1\">
  1106.                                 {{ form_widget(form.remonteEnTeteDeListe) }}
  1107.                                 <img src=\"{{ asset('front/images/up_annonce.png') }}\" class=\"ml-1\" alt=\"\">
  1108.                                 <label for=\"sg_devis_remonteEnTeteDeListe\">Remonter en tête de liste tout les jours : <span class=\"ml-2\">8 Crédits</span></label>
  1109.                             </div>
  1110.                             <div class=\"mb-1\">
  1111.                                 {{ form_widget(form.demandeUrgente) }}
  1112.                                 <img src=\"{{ asset('front/images/annonce_urgente.png') }}\" class=\"ml-1\" alt=\"\">
  1113.                                 <label for=\"sg_devis_demandeUrgente\">Logo demande urgente <span class=\"dot-demande-urgente\">:</span> <span class=\"ml-2\">3 Crédits</span></label>
  1114.                             </div>
  1115.                             <div class=\"div-total-devis\">
  1116.                                 {% if form.vars.errors is not empty %}
  1117.                                     <div class=\"form-error\">
  1118.                                         {% for error in form.vars.errors %}
  1119.                                             <p class=\"pb-0\">{{ error.message }}</p>
  1120.                                         {% endfor %}
  1121.                                     </div>
  1122.                                 {% endif %}
  1123.                                 <div class=\"\">   
  1124.                                     <p class=\"text-uppercase fw-bold\">Total : <span id=\"total-balance\" class=\"text-theme-orange\">xx</span><span class=\"text-theme-orange\"> crédit(s)</span></p>
  1125.                                 </div>
  1126.                             </div>
  1127.                         </div>            
  1128.                         
  1129.                         <div class=\"book-form\">
  1130.                             <div class=\"width-100 d-flex justify-content-between flex-wrap mt-4\">
  1131.                                 <a href=\"{{ url('app_client_service_login_info', {'slug': service.slug}) }}\" class=\"btn-prev color3-bg\">
  1132.                                     <i class=\"fal fa-angle-double-left\"></i> Précédent
  1133.                                 </a>
  1134.                                 <button type=\"submit\" class=\"btn-next color2-bg\">
  1135.                                     {% trans %}Validation{% endtrans %}
  1136.                                 </button>
  1137.                             </div>
  1138.                         </div>
  1139.                         {{ form_end(form) }}
  1140.                     </div>
  1141.                 </div>
  1142.             </div>
  1143.             <div class=\"col-md-4\">
  1144.                 <div class=\"box-widget-wrap\">  
  1145.                     <div class=\"box-widget-item fl-wrap\">
  1146.                         <div class=\"box-widget widget-posts\">
  1147.                             <div class=\"box-widget-content pb-3\">
  1148.                                 <div class=\"box-widget-item-header mb-3\">
  1149.                                     <h3 class=\"text-uppercase fw-bold text-theme-bleu-marine\">Votre demande</h3>
  1150.                                 </div>
  1151.                                 <div class=\"box-widget-list\">
  1152.                                     <h4 class=\"text-left mb-3 step-devis-request text-theme-bleu-marine fw-bold\"><span>1</span> Type de trajet</h4>
  1153.                                 </div>
  1154.                                 <div id=\"map-distance-2address\" data-departure-address={{ devis.departureAddress|e('html_attr')  }} data-arrival-address={{ devis.arrivalAddress|e('html_attr')  }} data-start-latitude=\"{{ devis.startLatitude|e('html_attr')  }}\" data-start-longitude=\"{{ devis.startLongitude|e('html_attr')  }}\" data-end-latitude=\"{{ devis.endLatitude|e('html_attr')  }}\" data-end-longitude=\"{{ devis.endLongitude|e('html_attr')  }}\"></div>
  1155.                                 <div class=\"box-widget-list\">
  1156.                                     <h4 class=\"text-left text-uppercase text-theme-orange fw-bold mb-1\">{{ devis.typeOfTrip }}</h4>
  1157.                                 </div>
  1158.                                 <div class=\"box-widget-list\">
  1159.                                     <ul>
  1160.                                         {% if devis.departureAddress %}
  1161.                                             <li class=\"departure-address\"><a href=\"#\" class=\"mx-0\"><i class=\"fal fa-map-marker-alt\"></i> {{ devis.departureAddress }}</a></li>
  1162.                                         {% endif %}
  1163.                                         {% if devis.arrivalAddress %}
  1164.                                             <li class=\"arrival-address\"><a href=\"#\" class=\"mx-0\"><i class=\"fal fa-map-pin\"></i> {{ devis.arrivalAddress }}</a></li>
  1165.                                         {% endif %}
  1166.                                         {% if devis.departureDate and devis.departureTime %}
  1167.                                             <li class=\"mb-2\"><span><i class=\"fal fa-calendar-alt\"></i> Aller :</span> <a href=\"#\">{{ devis.departureDate|date('d/m/Y') }} départ à {{ devis.departureTime|date('H\\\\hi') }}</a></li>
  1168.                                         {% endif %}
  1169.                                         {% if devis.returnDate and devis.returnTime %}
  1170.                                             <li class=\"mb-2\"><span><i class=\"fal fa-calendar-alt\"></i> Retour :</span> <a href=\"#\">{{ devis.returnDate|date('d/m/Y') }} départ à {{ devis.returnTime|date('H\\\\hi') }} </a></li>
  1171.                                         {% elseif devis.returnDate is null and devis.returnTime %}
  1172.                                             <li class=\"mb-2\"><span><i class=\"fal fa-clock\"></i> Retour :</span> <a href=\"#\"> {{ devis.returnTime|date('H\\\\hi') }} </a></li>
  1173.                                         {% endif %}
  1174.                                         {% if devis.distance and devis.distancePerTrip %}
  1175.                                             <li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Distance :</span> <a href=\"#\">{{ devis.distance }} ({{ devis.distancePerTrip }} par trajet)</a></li>
  1176.                                         {% else %}
  1177.                                             <li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Distance :</span> <a href=\"#\">{{ devis.distance }}</a></li>
  1178.                                         {% endif %}
  1179.                                         {% if devis.numberOfPeople %}
  1180.                                             <li><span><i class=\"fal fa-users\"></i> Passagers :</span> <a href=\"#\">{{ devis.numberOfPeople }}</a></li>
  1181.                                         {% endif %}
  1182.                                     </ul>
  1183.                                 </div>
  1184.                             </div>
  1185.                             <div class=\"box-widget-content pt-0\">
  1186.                                 <div class=\"box-widget-list\">
  1187.                                     <h4 class=\"text-left mb-1 step-devis-request text-theme-bleu-marine fw-bold\"><span>2</span> Description trajet</h4>
  1188.                                 </div>
  1189.                                 <div class=\"box-widget-list\">
  1190.                                     <ul>
  1191.                                         <li class=\"departure-address mb-0\"><a href=\"#\" class=\"mx-0 text-uppercase\"><i class=\"fal fa-car\"></i> Utilisation du véhicule : {% if devis.needVehicleOnSite == 'Oui' %}<strong>Oui</strong>{% else %}<strong>Non</strong>{% endif %}</a></li>
  1192.                                         {% if devis.vehicleDetails and devis.vehicleDetails is not empty %}
  1193.                                             {% for vehicleDetail in devis.vehicleDetails %}   
  1194.                                                 {% if vehicleDetail.day %}                                         
  1195.                                                 <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">- {{ vehicleDetail.day|date('d/m/Y') }} :</a></li>
  1196.                                                 {% endif %}
  1197.                                                 {% if vehicleDetail.departureAddress %}           
  1198.                                                 <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">{{ vehicleDetail.departureAddress }},</a></li>
  1199.                                                 {% endif %}
  1200.                                                 {% if vehicleDetail.destinationAddress %}
  1201.                                                 <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">{{ vehicleDetail.destinationAddress }}</a></li>
  1202.                                                 {% endif %}
  1203.                                                 {% if vehicleDetail.departureTime and vehicleDetail.returnTime %}
  1204.                                                 <li class=\"departure-address {% if vehicleDetail.infos %}py-0{% else %}pt-0{% endif %}\"><a href=\"#\" class=\"mx-0 text-transform-none\">Départ {{ vehicleDetail.departureTime|date('H\\\\hi') }} - Retour {{ vehicleDetail.returnTime|date('H\\\\hi') }}</a></li>
  1205.                                                 {% endif %}
  1206.                                                 {% if vehicleDetail.infos %}
  1207.                                                 <li class=\"departure-address pt-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">{{ vehicleDetail.infos|raw }}</a></li>
  1208.                                                 {% endif %}
  1209.                                             {% endfor %}
  1210.                                         {% endif %}
  1211.                                         <li class=\"departure-address pt-1 mb-0\"><a href=\"#\" class=\"mx-0 text-uppercase\"><i class=\"fal fa-paperclip\"></i> Documents complémentaires : {% if devis.addPdfDocument == 'Oui' %}<strong>Oui</strong>{% else %}<strong>Non</strong>{% endif %}</a></li>
  1212.                                         {% if devis.attachments and devis.attachments is not empty %}
  1213.                                             {% for attachment in devis.attachments %}    
  1214.                                                 {% if attachment.originalName %}                                               
  1215.                                                 <li class=\"departure-address {% if loop.last %}pt-0{% else %}py-0{% endif %}\"><a href=\"#\" class=\"mx-0 text-transform-none text-italic fw-bold text-theme-bleu-marine\">{{ attachment.originalName }}</a></li>
  1216.                                                 {% endif %}
  1217.                                             {% endfor %}
  1218.                                         {% endif %}
  1219.                                         
  1220.                                         {% if devis.devisTravelReason %}
  1221.                                             <li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Motif du déplacement :</span> <a href=\"#\">{{ devis.devisTravelReason.name }}</a></li>
  1222.                                         {% endif %}
  1223.                                         {% if devis.devisLuggage %}
  1224.                                             <li class=\"mb-2\"><span><i class=\"fal fa-suitcase\"></i> Bagages :</span> <a href=\"#\">{{ devis.devisLuggage.name }}</a></li>
  1225.                                         {% endif %}
  1226.                                         {% if devis.infos %}
  1227.                                             <li class=\"mb-2\"><span><i class=\"fal fa-info-circle\"></i> Informations complémentaires :</span></li>
  1228.                                             <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">{{ devis.infos|raw }}</a></li>
  1229.                                         {% endif %}
  1230.                                         {% if devis.devisEquipment %}
  1231.                                             <li class=\"mb-2\"><span><i class=\"fal fa-screwdriver\"></i> Equipement indispensable :</span></li>
  1232.                                             {% for equipment in devis.devisEquipment %}
  1233.                                                 <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">- {{ equipment.name }}</a></li>
  1234.                                             {% endfor %}
  1235.                                         {% endif %}
  1236.                                         {% if devis.devisBudget %}
  1237.                                             <li class=\"mb-0\"><span><i class=\"fal fa-money-bill-wave\"></i> Budget :</span> <a href=\"#\">{{ devis.devisBudget.name }}</a></li>
  1238.                                         {% endif %}
  1239.                                     </ul>
  1240.                                 </div>
  1241.                             </div>
  1242.                         </div>
  1243.                     </div>  
  1244.                 </div>      
  1245.             </div>
  1246.         </div>
  1247.     </div>
  1248. </section>      
  1249. {% endblock %}
  1250. {% block javascripts %}
  1251.     {{ parent() }}
  1252.     <script>
  1253.         const stripe = Stripe('{{ stripe_public_key }}');
  1254.         const elements = stripe.elements();
  1255.         const cardNumber = elements.create('cardNumber', { placeholder: '1234 1234 1234 1234' });
  1256.         cardNumber.mount('#sg_credit_reload_card_number');
  1257.         const expDate = elements.create('cardExpiry');
  1258.         expDate.mount('#sg_credit_reload_expiry');
  1259.         const cvc = elements.create('cardCvc', { placeholder: 'CVV' });
  1260.         cvc.mount('#sg_credit_reload_cvv');
  1261.         cardNumber.addEventListener(\"change\", (event) => {
  1262.             const displayError = document.getElementById(\"sg_credit_reload_card_errors\")
  1263.             displayError.textContent = event.error ? event.error.message : \"\";
  1264.         })
  1265.         expDate.addEventListener(\"change\", (event) => {
  1266.             const displayError = document.getElementById(\"sg_credit_reload_expiry_errors\")
  1267.             displayError.textContent = event.error ? event.error.message : \"\";
  1268.         })
  1269.         cvc.addEventListener(\"change\", (event) => {
  1270.             const displayError = document.getElementById(\"sg_credit_reload_cvv_errors\")
  1271.             displayError.textContent = event.error ? event.error.message : \"\";
  1272.         })
  1273.         const form = document.getElementById('paymentFormRecap');
  1274.         form.addEventListener('submit', async (event) => {
  1275.             event.preventDefault();
  1276.             const cardHolderName = document.getElementById(\"sg_credit_reload_card_holder_name\").value;
  1277.             const montant = document.getElementById(\"sg_credit_reload_amount\").value * 100;
  1278.             const payButton = document.getElementById(\"card-button\");
  1279.             payButton.disabled = true; 
  1280.             try {
  1281.                 const response = await fetch(\"{{ path('app_client_credit_reload_modal') }}\", {
  1282.                     method: 'POST',
  1283.                     body: new FormData(form),
  1284.                     headers: {
  1285.                         'X-Requested-With': 'XMLHttpRequest',
  1286.                     }
  1287.                 });
  1288.                 
  1289.                 if (!response.ok) {
  1290.                     throw new Error(\"Erreur de communication avec le serveur.\");
  1291.                 }
  1292.                 const data = await response.json();
  1293.                 if (!data.client_secret) {
  1294.                     throw new Error(\"Erreur lors de la création du paiement.\");
  1295.                 }
  1296.                 const clientSecret = data.client_secret;
  1297.                 const paymentResult = await stripe.confirmCardPayment(clientSecret, {
  1298.                     payment_method: {
  1299.                         card: cardNumber,
  1300.                         billing_details: {
  1301.                             name: cardHolderName,
  1302.                         },
  1303.                     },
  1304.                 });
  1305.                 
  1306.                 if (paymentResult.error) {
  1307.                     document.getElementById(\"errors\").innerText = paymentResult.error.message;
  1308.                     payButton.disabled = false;
  1309.                 } else if (paymentResult.paymentIntent && paymentResult.paymentIntent.status === 'succeeded') {
  1310.                     const completeResponse = await fetch(\"{{ path('app_client_complete_payment_modal') }}\", {
  1311.                         method: 'POST',
  1312.                         headers: {
  1313.                             'Content-Type': 'application/json',
  1314.                             'X-Requested-With': 'XMLHttpRequest',
  1315.                         },
  1316.                         body: JSON.stringify({
  1317.                             payment_intent_id: paymentResult.paymentIntent.id,
  1318.                             amount: montant, 
  1319.                             status: paymentResult.paymentIntent.status
  1320.                         })
  1321.                     });
  1322.                     const completeData = await completeResponse.json();
  1323.                     if (completeData.success) {
  1324.                         window.scrollTo(0, 0);
  1325.                         window.location.reload(true);
  1326.                     } else {
  1327.                         document.getElementById(\"errors\").innerText = completeData.message || \"Erreur lors de la finalisation du paiement.\";
  1328.                     }
  1329.                 } else {                                                                                                                        
  1330.                     document.getElementById(\"errors\").innerText = \"Le paiement a échoué.\";
  1331.                     payButton.disabled = false;
  1332.                 }
  1333.             } catch (error) {
  1334.                 document.getElementById(\"errors\").innerText = error.message;
  1335.                 payButton.disabled = false;
  1336.             }
  1337.         }); 
  1338.     </script>
  1339. {% endblock %}""front/service/step4/recapitulatif.html.twig""/var/www/vhosts/resoh.fr/httpdocs/templates/front/service/step4/recapitulatif.html.twig");
  1340.     }
  1341. }