<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/service/step4/recapitulatif.html.twig */
class __TwigTemplate_b54f36d21a49308d6535816125e2a23f8bdd3c91d25cdc444da655ccfdab02ed extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/service/step4/recapitulatif.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/service/step4/recapitulatif.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "front/service/step4/recapitulatif.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo " Récapitulatif de devis : ";
echo twig_escape_filter($this->env, 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.', 3, $this->source); })()), "title", [], "any", false, false, false, 3), "html", null, true);
echo " | ";
$this->displayParentBlock("title", $context, $blocks);
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo "<section class=\"grey-blue-bg small-padding\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8\">
";
// line 10
echo twig_include($this->env, $context, "base-default/message-flash-devis.html.twig");
echo "
<div class=\"list-single-main-container pl-0\">
<div class=\"title-devis\">
<span>Devis immédiat pour ";
// line 13
echo twig_escape_filter($this->env, 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.', 13, $this->source); })()), "title", [], "any", false, false, false, 13), "html", null, true);
echo "</span>
</div>
<div class=\"etape-demande-devis fl-wrap mb-4\">
<div class=\"flex-center-wrap\">
<a href=\"";
// line 17
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", false, false, false, 17)]), "html", null, true);
echo "\"><span>1</span> Type de trajet</a>
<a href=\"";
// line 18
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", false, false, false, 18)]), "html", null, true);
echo "\"><span>2</span> Description trajet</a>
<a href=\"";
// line 19
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", false, false, false, 19)]), "html", null, true);
echo "\"><span>3</span> Vos informations</a>
<a href=\"#\" class=\"active\"><span>4</span> Récapitulatif/Validation</a>
</div>
<div class=\"box-widget-list text-left mt-3\">
<div class=\"d-flex align-items-center\">
<img src=\"";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/bot-recap.png"), "html", null, true);
echo "\" class=\"img-recap-devis\" alt=\"\" />
<p class=\"p-recap-devis\">Nous allons faire un récapitulatif ensemble.</p>
</div>
</div>
<div class=\"box-widget-list text-left mt-1\">
<p>Vous avez besoin <span class=\"text-theme-bleu-marine fw-bold text-uppercase\">";
// line 30
echo twig_escape_filter($this->env, 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.', 30, $this->source); })()), "title", [], "any", false, false, false, 30), "html", null, true);
echo "</span> pour <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, 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); })()), "numberOfPeople", [], "any", false, false, false, 30), "html", null, true);
echo "</span> personne(s) au départ de <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, 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); })()), "departureAddress", [], "any", false, false, false, 30), "html", null, true);
echo "</span>";
if ((0 === 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", false, false, false, 30), "Séjours"))) {
echo ", le <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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); })()), "departureDate", [], "any", false, false, false, 30), "d/m/Y"), "html", null, true);
echo "</span>";
}
echo " à <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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); })()), "departureTime", [], "any", false, false, false, 30), "H\\hi"), "html", null, true);
echo "</span> en destination de <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, 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); })()), "arrivalAddress", [], "any", false, false, false, 30), "html", null, true);
echo "</span>. </p>
";
// line 31
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", false, false, false, 31) && 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", false, false, false, 31))) {
// line 32
echo " <p>Vous allez parcourir une distance approximative de <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, 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.', 32, $this->source); })()), "distance", [], "any", false, false, false, 32), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, 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.', 32, $this->source); })()), "distancePerTrip", [], "any", false, false, false, 32), "html", null, true);
echo " par trajet)</span>.</p>
";
} else {
// line 34
echo " <p>Vous allez parcourir une distance approximative de <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, 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.', 34, $this->source); })()), "distance", [], "any", false, false, false, 34), "html", null, true);
echo "</span>.</p>
";
}
// line 36
echo " ";
if ((0 === 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", false, false, false, 36), "Non"))) {
// line 37
echo " <p>Sur place, vous n'aurez pas besoin du véhicule.</p>
";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, // line 38
(isset($context["devis"]) || array_key_exists("devis", $context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.', 38, $this->source); })()), "needVehicleOnSite", [], "any", false, false, false, 38), "Oui"))) {
// line 39
echo " ";
if ((0 === 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", false, false, false, 39), "Séjours"))) {
// line 40
echo " <p class=\"pb-0\">Voici le détail des destinations pendant votre séjour :</p>
";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, // line 41
(isset($context["devis"]) || array_key_exists("devis", $context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.', 41, $this->source); })()), "typeOfTrip", [], "any", false, false, false, 41), "Aller-Retour"))) {
// line 42
echo " <p class=\"pb-0\">Voici le détail des destinations pendant votre trajet :</p>
";
}
// line 44
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 44));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["vehicleDetail"]) {
// line 45
echo " ";
if ((0 === 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", false, false, false, 45), "Séjours"))) {
// line 46
echo " <p ";
if (twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "infos", [], "any", false, false, false, 46)) {
echo "class=\"pb-0\"";
} else {
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 46)) {
} else {
echo "class=\"pb-0\"";
}
}
echo "><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> Le <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "day", [], "any", false, false, false, 46), "d/m/Y"), "html", null, true);
echo "</span>, départ de <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "departureAddress", [], "any", false, false, false, 46), "html", null, true);
echo "</span> à destination de <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "destinationAddress", [], "any", false, false, false, 46), "html", null, true);
echo "</span>. Départ à <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "departureTime", [], "any", false, false, false, 46), "H\\hi"), "html", null, true);
echo "</span> et retour à <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "returnTime", [], "any", false, false, false, 46), "H\\hi"), "html", null, true);
echo "</span>. </p>
";
// line 47
if (twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "infos", [], "any", false, false, false, 47)) {
// line 48
echo " <p ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 48)) {
} else {
echo "class=\"pb-0\"";
}
echo ">Informations supplémentaires : <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "infos", [], "any", false, false, false, 48), "html", null, true);
echo "</span></p>
";
}
// line 50
echo " ";
} elseif ((0 === 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", false, false, false, 50), "Aller-Retour"))) {
// line 51
echo " <p ";
if (twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "infos", [], "any", false, false, false, 51)) {
echo "class=\"pb-0\"";
} else {
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 51)) {
} else {
echo "class=\"pb-0\"";
}
}
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\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "departureAddress", [], "any", false, false, false, 51), "html", null, true);
echo "</span> à destination de <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "destinationAddress", [], "any", false, false, false, 51), "html", null, true);
echo "</span>. Départ à <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "departureTime", [], "any", false, false, false, 51), "H\\hi"), "html", null, true);
echo "</span> et retour à <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "returnTime", [], "any", false, false, false, 51), "H\\hi"), "html", null, true);
echo "</span>. </p>
";
// line 52
if (twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "infos", [], "any", false, false, false, 52)) {
// line 53
echo " <p ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 53)) {
} else {
echo "class=\"pb-0\"";
}
echo ">Informations supplémentaires : <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "infos", [], "any", false, false, false, 53), "html", null, true);
echo "</span></p>
";
}
// line 54
echo "
";
}
// line 56
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['vehicleDetail'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 57
echo " ";
}
// line 58
echo " ";
if ((0 === 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", false, false, false, 58), "Oui"))) {
// line 59
echo " <p class=\"pb-0\">Vous souhaitez envoyer le(s) document(s) suivant(s) au transporteur :</p>
";
// line 60
$context['_parent'] = $context;
$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", false, false, false, 60));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["attachment"]) {
// line 61
echo " <p ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 61)) {
} else {
echo "class=\"pb-0\"";
}
echo "><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> <span class=\"xt-theme-bleu-marine fw-bold text-italic\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attachment"], "originalName", [], "any", false, false, false, 61), "html", null, true);
echo "</span></p>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attachment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
echo " ";
}
// line 64
echo " ";
if (((0 === 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", false, false, false, 64), "Aller-Retour")) || (0 === 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", false, false, false, 64), "Séjours")))) {
// line 65
echo " <p>Votre retour s'effectuera ";
if ((0 === 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", false, false, false, 65), "Séjours"))) {
echo "le <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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); })()), "returnDate", [], "any", false, false, false, 65), "d/m/Y"), "html", null, true);
echo "</span>";
}
echo " à <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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); })()), "returnTime", [], "any", false, false, false, 65), "H\\hi"), "html", null, true);
echo "</span> depuis le <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, 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); })()), "arrivalAddress", [], "any", false, false, false, 65), "html", null, true);
echo "</span> vers <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, 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); })()), "departureAddress", [], "any", false, false, false, 65), "html", null, true);
echo "</span>. </p>
";
}
// line 67
echo " <p>Vous ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 67, $this->source); })()), "devisLuggage", [], "any", false, false, false, 67), "name", [], "any", false, false, false, 67), "Aucun bagage"))) {
echo "ne";
}
echo " disposerez d";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, 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.', 67, $this->source); })()), "devisLuggage", [], "any", false, false, false, 67), "name", [], "any", false, false, false, 67), "Aucun bagage"))) {
echo "'";
} else {
echo "e";
}
echo " <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 67, $this->source); })()), "devisLuggage", [], "any", false, false, false, 67), "name", [], "any", false, false, false, 67), "html", null, true);
echo "</span>, et le type de déplacement sera <span class=\"text-theme-bleu-marine fw-bold\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 67, $this->source); })()), "devisTravelReason", [], "any", false, false, false, 67), "name", [], "any", false, false, false, 67), "html", null, true);
echo "</span>.</p>
";
// line 68
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", false, false, false, 68) && !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", false, false, false, 68)))) {
// line 69
echo " <p class=\"pb-0\">Vous avez besoin d'équipements particuliers dans le véhicule ci-dessous :</p>
";
// line 70
$context['_parent'] = $context;
$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", false, false, false, 70));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["equipment"]) {
// line 71
echo " <p ";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 71)) {
} else {
echo "class=\"pb-0\"";
}
echo "><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["equipment"], "name", [], "any", false, false, false, 71), "html", null, true);
echo "</p>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['equipment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 73
echo " ";
} else {
// line 74
echo " <p>Vous n'avez pas besoin d'équipements particuliers dans le véhicule.</p>
";
}
// line 76
echo " </div>
<div class=\"box-widget-list\">
<hr class=\"my-2\">
</div>
<div class=\"box-widget-list text-left mt-4 mb-1\">
<h1 class=\"text-theme-bleu-marine text-uppercase text-center fw-bold\">Option de diffusion</h1>
</div>
<div class=\"devis-currency-wrap\">
<div class=\"show-currency-devis\">
<span class=\"text-theme-orange text-uppercase fw-bold mr-1\">
<img src=\"";
// line 87
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/money_8366606.png"), "html", null, true);
echo "\" class=\"img-crab-devis mr-2\" alt=\"\"> ";
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 87, $this->source); })()), "user", [], "any", false, false, false, 87), "creditBalance", [], "any", false, false, false, 87), 2, ",", " "), "html", null, true);
echo " Crédit(s)
</span>
<span class=\"text-theme-gray text-uppercase fw-bold mr-1\"> Restant</span>
<span class=\"text-uppercase btn-recharger-devis modal-open\">Recharger</span>
</div>
</div>
";
// line 94
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');
echo "
<div class=\"form-diffusion-option\">
<div class=\"mb-1\">
";
// line 97
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", false, false, false, 97), 'widget');
echo "
<img src=\"";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/views.png"), "html", null, true);
echo "\" class=\"ml-1\" alt=\"\">
<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>
</div>
<div class=\"mb-1\">
";
// line 102
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", false, false, false, 102), 'widget');
echo "
<img src=\"";
// line 103
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/up_annonce.png"), "html", null, true);
echo "\" class=\"ml-1\" alt=\"\">
<label for=\"sg_devis_remonteEnTeteDeListe\">Remonter en tête de liste tout les jours : <span class=\"ml-2\">8 Crédits</span></label>
</div>
<div class=\"mb-1\">
";
// line 107
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", false, false, false, 107), 'widget');
echo "
<img src=\"";
// line 108
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("front/images/annonce_urgente.png"), "html", null, true);
echo "\" class=\"ml-1\" alt=\"\">
<label for=\"sg_devis_demandeUrgente\">Logo demande urgente <span class=\"dot-demande-urgente\">:</span> <span class=\"ml-2\">3 Crédits</span></label>
</div>
<div class=\"div-total-devis\">
";
// line 113
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, 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.', 113, $this->source); })()), "vars", [], "any", false, false, false, 113), "errors", [], "any", false, false, false, 113))) {
// line 114
echo " <div class=\"form-error\">
";
// line 115
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, 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.', 115, $this->source); })()), "vars", [], "any", false, false, false, 115), "errors", [], "any", false, false, false, 115));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 116
echo " <p class=\"pb-0\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 116), "html", null, true);
echo "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 118
echo " </div>
";
}
// line 120
echo " <div class=\"\">
<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>
</div>
</div>
</div>
<div class=\"book-form\">
<div class=\"width-100 d-flex justify-content-between flex-wrap mt-4\">
<a href=\"";
// line 128
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", false, false, false, 128)]), "html", null, true);
echo "\" class=\"btn-prev color3-bg\">
<i class=\"fal fa-angle-double-left\"></i> Précédent
</a>
<button type=\"submit\" class=\"btn-next color2-bg\">
";
// line 132
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Validation", [], "messages");
// line 133
echo " </button>
</div>
</div>
";
// line 136
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');
echo "
</div>
</div>
</div>
<div class=\"col-md-4\">
<div class=\"box-widget-wrap\">
<div class=\"box-widget-item fl-wrap\">
<div class=\"box-widget widget-posts\">
<div class=\"box-widget-content pb-3\">
<div class=\"box-widget-item-header mb-3\">
<h3 class=\"text-uppercase fw-bold text-theme-bleu-marine\">Votre demande</h3>
</div>
<div class=\"box-widget-list\">
<h4 class=\"text-left mb-3 step-devis-request text-theme-bleu-marine fw-bold\"><span>1</span> Type de trajet</h4>
</div>
<div id=\"map-distance-2address\" data-departure-address=";
// line 153
echo twig_escape_filter($this->env, 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.', 153, $this->source); })()), "departureAddress", [], "any", false, false, false, 153), "html_attr");
echo " data-arrival-address=";
echo twig_escape_filter($this->env, 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.', 153, $this->source); })()), "arrivalAddress", [], "any", false, false, false, 153), "html_attr");
echo " data-start-latitude=\"";
echo twig_escape_filter($this->env, 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.', 153, $this->source); })()), "startLatitude", [], "any", false, false, false, 153), "html_attr");
echo "\" data-start-longitude=\"";
echo twig_escape_filter($this->env, 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.', 153, $this->source); })()), "startLongitude", [], "any", false, false, false, 153), "html_attr");
echo "\" data-end-latitude=\"";
echo twig_escape_filter($this->env, 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.', 153, $this->source); })()), "endLatitude", [], "any", false, false, false, 153), "html_attr");
echo "\" data-end-longitude=\"";
echo twig_escape_filter($this->env, 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.', 153, $this->source); })()), "endLongitude", [], "any", false, false, false, 153), "html_attr");
echo "\"></div>
<div class=\"box-widget-list\">
<h4 class=\"text-left text-uppercase text-theme-orange fw-bold mb-1\">";
// line 155
echo twig_escape_filter($this->env, 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.', 155, $this->source); })()), "typeOfTrip", [], "any", false, false, false, 155), "html", null, true);
echo "</h4>
</div>
<div class=\"box-widget-list\">
<ul>
";
// line 159
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", false, false, false, 159)) {
// line 160
echo " <li class=\"departure-address\"><a href=\"#\" class=\"mx-0\"><i class=\"fal fa-map-marker-alt\"></i> ";
echo twig_escape_filter($this->env, 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.', 160, $this->source); })()), "departureAddress", [], "any", false, false, false, 160), "html", null, true);
echo "</a></li>
";
}
// line 162
echo " ";
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", false, false, false, 162)) {
// line 163
echo " <li class=\"arrival-address\"><a href=\"#\" class=\"mx-0\"><i class=\"fal fa-map-pin\"></i> ";
echo twig_escape_filter($this->env, 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.', 163, $this->source); })()), "arrivalAddress", [], "any", false, false, false, 163), "html", null, true);
echo "</a></li>
";
}
// line 165
echo " ";
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", false, false, false, 165) && 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", false, false, false, 165))) {
// line 166
echo " <li class=\"mb-2\"><span><i class=\"fal fa-calendar-alt\"></i> Aller :</span> <a href=\"#\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 166, $this->source); })()), "departureDate", [], "any", false, false, false, 166), "d/m/Y"), "html", null, true);
echo " départ à ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 166, $this->source); })()), "departureTime", [], "any", false, false, false, 166), "H\\hi"), "html", null, true);
echo "</a></li>
";
}
// line 168
echo " ";
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", false, false, false, 168) && 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", false, false, false, 168))) {
// line 169
echo " <li class=\"mb-2\"><span><i class=\"fal fa-calendar-alt\"></i> Retour :</span> <a href=\"#\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 169, $this->source); })()), "returnDate", [], "any", false, false, false, 169), "d/m/Y"), "html", null, true);
echo " départ à ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 169, $this->source); })()), "returnTime", [], "any", false, false, false, 169), "H\\hi"), "html", null, true);
echo " </a></li>
";
} elseif (((null === twig_get_attribute($this->env, $this->source, // line 170
(isset($context["devis"]) || array_key_exists("devis", $context) ? $context["devis"] : (function () { throw new RuntimeError('Variable "devis" does not exist.', 170, $this->source); })()), "returnDate", [], "any", false, false, false, 170)) && 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", false, false, false, 170))) {
// line 171
echo " <li class=\"mb-2\"><span><i class=\"fal fa-clock\"></i> Retour :</span> <a href=\"#\"> ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 171, $this->source); })()), "returnTime", [], "any", false, false, false, 171), "H\\hi"), "html", null, true);
echo " </a></li>
";
}
// line 173
echo " ";
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", false, false, false, 173) && 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", false, false, false, 173))) {
// line 174
echo " <li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Distance :</span> <a href=\"#\">";
echo twig_escape_filter($this->env, 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.', 174, $this->source); })()), "distance", [], "any", false, false, false, 174), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, 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.', 174, $this->source); })()), "distancePerTrip", [], "any", false, false, false, 174), "html", null, true);
echo " par trajet)</a></li>
";
} else {
// line 176
echo " <li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Distance :</span> <a href=\"#\">";
echo twig_escape_filter($this->env, 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.', 176, $this->source); })()), "distance", [], "any", false, false, false, 176), "html", null, true);
echo "</a></li>
";
}
// line 178
echo " ";
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", false, false, false, 178)) {
// line 179
echo " <li><span><i class=\"fal fa-users\"></i> Passagers :</span> <a href=\"#\">";
echo twig_escape_filter($this->env, 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.', 179, $this->source); })()), "numberOfPeople", [], "any", false, false, false, 179), "html", null, true);
echo "</a></li>
";
}
// line 181
echo " </ul>
</div>
</div>
<div class=\"box-widget-content pt-0\">
<div class=\"box-widget-list\">
<h4 class=\"text-left mb-1 step-devis-request text-theme-bleu-marine fw-bold\"><span>2</span> Description trajet</h4>
</div>
<div class=\"box-widget-list\">
<ul>
<li class=\"departure-address mb-0\"><a href=\"#\" class=\"mx-0 text-uppercase\"><i class=\"fal fa-car\"></i> Utilisation du véhicule : ";
// line 190
if ((0 === 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", false, false, false, 190), "Oui"))) {
echo "<strong>Oui</strong>";
} else {
echo "<strong>Non</strong>";
}
echo "</a></li>
";
// line 191
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", false, false, false, 191) && !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", false, false, false, 191)))) {
// line 192
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 192));
foreach ($context['_seq'] as $context["_key"] => $context["vehicleDetail"]) {
echo "
";
// line 193
if (twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "day", [], "any", false, false, false, 193)) {
echo "
<li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">- ";
// line 194
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "day", [], "any", false, false, false, 194), "d/m/Y"), "html", null, true);
echo " :</a></li>
";
}
// line 196
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "departureAddress", [], "any", false, false, false, 196)) {
echo "
<li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">";
// line 197
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "departureAddress", [], "any", false, false, false, 197), "html", null, true);
echo ",</a></li>
";
}
// line 199
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "destinationAddress", [], "any", false, false, false, 199)) {
// line 200
echo " <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "destinationAddress", [], "any", false, false, false, 200), "html", null, true);
echo "</a></li>
";
}
// line 202
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "departureTime", [], "any", false, false, false, 202) && twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "returnTime", [], "any", false, false, false, 202))) {
// line 203
echo " <li class=\"departure-address ";
if (twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "infos", [], "any", false, false, false, 203)) {
echo "py-0";
} else {
echo "pt-0";
}
echo "\"><a href=\"#\" class=\"mx-0 text-transform-none\">Départ ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "departureTime", [], "any", false, false, false, 203), "H\\hi"), "html", null, true);
echo " - Retour ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "returnTime", [], "any", false, false, false, 203), "H\\hi"), "html", null, true);
echo "</a></li>
";
}
// line 205
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "infos", [], "any", false, false, false, 205)) {
// line 206
echo " <li class=\"departure-address pt-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">";
echo twig_get_attribute($this->env, $this->source, $context["vehicleDetail"], "infos", [], "any", false, false, false, 206);
echo "</a></li>
";
}
// line 208
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['vehicleDetail'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 209
echo " ";
}
// line 210
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 : ";
if ((0 === 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", false, false, false, 210), "Oui"))) {
echo "<strong>Oui</strong>";
} else {
echo "<strong>Non</strong>";
}
echo "</a></li>
";
// line 211
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", false, false, false, 211) && !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", false, false, false, 211)))) {
// line 212
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 212));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["attachment"]) {
echo "
";
// line 213
if (twig_get_attribute($this->env, $this->source, $context["attachment"], "originalName", [], "any", false, false, false, 213)) {
echo "
<li class=\"departure-address ";
// line 214
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 214)) {
echo "pt-0";
} else {
echo "py-0";
}
echo "\"><a href=\"#\" class=\"mx-0 text-transform-none text-italic fw-bold text-theme-bleu-marine\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["attachment"], "originalName", [], "any", false, false, false, 214), "html", null, true);
echo "</a></li>
";
}
// line 216
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attachment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 217
echo " ";
}
// line 218
echo "
";
// line 219
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", false, false, false, 219)) {
// line 220
echo " <li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Motif du déplacement :</span> <a href=\"#\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 220, $this->source); })()), "devisTravelReason", [], "any", false, false, false, 220), "name", [], "any", false, false, false, 220), "html", null, true);
echo "</a></li>
";
}
// line 222
echo " ";
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", false, false, false, 222)) {
// line 223
echo " <li class=\"mb-2\"><span><i class=\"fal fa-suitcase\"></i> Bagages :</span> <a href=\"#\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 223, $this->source); })()), "devisLuggage", [], "any", false, false, false, 223), "name", [], "any", false, false, false, 223), "html", null, true);
echo "</a></li>
";
}
// line 225
echo " ";
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", false, false, false, 225)) {
// line 226
echo " <li class=\"mb-2\"><span><i class=\"fal fa-info-circle\"></i> Informations complémentaires :</span></li>
<li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">";
// line 227
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", false, false, false, 227);
echo "</a></li>
";
}
// line 229
echo " ";
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", false, false, false, 229)) {
// line 230
echo " <li class=\"mb-2\"><span><i class=\"fal fa-screwdriver\"></i> Equipement indispensable :</span></li>
";
// line 231
$context['_parent'] = $context;
$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", false, false, false, 231));
foreach ($context['_seq'] as $context["_key"] => $context["equipment"]) {
// line 232
echo " <li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">- ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["equipment"], "name", [], "any", false, false, false, 232), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['equipment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 234
echo " ";
}
// line 235
echo " ";
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", false, false, false, 235)) {
// line 236
echo " <li class=\"mb-0\"><span><i class=\"fal fa-money-bill-wave\"></i> Budget :</span> <a href=\"#\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 236, $this->source); })()), "devisBudget", [], "any", false, false, false, 236), "name", [], "any", false, false, false, 236), "html", null, true);
echo "</a></li>
";
}
// line 238
echo " </ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 250
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 251
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
const stripe = Stripe('";
// line 253
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", null, true);
echo "');
const elements = stripe.elements();
const cardNumber = elements.create('cardNumber', { placeholder: '1234 1234 1234 1234' });
cardNumber.mount('#sg_credit_reload_card_number');
const expDate = elements.create('cardExpiry');
expDate.mount('#sg_credit_reload_expiry');
const cvc = elements.create('cardCvc', { placeholder: 'CVV' });
cvc.mount('#sg_credit_reload_cvv');
cardNumber.addEventListener(\"change\", (event) => {
const displayError = document.getElementById(\"sg_credit_reload_card_errors\")
displayError.textContent = event.error ? event.error.message : \"\";
})
expDate.addEventListener(\"change\", (event) => {
const displayError = document.getElementById(\"sg_credit_reload_expiry_errors\")
displayError.textContent = event.error ? event.error.message : \"\";
})
cvc.addEventListener(\"change\", (event) => {
const displayError = document.getElementById(\"sg_credit_reload_cvv_errors\")
displayError.textContent = event.error ? event.error.message : \"\";
})
const form = document.getElementById('paymentFormRecap');
form.addEventListener('submit', async (event) => {
event.preventDefault();
const cardHolderName = document.getElementById(\"sg_credit_reload_card_holder_name\").value;
const montant = document.getElementById(\"sg_credit_reload_amount\").value * 100;
const payButton = document.getElementById(\"card-button\");
payButton.disabled = true;
try {
const response = await fetch(\"";
// line 285
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_client_credit_reload_modal");
echo "\", {
method: 'POST',
body: new FormData(form),
headers: {
'X-Requested-With': 'XMLHttpRequest',
}
});
if (!response.ok) {
throw new Error(\"Erreur de communication avec le serveur.\");
}
const data = await response.json();
if (!data.client_secret) {
throw new Error(\"Erreur lors de la création du paiement.\");
}
const clientSecret = data.client_secret;
const paymentResult = await stripe.confirmCardPayment(clientSecret, {
payment_method: {
card: cardNumber,
billing_details: {
name: cardHolderName,
},
},
});
if (paymentResult.error) {
document.getElementById(\"errors\").innerText = paymentResult.error.message;
payButton.disabled = false;
} else if (paymentResult.paymentIntent && paymentResult.paymentIntent.status === 'succeeded') {
const completeResponse = await fetch(\"";
// line 316
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_client_complete_payment_modal");
echo "\", {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest',
},
body: JSON.stringify({
payment_intent_id: paymentResult.paymentIntent.id,
amount: montant,
status: paymentResult.paymentIntent.status
})
});
const completeData = await completeResponse.json();
if (completeData.success) {
window.scrollTo(0, 0);
window.location.reload(true);
} else {
document.getElementById(\"errors\").innerText = completeData.message || \"Erreur lors de la finalisation du paiement.\";
}
} else {
document.getElementById(\"errors\").innerText = \"Le paiement a échoué.\";
payButton.disabled = false;
}
} catch (error) {
document.getElementById(\"errors\").innerText = error.message;
payButton.disabled = false;
}
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/service/step4/recapitulatif.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %} Récapitulatif de devis : {{ service.title }} | {{ parent() }} {% endblock %}
{% block body %}
<section class=\"grey-blue-bg small-padding\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8\">
{{ include('base-default/message-flash-devis.html.twig') }}
<div class=\"list-single-main-container pl-0\">
<div class=\"title-devis\">
<span>Devis immédiat pour {{ service.title }}</span>
</div>
<div class=\"etape-demande-devis fl-wrap mb-4\">
<div class=\"flex-center-wrap\">
<a href=\"{{ url('app_client_service', {'slug': service.slug}) }}\"><span>1</span> Type de trajet</a>
<a href=\"{{ url('app_client_service_route_description', {'slug': service.slug}) }}\"><span>2</span> Description trajet</a>
<a href=\"{{ url('app_client_service_login_info', {'slug': service.slug}) }}\"><span>3</span> Vos informations</a>
<a href=\"#\" class=\"active\"><span>4</span> Récapitulatif/Validation</a>
</div>
<div class=\"box-widget-list text-left mt-3\">
<div class=\"d-flex align-items-center\">
<img src=\"{{ asset('front/images/bot-recap.png') }}\" class=\"img-recap-devis\" alt=\"\" />
<p class=\"p-recap-devis\">Nous allons faire un récapitulatif ensemble.</p>
</div>
</div>
<div class=\"box-widget-list text-left mt-1\">
<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>
{% if devis.distance and devis.distancePerTrip %}
<p>Vous allez parcourir une distance approximative de <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.distance }} ({{ devis.distancePerTrip }} par trajet)</span>.</p>
{% else %}
<p>Vous allez parcourir une distance approximative de <span class=\"text-theme-bleu-marine fw-bold\">{{ devis.distance }}</span>.</p>
{% endif %}
{% if devis.needVehicleOnSite == 'Non' %}
<p>Sur place, vous n'aurez pas besoin du véhicule.</p>
{% elseif devis.needVehicleOnSite == 'Oui' %}
{% if devis.typeOfTrip == 'Séjours' %}
<p class=\"pb-0\">Voici le détail des destinations pendant votre séjour :</p>
{% elseif devis.typeOfTrip == 'Aller-Retour' %}
<p class=\"pb-0\">Voici le détail des destinations pendant votre trajet :</p>
{% endif %}
{% for vehicleDetail in devis.vehicleDetails %}
{% if devis.typeOfTrip == 'Séjours' %}
<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>
{% if vehicleDetail.infos %}
<p {% if loop.last %}{% else %}class=\"pb-0\"{% endif %}>Informations supplémentaires : <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.infos }}</span></p>
{% endif %}
{% elseif devis.typeOfTrip == 'Aller-Retour' %}
<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>
{% if vehicleDetail.infos %}
<p {% if loop.last %}{% else %}class=\"pb-0\"{% endif %}>Informations supplémentaires : <span class=\"text-theme-bleu-marine fw-bold\">{{ vehicleDetail.infos }}</span></p>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if devis.addPdfDocument == 'Oui' %}
<p class=\"pb-0\">Vous souhaitez envoyer le(s) document(s) suivant(s) au transporteur :</p>
{% for attachment in devis.attachments %}
<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>
{% endfor %}
{% endif %}
{% if devis.typeOfTrip == 'Aller-Retour' or devis.typeOfTrip == 'Séjours' %}
<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>
{% endif %}
<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>
{% if devis.devisEquipment and devis.devisEquipment is not empty %}
<p class=\"pb-0\">Vous avez besoin d'équipements particuliers dans le véhicule ci-dessous :</p>
{% for equipment in devis.devisEquipment %}
<p {% if loop.last %}{% else %}class=\"pb-0\"{% endif %}><i class=\"fas fa-circle font-size-04 vertical-align-middle\"></i> {{ equipment.name }}</p>
{% endfor %}
{% else %}
<p>Vous n'avez pas besoin d'équipements particuliers dans le véhicule.</p>
{% endif %}
</div>
<div class=\"box-widget-list\">
<hr class=\"my-2\">
</div>
<div class=\"box-widget-list text-left mt-4 mb-1\">
<h1 class=\"text-theme-bleu-marine text-uppercase text-center fw-bold\">Option de diffusion</h1>
</div>
<div class=\"devis-currency-wrap\">
<div class=\"show-currency-devis\">
<span class=\"text-theme-orange text-uppercase fw-bold mr-1\">
<img src=\"{{ asset('front/images/money_8366606.png') }}\" class=\"img-crab-devis mr-2\" alt=\"\"> {{ app.user.creditBalance | number_format(2, ',', ' ') }} Crédit(s)
</span>
<span class=\"text-theme-gray text-uppercase fw-bold mr-1\"> Restant</span>
<span class=\"text-uppercase btn-recharger-devis modal-open\">Recharger</span>
</div>
</div>
{{ form_start(form) }}
<div class=\"form-diffusion-option\">
<div class=\"mb-1\">
{{ form_widget(form.miseEnAvance) }}
<img src=\"{{ asset('front/images/views.png') }}\" class=\"ml-1\" alt=\"\">
<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>
</div>
<div class=\"mb-1\">
{{ form_widget(form.remonteEnTeteDeListe) }}
<img src=\"{{ asset('front/images/up_annonce.png') }}\" class=\"ml-1\" alt=\"\">
<label for=\"sg_devis_remonteEnTeteDeListe\">Remonter en tête de liste tout les jours : <span class=\"ml-2\">8 Crédits</span></label>
</div>
<div class=\"mb-1\">
{{ form_widget(form.demandeUrgente) }}
<img src=\"{{ asset('front/images/annonce_urgente.png') }}\" class=\"ml-1\" alt=\"\">
<label for=\"sg_devis_demandeUrgente\">Logo demande urgente <span class=\"dot-demande-urgente\">:</span> <span class=\"ml-2\">3 Crédits</span></label>
</div>
<div class=\"div-total-devis\">
{% if form.vars.errors is not empty %}
<div class=\"form-error\">
{% for error in form.vars.errors %}
<p class=\"pb-0\">{{ error.message }}</p>
{% endfor %}
</div>
{% endif %}
<div class=\"\">
<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>
</div>
</div>
</div>
<div class=\"book-form\">
<div class=\"width-100 d-flex justify-content-between flex-wrap mt-4\">
<a href=\"{{ url('app_client_service_login_info', {'slug': service.slug}) }}\" class=\"btn-prev color3-bg\">
<i class=\"fal fa-angle-double-left\"></i> Précédent
</a>
<button type=\"submit\" class=\"btn-next color2-bg\">
{% trans %}Validation{% endtrans %}
</button>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
</div>
<div class=\"col-md-4\">
<div class=\"box-widget-wrap\">
<div class=\"box-widget-item fl-wrap\">
<div class=\"box-widget widget-posts\">
<div class=\"box-widget-content pb-3\">
<div class=\"box-widget-item-header mb-3\">
<h3 class=\"text-uppercase fw-bold text-theme-bleu-marine\">Votre demande</h3>
</div>
<div class=\"box-widget-list\">
<h4 class=\"text-left mb-3 step-devis-request text-theme-bleu-marine fw-bold\"><span>1</span> Type de trajet</h4>
</div>
<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>
<div class=\"box-widget-list\">
<h4 class=\"text-left text-uppercase text-theme-orange fw-bold mb-1\">{{ devis.typeOfTrip }}</h4>
</div>
<div class=\"box-widget-list\">
<ul>
{% if devis.departureAddress %}
<li class=\"departure-address\"><a href=\"#\" class=\"mx-0\"><i class=\"fal fa-map-marker-alt\"></i> {{ devis.departureAddress }}</a></li>
{% endif %}
{% if devis.arrivalAddress %}
<li class=\"arrival-address\"><a href=\"#\" class=\"mx-0\"><i class=\"fal fa-map-pin\"></i> {{ devis.arrivalAddress }}</a></li>
{% endif %}
{% if devis.departureDate and devis.departureTime %}
<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>
{% endif %}
{% if devis.returnDate and devis.returnTime %}
<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>
{% elseif devis.returnDate is null and devis.returnTime %}
<li class=\"mb-2\"><span><i class=\"fal fa-clock\"></i> Retour :</span> <a href=\"#\"> {{ devis.returnTime|date('H\\\\hi') }} </a></li>
{% endif %}
{% if devis.distance and devis.distancePerTrip %}
<li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Distance :</span> <a href=\"#\">{{ devis.distance }} ({{ devis.distancePerTrip }} par trajet)</a></li>
{% else %}
<li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Distance :</span> <a href=\"#\">{{ devis.distance }}</a></li>
{% endif %}
{% if devis.numberOfPeople %}
<li><span><i class=\"fal fa-users\"></i> Passagers :</span> <a href=\"#\">{{ devis.numberOfPeople }}</a></li>
{% endif %}
</ul>
</div>
</div>
<div class=\"box-widget-content pt-0\">
<div class=\"box-widget-list\">
<h4 class=\"text-left mb-1 step-devis-request text-theme-bleu-marine fw-bold\"><span>2</span> Description trajet</h4>
</div>
<div class=\"box-widget-list\">
<ul>
<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>
{% if devis.vehicleDetails and devis.vehicleDetails is not empty %}
{% for vehicleDetail in devis.vehicleDetails %}
{% if vehicleDetail.day %}
<li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">- {{ vehicleDetail.day|date('d/m/Y') }} :</a></li>
{% endif %}
{% if vehicleDetail.departureAddress %}
<li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">{{ vehicleDetail.departureAddress }},</a></li>
{% endif %}
{% if vehicleDetail.destinationAddress %}
<li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">{{ vehicleDetail.destinationAddress }}</a></li>
{% endif %}
{% if vehicleDetail.departureTime and vehicleDetail.returnTime %}
<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>
{% endif %}
{% if vehicleDetail.infos %}
<li class=\"departure-address pt-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">{{ vehicleDetail.infos|raw }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
<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>
{% if devis.attachments and devis.attachments is not empty %}
{% for attachment in devis.attachments %}
{% if attachment.originalName %}
<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>
{% endif %}
{% endfor %}
{% endif %}
{% if devis.devisTravelReason %}
<li class=\"mb-2\"><span><i class=\"fal fa-road\"></i> Motif du déplacement :</span> <a href=\"#\">{{ devis.devisTravelReason.name }}</a></li>
{% endif %}
{% if devis.devisLuggage %}
<li class=\"mb-2\"><span><i class=\"fal fa-suitcase\"></i> Bagages :</span> <a href=\"#\">{{ devis.devisLuggage.name }}</a></li>
{% endif %}
{% if devis.infos %}
<li class=\"mb-2\"><span><i class=\"fal fa-info-circle\"></i> Informations complémentaires :</span></li>
<li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">{{ devis.infos|raw }}</a></li>
{% endif %}
{% if devis.devisEquipment %}
<li class=\"mb-2\"><span><i class=\"fal fa-screwdriver\"></i> Equipement indispensable :</span></li>
{% for equipment in devis.devisEquipment %}
<li class=\"departure-address py-0\"><a href=\"#\" class=\"mx-0 text-transform-none\">- {{ equipment.name }}</a></li>
{% endfor %}
{% endif %}
{% if devis.devisBudget %}
<li class=\"mb-0\"><span><i class=\"fal fa-money-bill-wave\"></i> Budget :</span> <a href=\"#\">{{ devis.devisBudget.name }}</a></li>
{% endif %}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
const stripe = Stripe('{{ stripe_public_key }}');
const elements = stripe.elements();
const cardNumber = elements.create('cardNumber', { placeholder: '1234 1234 1234 1234' });
cardNumber.mount('#sg_credit_reload_card_number');
const expDate = elements.create('cardExpiry');
expDate.mount('#sg_credit_reload_expiry');
const cvc = elements.create('cardCvc', { placeholder: 'CVV' });
cvc.mount('#sg_credit_reload_cvv');
cardNumber.addEventListener(\"change\", (event) => {
const displayError = document.getElementById(\"sg_credit_reload_card_errors\")
displayError.textContent = event.error ? event.error.message : \"\";
})
expDate.addEventListener(\"change\", (event) => {
const displayError = document.getElementById(\"sg_credit_reload_expiry_errors\")
displayError.textContent = event.error ? event.error.message : \"\";
})
cvc.addEventListener(\"change\", (event) => {
const displayError = document.getElementById(\"sg_credit_reload_cvv_errors\")
displayError.textContent = event.error ? event.error.message : \"\";
})
const form = document.getElementById('paymentFormRecap');
form.addEventListener('submit', async (event) => {
event.preventDefault();
const cardHolderName = document.getElementById(\"sg_credit_reload_card_holder_name\").value;
const montant = document.getElementById(\"sg_credit_reload_amount\").value * 100;
const payButton = document.getElementById(\"card-button\");
payButton.disabled = true;
try {
const response = await fetch(\"{{ path('app_client_credit_reload_modal') }}\", {
method: 'POST',
body: new FormData(form),
headers: {
'X-Requested-With': 'XMLHttpRequest',
}
});
if (!response.ok) {
throw new Error(\"Erreur de communication avec le serveur.\");
}
const data = await response.json();
if (!data.client_secret) {
throw new Error(\"Erreur lors de la création du paiement.\");
}
const clientSecret = data.client_secret;
const paymentResult = await stripe.confirmCardPayment(clientSecret, {
payment_method: {
card: cardNumber,
billing_details: {
name: cardHolderName,
},
},
});
if (paymentResult.error) {
document.getElementById(\"errors\").innerText = paymentResult.error.message;
payButton.disabled = false;
} else if (paymentResult.paymentIntent && paymentResult.paymentIntent.status === 'succeeded') {
const completeResponse = await fetch(\"{{ path('app_client_complete_payment_modal') }}\", {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest',
},
body: JSON.stringify({
payment_intent_id: paymentResult.paymentIntent.id,
amount: montant,
status: paymentResult.paymentIntent.status
})
});
const completeData = await completeResponse.json();
if (completeData.success) {
window.scrollTo(0, 0);
window.location.reload(true);
} else {
document.getElementById(\"errors\").innerText = completeData.message || \"Erreur lors de la finalisation du paiement.\";
}
} else {
document.getElementById(\"errors\").innerText = \"Le paiement a échoué.\";
payButton.disabled = false;
}
} catch (error) {
document.getElementById(\"errors\").innerText = error.message;
payButton.disabled = false;
}
});
</script>
{% endblock %}", "front/service/step4/recapitulatif.html.twig", "/var/www/vhosts/resoh.fr/httpdocs/templates/front/service/step4/recapitulatif.html.twig");
}
}