var/cache/dev/twig/f6/f6aabbd2513fa53c49fd8240bb6d13692724200fad693c0fc9ed42fe6dee1188.php line 34

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. /* main/menuClient.html.twig */
  14. class __TwigTemplate_b76e84809139553f6179982fc17b5d0b059bf404a28bfdcc5483b36556723d00 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'sidebar' => [$this'block_sidebar'],
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""main/menuClient.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""main/menuClient.html.twig"));
  34.         // line 1
  35.         echo "<div id=\"sidebar\">
  36.   ";
  37.         // line 2
  38.         $this->displayBlock('sidebar'$context$blocks);
  39.         // line 80
  40.         echo " </div>
  41.    <!-- The Modal -->
  42. <div class=\"modal\" id=\"myModaler\">
  43.   <div class=\"modal-dialog modal-dialog-centered\">
  44.     <div class=\"modal-content\">
  45.       <!-- Modal Header -->
  46.       <div class=\"modal-header\">
  47.         <h4 class=\"modal-title\">Le type de compte à créer</h4>
  48.         <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\"></button>
  49.       </div>
  50.       <!-- Modal body -->
  51.       <div class=\"modal-body\">
  52.         <a href=\"";
  53.         // line 95
  54.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_particulier");
  55.         echo "\" class=\"btn btn-primary\"> Compte particulier</a>
  56.         <a href=\"";
  57.         // line 96
  58.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_auth");
  59.         echo "\" class=\"btn btn-primary\"> Compte Etablissement</a>
  60.       </div>
  61.       <!-- Modal footer -->
  62.       <div class=\"modal-footer\">
  63.         <button type=\"button\" class=\"btn btn-danger\" data-bs-dismiss=\"modal\">Close</button>
  64.       </div>
  65.     </div>
  66.   </div>
  67. </div>";
  68.         
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  70.         
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  72.     }
  73.     // line 2
  74.     public function block_sidebar($context, array $blocks = [])
  75.     {
  76.         $macros $this->macros;
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  81.         // line 3
  82.         echo "
  83. <div class=\"offcanvas offcanvas-start suha-offcanvas-wrap\" tabindex=\"-1\" id=\"suhaOffcanvas\" aria-labelledby=\"suhaOffcanvasLabel\">
  84.       <!-- Close button-->
  85.       <button class=\"btn-close btn-close-white\" type=\"button\" data-bs-dismiss=\"offcanvas\" aria-label=\"Close\"></button>
  86.       <!-- Offcanvas body-->
  87.       <div class=\"offcanvas-body\">
  88.         <!-- Sidenav Profile-->
  89.         <div class=\"sidenav-profile\">
  90.           <!--<div class=\"user-profile\"><img src=\"img/bg-img/9.jpg\" alt=\"\"></div>-->
  91.           <div class=\"user-profile\">
  92.             <a href=\"";
  93.         // line 13
  94.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_boutique_client_profil", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'13$this->source); })()), "user", [], "any"falsefalsefalse13), "id", [], "any"falsefalsefalse13)]), "html"nulltrue);
  95.         echo "\">
  96.             <img src=\"img/icon.jpg\" alt=\"\">
  97.           </a>
  98.           </div>
  99.             ";
  100.         // line 18
  101.         if ((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.'18$this->source); })()), "user", [], "any"falsefalsefalse18) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'18$this->source); })()), "user", [], "any"falsefalsefalse18), "compte", [], "any"falsefalsefalse18) == "vendeur"))) {
  102.             // line 19
  103.             echo "
  104.           <div class=\"user-info\">
  105.             <h5 class=\"user-name mb-1 text-white\">";
  106.             // line 21
  107.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'21$this->source); })()), "user", [], "any"falsefalsefalse21), "nomBoutique", [], "any"falsefalsefalse21), "html"nulltrue);
  108.             echo "</h5>
  109.            <!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
  110.           </div>
  111.            ";
  112.         } elseif ((twig_get_attribute($this->env$this->source,         // line 25
  113. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'25$this->source); })()), "user", [], "any"falsefalsefalse25) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'25$this->source); })()), "user", [], "any"falsefalsefalse25), "compte", [], "any"falsefalsefalse25) == "client"))) {
  114.             // line 26
  115.             echo "
  116.             <div class=\"user-info\">
  117.             <h5 class=\"user-name mb-1 text-white\">";
  118.             // line 28
  119.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'28$this->source); })()), "user", [], "any"falsefalsefalse28), "getToutleNom", [], "any"falsefalsefalse28), "html"nulltrue);
  120.             echo "</h5>
  121.            <!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
  122.           </div>
  123.          ";
  124.         } else {
  125.             // line 33
  126.             echo "
  127.           <div class=\"user-info\">
  128.             <h5 class=\"user-name mb-1 text-white\">Aid Market</h5>
  129.            <!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
  130.           </div>
  131.           ";
  132.         }
  133.         // line 40
  134.         echo "
  135.         </div>
  136.         <!-- Sidenav Nav-->
  137.         ";
  138.         // line 45
  139.         if (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.'45$this->source); })()), "user", [], "any"falsefalsefalse45)) {
  140.             // line 46
  141.             echo "          
  142.         <ul class=\"sidenav-nav ps-0\">
  143.          <li><a href=\"";
  144.             // line 48
  145.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_boutique_client_profil", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'48$this->source); })()), "user", [], "any"falsefalsefalse48), "id", [], "any"falsefalsefalse48)]), "html"nulltrue);
  146.             echo "\"><i class=\"fa-solid fa-user\"></i>Mon Profil</a></li>
  147.         <li><a href=\"#\"><i class=\"fa-solid fa-bell lni-tada-effect\"></i>Notifications<span class=\"ms-1 badge badge-warning\">0</span></a></li>
  148.           
  149.           <li><a href=\"#\"><i class=\"fa-solid fa-file-code\"></i>Mes commandes</a></li>
  150.           
  151.           <li><a href=\"#\"><i class=\"fa-solid fa-sliders\"></i>Paramètres</a></li>
  152.          
  153.           
  154.           <li><a href=\"#\"><i class=\"fa-solid fa-user\"></i>Conditions d'utilisation</a></li>
  155.           <li><a href=\"";
  156.             // line 57
  157.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  158.             echo "\"><i class=\"fa-solid fa-user\"></i>Se deconnecter</a></li>
  159.         </ul>
  160.       ";
  161.         } else {
  162.             // line 62
  163.             echo "
  164. <ul class=\"sidenav-nav ps-0\">
  165. <li><a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#myModaler\">
  166.        <i class=\"fa-solid fa-user\"></i>Mon Profil</a></li>
  167.                 
  168.           
  169.           <li><a href=\"";
  170.             // line 68
  171.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  172.             echo "\"><i class=\"fa-solid fa-user-secret\"></i>Se connecter</a></li>
  173.           <li><a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#myModal\" ><i class=\"fa-solid fa-user-circle\"></i>s'inscrire</a></li>
  174.           <li><a href=\"#\"><i class=\"fa-solid fa-user\"></i>Conditions d'utilisation</a></li>
  175.         </ul>
  176.       ";
  177.         }
  178.         // line 75
  179.         echo "
  180.       </div>
  181.     </div>
  182.     ";
  183.         
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  185.         
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  187.     }
  188.     public function getTemplateName()
  189.     {
  190.         return "main/menuClient.html.twig";
  191.     }
  192.     public function isTraitable()
  193.     {
  194.         return false;
  195.     }
  196.     public function getDebugInfo()
  197.     {
  198.         return array (  208 => 75,  198 => 68,  190 => 62,  182 => 57,  170 => 48,  166 => 46,  164 => 45,  157 => 40,  148 => 33,  140 => 28,  136 => 26,  134 => 25,  127 => 21,  123 => 19,  121 => 18,  113 => 13,  101 => 3,  91 => 2,  70 => 96,  66 => 95,  49 => 80,  47 => 2,  44 => 1,);
  199.     }
  200.     public function getSourceContext()
  201.     {
  202.         return new Source("<div id=\"sidebar\">
  203.   {% block sidebar %}
  204. <div class=\"offcanvas offcanvas-start suha-offcanvas-wrap\" tabindex=\"-1\" id=\"suhaOffcanvas\" aria-labelledby=\"suhaOffcanvasLabel\">
  205.       <!-- Close button-->
  206.       <button class=\"btn-close btn-close-white\" type=\"button\" data-bs-dismiss=\"offcanvas\" aria-label=\"Close\"></button>
  207.       <!-- Offcanvas body-->
  208.       <div class=\"offcanvas-body\">
  209.         <!-- Sidenav Profile-->
  210.         <div class=\"sidenav-profile\">
  211.           <!--<div class=\"user-profile\"><img src=\"img/bg-img/9.jpg\" alt=\"\"></div>-->
  212.           <div class=\"user-profile\">
  213.             <a href=\"{{ path('app_boutique_client_profil', {id: app.user.id} ) }}\">
  214.             <img src=\"img/icon.jpg\" alt=\"\">
  215.           </a>
  216.           </div>
  217.             {% if app.user and app.user.compte == 'vendeur' %}
  218.           <div class=\"user-info\">
  219.             <h5 class=\"user-name mb-1 text-white\">{{ app.user.nomBoutique }}</h5>
  220.            <!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
  221.           </div>
  222.            {% elseif app.user and app.user.compte == 'client' %}
  223.             <div class=\"user-info\">
  224.             <h5 class=\"user-name mb-1 text-white\">{{ app.user.getToutleNom }}</h5>
  225.            <!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
  226.           </div>
  227.          {% else %}
  228.           <div class=\"user-info\">
  229.             <h5 class=\"user-name mb-1 text-white\">Aid Market</h5>
  230.            <!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
  231.           </div>
  232.           {% endif %}
  233.         </div>
  234.         <!-- Sidenav Nav-->
  235.         {% if app.user %}
  236.           
  237.         <ul class=\"sidenav-nav ps-0\">
  238.          <li><a href=\"{{ path('app_boutique_client_profil', {id: app.user.id} ) }}\"><i class=\"fa-solid fa-user\"></i>Mon Profil</a></li>
  239.         <li><a href=\"#\"><i class=\"fa-solid fa-bell lni-tada-effect\"></i>Notifications<span class=\"ms-1 badge badge-warning\">0</span></a></li>
  240.           
  241.           <li><a href=\"#\"><i class=\"fa-solid fa-file-code\"></i>Mes commandes</a></li>
  242.           
  243.           <li><a href=\"#\"><i class=\"fa-solid fa-sliders\"></i>Paramètres</a></li>
  244.          
  245.           
  246.           <li><a href=\"#\"><i class=\"fa-solid fa-user\"></i>Conditions d'utilisation</a></li>
  247.           <li><a href=\"{{path('app_logout')}}\"><i class=\"fa-solid fa-user\"></i>Se deconnecter</a></li>
  248.         </ul>
  249.       {% else %}
  250. <ul class=\"sidenav-nav ps-0\">
  251. <li><a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#myModaler\">
  252.        <i class=\"fa-solid fa-user\"></i>Mon Profil</a></li>
  253.                 
  254.           
  255.           <li><a href=\"{{path('app_login')}}\"><i class=\"fa-solid fa-user-secret\"></i>Se connecter</a></li>
  256.           <li><a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#myModal\" ><i class=\"fa-solid fa-user-circle\"></i>s'inscrire</a></li>
  257.           <li><a href=\"#\"><i class=\"fa-solid fa-user\"></i>Conditions d'utilisation</a></li>
  258.         </ul>
  259.       {% endif %}
  260.       </div>
  261.     </div>
  262.     {% endblock %}
  263.  </div>
  264.    <!-- The Modal -->
  265. <div class=\"modal\" id=\"myModaler\">
  266.   <div class=\"modal-dialog modal-dialog-centered\">
  267.     <div class=\"modal-content\">
  268.       <!-- Modal Header -->
  269.       <div class=\"modal-header\">
  270.         <h4 class=\"modal-title\">Le type de compte à créer</h4>
  271.         <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\"></button>
  272.       </div>
  273.       <!-- Modal body -->
  274.       <div class=\"modal-body\">
  275.         <a href=\"{{ path('app_particulier') }}\" class=\"btn btn-primary\"> Compte particulier</a>
  276.         <a href=\"{{ path('app_auth') }}\" class=\"btn btn-primary\"> Compte Etablissement</a>
  277.       </div>
  278.       <!-- Modal footer -->
  279.       <div class=\"modal-footer\">
  280.         <button type=\"button\" class=\"btn btn-danger\" data-bs-dismiss=\"modal\">Close</button>
  281.       </div>
  282.     </div>
  283.   </div>
  284. </div>""main/menuClient.html.twig""/htdocs/aidemarket.foresteholding.com/templates/main/menuClient.html.twig");
  285.     }
  286. }