var/cache/dev/twig/f7/f7286d33ad03be385c2e7fd4b05a24c18e6124bdcf35f0ebe3594f8e87ca74f8.php line 67

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. /* @SyliusShop/Cart/summary.html.twig */
  14. class __TwigTemplate_888a311e5a0e41994c3cd8dc9eac6e64ac3b30493749c2b5c431f79ea91a9f6e extends \Twig\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.             'banner' => [$this'block_banner'],
  24.             'title' => [$this'block_title'],
  25.             'content' => [$this'block_content'],
  26.             'breadcrumb' => [$this'block_breadcrumb'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "@SyliusShop/layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Cart/summary.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Cart/summary.html.twig"));
  42.         // line 8
  43.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'8$this->source); })()), [=> "@SyliusShop/Form/theme.html.twig"], true);
  44.         // line 10
  45.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""@SyliusShop/Cart/summary.html.twig"10)->unwrap();
  46.         // line 1
  47.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/Cart/summary.html.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  51.         
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  53.     }
  54.     // line 4
  55.     public function block_banner($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  62.         // line 5
  63.         echo "    ";
  64.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_banner_plugin_shop_partial_banner", ["template" => "@SyliusShop/Banner/banner1.html.twig"]));
  65.         echo "
  66. ";
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.     }
  72.     // line 13
  73.     public function block_title($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  80.         // line 14
  81.         echo "\t";
  82.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.votrepanier"), "html"nulltrue);
  83.         echo "
  84. \t|
  85. \t";
  86.         // line 16
  87.         $this->displayParentBlock("title"$context$blocks);
  88.         echo "
  89. ";
  90.         
  91.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  92.         
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  94.     }
  95.     // line 19
  96.     public function block_content($context, array $blocks = [])
  97.     {
  98.         $macros $this->macros;
  99.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  101.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  103.         // line 20
  104.         echo "    ";
  105.         $this->displayBlock('breadcrumb'$context$blocks);
  106.         // line 27
  107.         echo "
  108.     <div class=\"cart\">
  109.         <h1 class=\"page__title\">
  110.             <span class=\"page__tagline\">
  111.                 ";
  112.         // line 33
  113.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.boutiqueenligne"), "html"nulltrue);
  114.         echo "
  115.             </span>
  116.             ";
  117.         // line 35
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.votrepanier"), "html"nulltrue);
  119.         echo "
  120.         </h1>
  121. \t    ";
  122.         // line 38
  123.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render([=> "sylius.shop.checkout.address.steps"=> "sylius.shop.checkout.steps"], $context);
  124.         echo "
  125.         ";
  126.         // line 40
  127.         $this->loadTemplate("@SyliusShop/_flashes.html.twig""@SyliusShop/Cart/summary.html.twig"40)->display($context);
  128.         // line 41
  129.         echo "
  130.         ";
  131.         // line 44
  132.         if ( !twig_get_attribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'44$this->source); })()), "empty", [], "any"falsefalsefalse44)) {
  133.             // line 45
  134.             echo "
  135.             ";
  136.             // line 48
  137.             if ((isset($context["fidelium_his_activate"]) || array_key_exists("fidelium_his_activate"$context) ? $context["fidelium_his_activate"] : (function () { throw new RuntimeError('Variable "fidelium_his_activate" does not exist.'48$this->source); })())) {
  138.                 // line 49
  139.                 echo "            <div id=\"fidelium_cart\">
  140.                 ";
  141.                 // line 52
  142.                 if ((array_key_exists("is_logged_in"$context) &&  !(isset($context["is_logged_in"]) || array_key_exists("is_logged_in"$context) ? $context["is_logged_in"] : (function () { throw new RuntimeError('Variable "is_logged_in" does not exist.'52$this->source); })()))) {
  143.                     // line 53
  144.                     echo "                    <form class=\"message info\" id=\"fideliumform\">
  145.                         <div>
  146.                             <i class=\"fas fa-info-circle\"></i>";
  147.                     // line 55
  148.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.seconnecterfidelium2"), "html"nulltrue);
  149.                     echo "</div>
  150.                         <a href=\"";
  151.                     // line 56
  152.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
  153.                     echo "?destination=cart\" class=\"button button--tertiary button--small\" >";
  154.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.seconnecter"), "html"nulltrue);
  155.                     echo "</a>
  156.                     </form>
  157.                 ";
  158.                 } elseif ((                // line 59
  159. array_key_exists("fideliumCard"$context) && (isset($context["fideliumCard"]) || array_key_exists("fideliumCard"$context) ? $context["fideliumCard"] : (function () { throw new RuntimeError('Variable "fideliumCard" does not exist.'59$this->source); })()))) {
  160.                     // line 60
  161.                     echo "                    <form class=\"message info\" id=\"fideliumform\">
  162.                         <div>
  163.                             <i class=\"fas fa-info-circle\"></i>
  164.                             ";
  165.                     // line 63
  166.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.fidelium.cumulfidelium", ["%points%" => twig_get_attribute($this->env$this->source, (isset($context["fideliumCard"]) || array_key_exists("fideliumCard"$context) ? $context["fideliumCard"] : (function () { throw new RuntimeError('Variable "fideliumCard" does not exist.'63$this->source); })()), "nPoints", [], "any"falsefalsefalse63)]);
  167.                     echo "
  168.                         </div>
  169.                         <div class=\"cart__form-fidelium\">
  170.                             <select name=\"fideliumpoints\" id=\"fideliumpoints\" class=\"tiny-select cart__select-fidelium\">
  171.                                 <option value=\"\">";
  172.                     // line 67
  173.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.fidelium.selectionnermontant"), "html"nulltrue);
  174.                     echo "</option>
  175.                                 ";
  176.                     // line 68
  177.                     $context['_parent'] = $context;
  178.                     $context['_seq'] = twig_ensure_traversable((isset($context["listBoxFidelium"]) || array_key_exists("listBoxFidelium"$context) ? $context["listBoxFidelium"] : (function () { throw new RuntimeError('Variable "listBoxFidelium" does not exist.'68$this->source); })()));
  179.                     foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
  180.                         // line 69
  181.                         echo "                                    ";
  182.                         if ((twig_get_attribute($this->env$this->source$context["option"], "points", [], "any"falsefalsefalse69) < twig_get_attribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'69$this->source); })()), "getTotalWithOutAdjustments", [], "method"falsefalsefalse69))) {
  183.                             // line 70
  184.                             echo "                                    <option value=\"";
  185.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["option"], "points", [], "any"falsefalsefalse70), "html"nulltrue);
  186.                             echo "\"
  187.                                         ";
  188.                             // line 72
  189.                             if ((twig_get_attribute($this->env$this->source$context["option"], "points", [], "any"falsefalsefalse72) == (isset($context["orderpoint"]) || array_key_exists("orderpoint"$context) ? $context["orderpoint"] : (function () { throw new RuntimeError('Variable "orderpoint" does not exist.'72$this->source); })()))) {
  190.                                 echo " SELECTED ";
  191.                             }
  192.                             echo " >
  193.                                         ";
  194.                             // line 74
  195.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.fidelium.pointsutilises", ["%points%" => twig_get_attribute($this->env$this->source$context["option"], "points", [], "any"falsefalsefalse74)]), "html"nulltrue);
  196.                             echo "
  197.                                         (-";
  198.                             // line 75
  199.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["option"], "label", [], "any"falsefalsefalse75), "html"nulltrue);
  200.                             echo ")
  201.                                     </option>
  202.                                     ";
  203.                         }
  204.                         // line 78
  205.                         echo "                                ";
  206.                     }
  207.                     $_parent $context['_parent'];
  208.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
  209.                     $context array_intersect_key($context$_parent) + $_parent;
  210.                     // line 79
  211.                     echo "                            </select>
  212.                             <input type=\"submit\" value=\"";
  213.                     // line 80
  214.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.cart.valider"), "html"nulltrue);
  215.                     echo "\" class=\"button button--tertiary button--small\"/>
  216.                         </div>
  217.                     </form>
  218.                 <!-- le user n'est pas connecté-->
  219.                 ";
  220.                 } else {
  221.                     // line 87
  222.                     echo "
  223.                     <!-- le user est connecté mais n'a pas activé sa carte-->
  224.                     <form class=\"message info\" id=\"fideliumform\">
  225.                         <div>
  226.                             <i class=\"fas fa-info-circle\"></i>
  227.                             ";
  228.                     // line 92
  229.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.veuillezactiverfidelium"), "html"nulltrue);
  230.                     echo "
  231.                         </div>
  232.                         <a href=\"";
  233.                     // line 94
  234.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fidelium_register");
  235.                     echo "?destination=cart\" class=\"button button--tertiary button--small\">";
  236.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.fidelium.activerfidelium"), "html"nulltrue);
  237.                     echo "</a>
  238.                     </form>
  239.                 ";
  240.                 }
  241.                 // line 97
  242.                 echo "            </div>
  243.             ";
  244.             }
  245.             // line 99
  246.             echo "
  247.             <div class=\"ui stackable grid\">
  248.                 <div class=\"wide column cart__products\">
  249.                     <div>
  250.                         ";
  251.             // line 103
  252.             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.'103$this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_cart_save"), "attr" => ["class" => "ui loadable form""novalidate" => "novalidate""id" => 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.'103$this->source); })()), "vars", [], "any"falsefalsefalse103), "id", [], "any"falsefalsefalse103)]]);
  253.             echo "
  254.                         ";
  255.             // line 104
  256.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'104$this->source); })()), 'errors');
  257.             echo "
  258.                         <input type=\"hidden\" name=\"_method\" value=\"PATCH\"/>
  259.                         <input type=\"hidden\" id=\"fidelium\" name=\"fidelium\" value=\"\"/>
  260.                         <input type=\"hidden\" id=\"fideliumupdate\" name=\"fideliumupdate\" value=\"\"/>
  261.                         ";
  262.             // line 108
  263.             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.'108$this->source); })()), "_token", [], "any"falsefalsefalse108), 'row');
  264.             echo "
  265.                         ";
  266.             // line 109
  267.             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.'109$this->source); })()), 'form_end', ["render_rest" => false]);
  268.             echo "
  269.                         ";
  270.             // line 111
  271.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.cart.summary.items", ["cart" => (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'111$this->source); })()), "form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'111$this->source); })())]);
  272.             echo "
  273.                         <table id=\"sylius-cart-items\" ";
  274.             // line 113
  275.             echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("cart-items");
  276.             echo " class=\"ui very basic celled table\">
  277.                             <thead>
  278.                                 <tr>
  279.                                     <th class=\"cart__table-delete\" width=\"25\" style=\"padding: 0 10px !important\"></th>
  280.                                     <th >";
  281.             // line 117
  282.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.cart.produits"), "html"nulltrue);
  283.             echo "</th>
  284.                                     <th class=\"center aligned\">";
  285.             // line 118
  286.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.cart.prixttc"), "html"nulltrue);
  287.             echo "</th>
  288.                                     <th class=\"center aligned cart__table-qty\">";
  289.             // line 119
  290.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.qty"), "html"nulltrue);
  291.             echo "</th>
  292.                                     <th class=\"right aligned\">";
  293.             // line 120
  294.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.cart.soustotal"), "html"nulltrue);
  295.             echo "</th>
  296.                                 </tr>
  297.                             </thead>
  298.                             <tbody>
  299.                                 ";
  300.             // line 125
  301.             $context['_parent'] = $context;
  302.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'125$this->source); })()), "items", [], "any"falsefalsefalse125));
  303.             $context['loop'] = [
  304.               'parent' => $context['_parent'],
  305.               'index0' => 0,
  306.               'index'  => 1,
  307.               'first'  => true,
  308.             ];
  309.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  310.                 $length count($context['_seq']);
  311.                 $context['loop']['revindex0'] = $length 1;
  312.                 $context['loop']['revindex'] = $length;
  313.                 $context['loop']['length'] = $length;
  314.                 $context['loop']['last'] = === $length;
  315.             }
  316.             foreach ($context['_seq'] as $context["key"] => $context["item"]) {
  317.                 // line 126
  318.                 echo "
  319.                                     ";
  320.                 // line 127
  321.                 $this->loadTemplate("@SyliusShop/Cart/Summary/_item.html.twig""@SyliusShop/Cart/summary.html.twig"127)->display(twig_array_merge($context, ["item" => $context["item"], "form" => 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.'127$this->source); })()), "items", [], "any"falsefalsefalse127), $context["key"], [], "array"falsefalsefalse127), "main_form" => 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.'127$this->source); })()), "vars", [], "any"falsefalsefalse127), "id", [], "any"falsefalsefalse127), "loop_index" => twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse127)]));
  322.                 // line 128
  323.                 echo "
  324.                                 ";
  325.                 ++$context['loop']['index0'];
  326.                 ++$context['loop']['index'];
  327.                 $context['loop']['first'] = false;
  328.                 if (isset($context['loop']['length'])) {
  329.                     --$context['loop']['revindex0'];
  330.                     --$context['loop']['revindex'];
  331.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  332.                 }
  333.             }
  334.             $_parent $context['_parent'];
  335.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
  336.             $context array_intersect_key($context$_parent) + $_parent;
  337.             // line 130
  338.             echo "                            </tbody>
  339.                         </table>
  340.                         <div class=\"ui hidden divider\"></div>
  341.                         ";
  342.             // line 135
  343.             echo "                    </div>
  344.                 </div>
  345.             </div>
  346.             <div class=\"cart__columns\">
  347.                 <div class=\"cart-promotion\">
  348.                     ";
  349.             // line 142
  350.             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "promotionCoupon", [], "any"truetruefalse142)) {
  351.                 // line 143
  352.                 echo "                        <h4 class=\"dark-header\"><i class=\"fas fa-certificate\"></i>";
  353.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.codepromotitre"), "html"nulltrue);
  354.                 echo "</h4>
  355.                         <div class=\"cart-promotion__content\">
  356.                             <p class=\"cart-promotion__text\">";
  357.                 // line 145
  358.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.codepromotexte"), "html"nulltrue);
  359.                 echo "</p>
  360.                             ";
  361.                 // line 147
  362.                 $context["main_form"] = 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.'147$this->source); })()), "vars", [], "any"falsefalsefalse147), "id", [], "any"falsefalsefalse147);
  363.                 // line 148
  364.                 echo "                            <div id=\"sylius-coupon\" ";
  365.                 echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("cart-promotion-coupon");
  366.                 echo ">
  367.                                 <div class=\"cart-promotion__form\">
  368.                                     ";
  369.                 // line 150
  370.                 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.'150$this->source); })()), "promotionCoupon", [], "any"falsefalsefalse150), 'widget'$this->env->getFilter('sylius_merge_recursive')->getCallable()($this->env->getFunction('sylius_test_form_attribute')->getCallable()("cart-promotion-coupon-input"), ["attr" => ["form" => (isset($context["main_form"]) || array_key_exists("main_form"$context) ? $context["main_form"] : (function () { throw new RuntimeError('Variable "main_form" does not exist.'150$this->source); })()), "placeholder" => ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.enter_your_code") . "...")]]));
  371.                 echo "
  372.                                     <button type=\"submit\" id=\"sylius-save\" ";
  373.                 // line 151
  374.                 echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("apply-coupon-button");
  375.                 echo " class=\"button button--secondary button--medium\" form=\"";
  376.                 echo twig_escape_filter($this->env, (isset($context["main_form"]) || array_key_exists("main_form"$context) ? $context["main_form"] : (function () { throw new RuntimeError('Variable "main_form" does not exist.'151$this->source); })()), "html"nulltrue);
  377.                 echo "\">
  378.                                         ";
  379.                 // line 152
  380.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.apply_coupon"), "html"nulltrue);
  381.                 echo "</button>
  382.                                 </div>
  383.                                 <br>
  384.                                 ";
  385.                 // line 155
  386.                 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.'155$this->source); })()), "promotionCoupon", [], "any"falsefalsefalse155), 'errors');
  387.                 echo "
  388.                             </div>
  389.                         </div>
  390.                     ";
  391.             }
  392.             // line 160
  393.             echo "                </div>
  394.                 ";
  395.             // line 162
  396.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.cart.summary", ["cart" => (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'162$this->source); })())]);
  397.             echo "
  398.             </div>
  399.             <br />
  400.             <div class=\"field\">
  401.                 <div class=\"ui toggle\">
  402.                     <input type=\"checkbox\" id=\"cgv-checkbox\" name=\"cgv-checkbox\">
  403.                     <label for=\"cgv-checkbox\">
  404.                         J'accepte les <a href=\"";
  405.             // line 172
  406.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show", ["slug" => "conditions-generales-de-vente"]);
  407.             echo "\" target=\"_blank\" style=\"text-decoration: underline;\">conditions générales de vente</a> du site
  408.                     </label>
  409.                     <br>
  410.                     <div class=\"ui red pointing label sylius-validation-error\" id=\"cgv-checkbox-error\" style=\"display: none;\">
  411.                         Veuillez valider les CGV pour continuer.
  412.                     </div>
  413.                 </div>
  414.             </div>
  415.             <div class=\"cart__buttons-actions\">
  416.                 <a href=\"";
  417.             // line 182
  418.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_product_search");
  419.             echo "\" class=\"button button--outline\">
  420.                     <i class=\"fas fa-arrow-left\"></i>
  421.                     ";
  422.             // line 184
  423.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.poursuivre"), "html"nulltrue);
  424.             echo "</a>
  425.                 <a href=\"";
  426.             // line 186
  427.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_checkout_start");
  428.             echo "\" class=\"button button--secondary\" id=\"confirm-command-btn\">
  429.                     <i class=\"check icon\"></i>
  430.                     ";
  431.             // line 188
  432.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.checkout"), "html"nulltrue);
  433.             echo "</a>
  434.             </div>
  435.             ";
  436.             // line 191
  437.             if ((isset($context["fidelium_his_activate"]) || array_key_exists("fidelium_his_activate"$context) ? $context["fidelium_his_activate"] : (function () { throw new RuntimeError('Variable "fidelium_his_activate" does not exist.'191$this->source); })())) {
  438.                 // line 192
  439.                 echo "            <div class=\"fideliumtxt inline-content-shadow\">
  440.                 <div>
  441.                     <h3 class=\"margin-bottom-0 font-primary\"><strong>";
  442.                 // line 194
  443.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.fidelium.gagnerfidelium");
  444.                 echo " </strong></h3>
  445.                     <i class=\"text-small\">";
  446.                 // line 195
  447.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.fidelium.demanderfidelium"), "html"nulltrue);
  448.                 echo "</i>
  449.                 </div>
  450.                 <div>";
  451.                 // line 197
  452.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.fidelium.cumulerfidelium");
  453.                 echo "</div>
  454.                 ";
  455.                 // line 200
  456.                 if ((array_key_exists("is_logged_in"$context) &&  !(isset($context["is_logged_in"]) || array_key_exists("is_logged_in"$context) ? $context["is_logged_in"] : (function () { throw new RuntimeError('Variable "is_logged_in" does not exist.'200$this->source); })()))) {
  457.                     // line 201
  458.                     echo "                    <a href=\"";
  459.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
  460.                     echo "?destination=cart\" class=\"button button--outline\">
  461.                         ";
  462.                     // line 202
  463.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.seconnecter"), "html"nulltrue);
  464.                     echo "
  465.                     </a>
  466.                 ";
  467.                 } elseif ((                // line 205
  468. array_key_exists("fideliumCard"$context) && ((isset($context["fideliumCard"]) || array_key_exists("fideliumCard"$context) ? $context["fideliumCard"] : (function () { throw new RuntimeError('Variable "fideliumCard" does not exist.'205$this->source); })()) == false))) {
  469.                     // line 206
  470.                     echo "                    <a href=\"";
  471.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fidelium_register");
  472.                     echo "?destination=cart\" class=\"button button--outline\">
  473.                         ";
  474.                     // line 207
  475.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.fidelium.activerfidelium"), "html"nulltrue);
  476.                     echo "
  477.                     </a>
  478.                 ";
  479.                 }
  480.                 // line 210
  481.                 echo "
  482.             </div>
  483.             ";
  484.             }
  485.             // line 214
  486.             echo "
  487.             <div id=\"notre-histoire-bottom\" class=\"citation\">
  488.                 <div class=\"container\">
  489.                     <p>« ";
  490.             // line 217
  491.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.textfooter.commandez"), "html"nulltrue);
  492.             echo " »</p>
  493.                     <a class=\"button button--secondary button--medium\" href=\"";
  494.             // line 218
  495.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_product_search");
  496.             echo "\">";
  497.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.textfooter.decouvrez"), "html"nulltrue);
  498.             echo "</a>
  499.                 </div>
  500.             </div>
  501.         ";
  502.         } else {
  503.             // line 223
  504.             echo "            ";
  505.             echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.your_cart_is_empty"], 223$context$this->getSourceContext());
  506.             echo "
  507.         ";
  508.         }
  509.         // line 225
  510.         echo "    </div>
  511. ";
  512.         
  513.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  514.         
  515.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  516.     }
  517.     // line 20
  518.     public function block_breadcrumb($context, array $blocks = [])
  519.     {
  520.         $macros $this->macros;
  521.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  522.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  523.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  524.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  525.         // line 21
  526.         echo "        <div class=\"ui breadcrumb\">
  527.             <a href=\"";
  528.         // line 22
  529.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  530.         echo "\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
  531.             <div class=\"divider\"> / </div>
  532.             <a href=\"";
  533.         // line 24
  534.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_account_dashboard");
  535.         echo "\" class=\"section\">";
  536.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.votrepanier"), "html"nulltrue);
  537.         echo "</a>
  538.         </div>
  539.     ";
  540.         
  541.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  542.         
  543.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  544.     }
  545.     // line 229
  546.     public function block_javascripts($context, array $blocks = [])
  547.     {
  548.         $macros $this->macros;
  549.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  550.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  551.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  552.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  553.         // line 230
  554.         echo "    ";
  555.         $this->displayParentBlock("javascripts"$context$blocks);
  556.         echo "
  557.     <script type=\"text/javascript\">
  558.     \$('#fideliumform').on('submit', function(e) {
  559.         e.preventDefault();
  560.         \$('#fidelium').val(\$('#fideliumpoints').val());
  561.         \$('#fideliumupdate').val(\"1\");
  562.         \$('#sylius_cart').submit();
  563.     });
  564.     \$('.sylius-quantity input').on('change', function() {
  565.         \$('#sylius_cart').submit();
  566.     });
  567.     \$('.line.trash form').on('submit', function(e) {
  568.         e.preventDefault();
  569.         var form = this;
  570.         \$('.ui.modal.cart') .modal({
  571.             closable  : false,
  572.             onApprove : function() {
  573.                 form.submit();
  574.             }
  575.         }).modal('show');
  576.         return false;
  577.     });
  578.     \$('#confirm-command-btn').click((e) => {
  579.         if (!\$('#cgv-checkbox').is(':checked')) {
  580.             e.preventDefault();
  581.             \$('#cgv-checkbox-error').show();
  582.         }
  583.     })
  584.     </script>
  585. ";
  586.         
  587.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  588.         
  589.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  590.     }
  591.     public function getTemplateName()
  592.     {
  593.         return "@SyliusShop/Cart/summary.html.twig";
  594.     }
  595.     public function isTraitable()
  596.     {
  597.         return false;
  598.     }
  599.     public function getDebugInfo()
  600.     {
  601.         return array (  623 => 230,  613 => 229,  598 => 24,  593 => 22,  590 => 21,  580 => 20,  569 => 225,  563 => 223,  553 => 218,  549 => 217,  544 => 214,  538 => 210,  532 => 207,  527 => 206,  525 => 205,  519 => 202,  514 => 201,  512 => 200,  506 => 197,  501 => 195,  497 => 194,  493 => 192,  491 => 191,  485 => 188,  480 => 186,  475 => 184,  470 => 182,  457 => 172,  444 => 162,  440 => 160,  432 => 155,  426 => 152,  420 => 151,  416 => 150,  410 => 148,  408 => 147,  403 => 145,  397 => 143,  395 => 142,  386 => 135,  380 => 130,  365 => 128,  363 => 127,  360 => 126,  343 => 125,  335 => 120,  331 => 119,  327 => 118,  323 => 117,  316 => 113,  311 => 111,  306 => 109,  302 => 108,  295 => 104,  291 => 103,  285 => 99,  281 => 97,  273 => 94,  268 => 92,  261 => 87,  251 => 80,  248 => 79,  242 => 78,  236 => 75,  232 => 74,  225 => 72,  219 => 70,  216 => 69,  212 => 68,  208 => 67,  201 => 63,  196 => 60,  194 => 59,  186 => 56,  182 => 55,  178 => 53,  176 => 52,  171 => 49,  169 => 48,  164 => 45,  162 => 44,  157 => 41,  155 => 40,  150 => 38,  144 => 35,  139 => 33,  131 => 27,  128 => 20,  118 => 19,  106 => 16,  100 => 14,  90 => 13,  77 => 5,  67 => 4,  56 => 1,  54 => 10,  52 => 8,  39 => 1,);
  602.     }
  603.     public function getSourceContext()
  604.     {
  605.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  606. {% block banner %}
  607.     {{ render(url('odiseo_sylius_banner_plugin_shop_partial_banner', {'template': '@SyliusShop/Banner/banner1.html.twig'})) }}
  608. {% endblock %}
  609. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  610. {% import '@SyliusUi/Macro/messages.html.twig' as messages %}
  611. {% block title %}
  612. \t{{ 'sylius.ui.votrepanier'|trans }}
  613. \t|
  614. \t{{ parent() }}
  615. {% endblock %}
  616. {% block content %}
  617.     {% block breadcrumb %}
  618.         <div class=\"ui breadcrumb\">
  619.             <a href=\"{{ path('sylius_shop_homepage') }}\" class=\"section\"><i class=\"fas fa-home\"></i><strong>Mons Fromages</strong></a>
  620.             <div class=\"divider\"> / </div>
  621.             <a href=\"{{ path('sylius_shop_account_dashboard') }}\" class=\"section\">{{ 'sylius.ui.votrepanier'|trans }}</a>
  622.         </div>
  623.     {% endblock %}
  624.     <div class=\"cart\">
  625.         <h1 class=\"page__title\">
  626.             <span class=\"page__tagline\">
  627.                 {{ \"sylius.ui.boutiqueenligne\"|trans }}
  628.             </span>
  629.             {{ \"sylius.ui.votrepanier\"|trans }}
  630.         </h1>
  631. \t    {{ sylius_template_event(['sylius.shop.checkout.address.steps', 'sylius.shop.checkout.steps'], _context) }}
  632.         {% include '@SyliusShop/_flashes.html.twig' %}
  633.         {% if not cart.empty %}
  634.             {% if fidelium_his_activate  %}
  635.             <div id=\"fidelium_cart\">
  636.                 {% if is_logged_in is defined and not is_logged_in %}
  637.                     <form class=\"message info\" id=\"fideliumform\">
  638.                         <div>
  639.                             <i class=\"fas fa-info-circle\"></i>{{ 'sylius.ui.seconnecterfidelium2'|trans }}</div>
  640.                         <a href=\"{{ path('sylius_shop_login') }}?destination=cart\" class=\"button button--tertiary button--small\" >{{ \"sylius.ui.seconnecter\"|trans }}</a>
  641.                     </form>
  642.                 {% elseif fideliumCard is defined and fideliumCard %}
  643.                     <form class=\"message info\" id=\"fideliumform\">
  644.                         <div>
  645.                             <i class=\"fas fa-info-circle\"></i>
  646.                             {{ 'sylius.fidelium.cumulfidelium'|trans({'%points%': fideliumCard.nPoints}) |raw }}
  647.                         </div>
  648.                         <div class=\"cart__form-fidelium\">
  649.                             <select name=\"fideliumpoints\" id=\"fideliumpoints\" class=\"tiny-select cart__select-fidelium\">
  650.                                 <option value=\"\">{{ \"sylius.fidelium.selectionnermontant\"|trans }}</option>
  651.                                 {% for option in listBoxFidelium %}
  652.                                     {% if option.points < cart.getTotalWithOutAdjustments() %}
  653.                                     <option value=\"{{ option.points }}\"
  654.                                         {% if option.points == orderpoint %} SELECTED {% endif %} >
  655.                                         {{ 'sylius.fidelium.pointsutilises'|trans({'%points%':  option.points}) }}
  656.                                         (-{{ option.label }})
  657.                                     </option>
  658.                                     {% endif %}
  659.                                 {% endfor %}
  660.                             </select>
  661.                             <input type=\"submit\" value=\"{{ 'sylius.cart.valider'|trans }}\" class=\"button button--tertiary button--small\"/>
  662.                         </div>
  663.                     </form>
  664.                 <!-- le user n'est pas connecté-->
  665.                 {% else %}
  666.                     <!-- le user est connecté mais n'a pas activé sa carte-->
  667.                     <form class=\"message info\" id=\"fideliumform\">
  668.                         <div>
  669.                             <i class=\"fas fa-info-circle\"></i>
  670.                             {{ 'sylius.ui.veuillezactiverfidelium'|trans }}
  671.                         </div>
  672.                         <a href=\"{{ path('fidelium_register') }}?destination=cart\" class=\"button button--tertiary button--small\">{{ 'sylius.fidelium.activerfidelium'|trans }}</a>
  673.                     </form>
  674.                 {% endif %}
  675.             </div>
  676.             {% endif %}
  677.             <div class=\"ui stackable grid\">
  678.                 <div class=\"wide column cart__products\">
  679.                     <div>
  680.                         {{ form_start(form, {'action': path('sylius_shop_cart_save'), 'attr': {'class': 'ui loadable form', 'novalidate': 'novalidate', 'id': form.vars.id}}) }}
  681.                         {{ form_errors(form) }}
  682.                         <input type=\"hidden\" name=\"_method\" value=\"PATCH\"/>
  683.                         <input type=\"hidden\" id=\"fidelium\" name=\"fidelium\" value=\"\"/>
  684.                         <input type=\"hidden\" id=\"fideliumupdate\" name=\"fideliumupdate\" value=\"\"/>
  685.                         {{ form_row(form._token) }}
  686.                         {{ form_end(form, {'render_rest': false}) }}
  687.                         {{ sylius_template_event('sylius.shop.cart.summary.items', {'cart': cart, 'form': form}) }}
  688.                         <table id=\"sylius-cart-items\" {{ sylius_test_html_attribute('cart-items') }} class=\"ui very basic celled table\">
  689.                             <thead>
  690.                                 <tr>
  691.                                     <th class=\"cart__table-delete\" width=\"25\" style=\"padding: 0 10px !important\"></th>
  692.                                     <th >{{ 'sylius.cart.produits'|trans }}</th>
  693.                                     <th class=\"center aligned\">{{ 'sylius.cart.prixttc'|trans }}</th>
  694.                                     <th class=\"center aligned cart__table-qty\">{{ 'sylius.ui.qty'|trans }}</th>
  695.                                     <th class=\"right aligned\">{{ 'sylius.cart.soustotal'|trans }}</th>
  696.                                 </tr>
  697.                             </thead>
  698.                             <tbody>
  699.                                 {% for key, item in cart.items %}
  700.                                     {% include '@SyliusShop/Cart/Summary/_item.html.twig' with { 'item': item, 'form': form.items[key], 'main_form': form.vars.id, 'loop_index': loop.index} %}
  701.                                 {% endfor %}
  702.                             </tbody>
  703.                         </table>
  704.                         <div class=\"ui hidden divider\"></div>
  705.                         {# include '@SyliusShop/Cart/Summary/_update.html.twig' with {'main_form': form.vars.id} #}
  706.                     </div>
  707.                 </div>
  708.             </div>
  709.             <div class=\"cart__columns\">
  710.                 <div class=\"cart-promotion\">
  711.                     {% if form.promotionCoupon is defined %}
  712.                         <h4 class=\"dark-header\"><i class=\"fas fa-certificate\"></i>{{ 'sylius.ui.codepromotitre'|trans }}</h4>
  713.                         <div class=\"cart-promotion__content\">
  714.                             <p class=\"cart-promotion__text\">{{ 'sylius.ui.codepromotexte'|trans }}</p>
  715.                             {% set main_form = form.vars.id %}
  716.                             <div id=\"sylius-coupon\" {{ sylius_test_html_attribute('cart-promotion-coupon') }}>
  717.                                 <div class=\"cart-promotion__form\">
  718.                                     {{ form_widget(form.promotionCoupon, sylius_test_form_attribute('cart-promotion-coupon-input')|sylius_merge_recursive({'attr': {'form': main_form, 'placeholder': 'sylius.ui.enter_your_code'|trans~'...'}})) }}
  719.                                     <button type=\"submit\" id=\"sylius-save\" {{ sylius_test_html_attribute('apply-coupon-button') }} class=\"button button--secondary button--medium\" form=\"{{ main_form }}\">
  720.                                         {{ 'sylius.ui.apply_coupon'|trans }}</button>
  721.                                 </div>
  722.                                 <br>
  723.                                 {{ form_errors(form.promotionCoupon) }}
  724.                             </div>
  725.                         </div>
  726.                     {% endif %}
  727.                 </div>
  728.                 {{ sylius_template_event('sylius.shop.cart.summary', {'cart': cart}) }}
  729.             </div>
  730.             <br />
  731.             <div class=\"field\">
  732.                 <div class=\"ui toggle\">
  733.                     <input type=\"checkbox\" id=\"cgv-checkbox\" name=\"cgv-checkbox\">
  734.                     <label for=\"cgv-checkbox\">
  735.                         J'accepte les <a href=\"{{ path('bitbag_sylius_cms_plugin_shop_page_show', {slug: 'conditions-generales-de-vente'}) }}\" target=\"_blank\" style=\"text-decoration: underline;\">conditions générales de vente</a> du site
  736.                     </label>
  737.                     <br>
  738.                     <div class=\"ui red pointing label sylius-validation-error\" id=\"cgv-checkbox-error\" style=\"display: none;\">
  739.                         Veuillez valider les CGV pour continuer.
  740.                     </div>
  741.                 </div>
  742.             </div>
  743.             <div class=\"cart__buttons-actions\">
  744.                 <a href=\"{{ path('app_shop_product_search') }}\" class=\"button button--outline\">
  745.                     <i class=\"fas fa-arrow-left\"></i>
  746.                     {{ 'sylius.ui.poursuivre'|trans }}</a>
  747.                 <a href=\"{{ path('sylius_shop_checkout_start') }}\" class=\"button button--secondary\" id=\"confirm-command-btn\">
  748.                     <i class=\"check icon\"></i>
  749.                     {{ 'sylius.ui.checkout'|trans}}</a>
  750.             </div>
  751.             {% if fidelium_his_activate %}
  752.             <div class=\"fideliumtxt inline-content-shadow\">
  753.                 <div>
  754.                     <h3 class=\"margin-bottom-0 font-primary\"><strong>{{ 'sylius.fidelium.gagnerfidelium'|trans|raw  }} </strong></h3>
  755.                     <i class=\"text-small\">{{ 'sylius.fidelium.demanderfidelium'|trans  }}</i>
  756.                 </div>
  757.                 <div>{{ 'sylius.fidelium.cumulerfidelium'|trans|raw  }}</div>
  758.                 {% if  is_logged_in is defined and  not is_logged_in %}
  759.                     <a href=\"{{ path('sylius_shop_login') }}?destination=cart\" class=\"button button--outline\">
  760.                         {{ \"sylius.ui.seconnecter\"|trans }}
  761.                     </a>
  762.                 {% elseif fideliumCard is defined and fideliumCard == false %}
  763.                     <a href=\"{{ path('fidelium_register') }}?destination=cart\" class=\"button button--outline\">
  764.                         {{ 'sylius.fidelium.activerfidelium'|trans  }}
  765.                     </a>
  766.                 {% endif %}
  767.             </div>
  768.             {% endif  %}
  769.             <div id=\"notre-histoire-bottom\" class=\"citation\">
  770.                 <div class=\"container\">
  771.                     <p>« {{ 'sylius.textfooter.commandez'|trans  }} »</p>
  772.                     <a class=\"button button--secondary button--medium\" href=\"{{ path('app_shop_product_search') }}\">{{ 'sylius.textfooter.decouvrez'|trans  }}</a>
  773.                 </div>
  774.             </div>
  775.         {% else %}
  776.             {{ messages.info('sylius.ui.your_cart_is_empty') }}
  777.         {% endif %}
  778.     </div>
  779. {% endblock %}
  780. {% block javascripts %}
  781.     {{ parent() }}
  782.     <script type=\"text/javascript\">
  783.     \$('#fideliumform').on('submit', function(e) {
  784.         e.preventDefault();
  785.         \$('#fidelium').val(\$('#fideliumpoints').val());
  786.         \$('#fideliumupdate').val(\"1\");
  787.         \$('#sylius_cart').submit();
  788.     });
  789.     \$('.sylius-quantity input').on('change', function() {
  790.         \$('#sylius_cart').submit();
  791.     });
  792.     \$('.line.trash form').on('submit', function(e) {
  793.         e.preventDefault();
  794.         var form = this;
  795.         \$('.ui.modal.cart') .modal({
  796.             closable  : false,
  797.             onApprove : function() {
  798.                 form.submit();
  799.             }
  800.         }).modal('show');
  801.         return false;
  802.     });
  803.     \$('#confirm-command-btn').click((e) => {
  804.         if (!\$('#cgv-checkbox').is(':checked')) {
  805.             e.preventDefault();
  806.             \$('#cgv-checkbox-error').show();
  807.         }
  808.     })
  809.     </script>
  810. {% endblock %}
  811. ""@SyliusShop/Cart/summary.html.twig""/home/mons/site/www/templates/bundles/SyliusShopBundle/Cart/summary.html.twig");
  812.     }
  813. }