<?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;
/* main/menuClient.html.twig */
class __TwigTemplate_b76e84809139553f6179982fc17b5d0b059bf404a28bfdcc5483b36556723d00 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'sidebar' => [$this, 'block_sidebar'],
];
}
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", "main/menuClient.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "main/menuClient.html.twig"));
// line 1
echo "<div id=\"sidebar\">
";
// line 2
$this->displayBlock('sidebar', $context, $blocks);
// line 80
echo " </div>
<!-- The Modal -->
<div class=\"modal\" id=\"myModaler\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<!-- Modal Header -->
<div class=\"modal-header\">
<h4 class=\"modal-title\">Le type de compte à créer</h4>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\"></button>
</div>
<!-- Modal body -->
<div class=\"modal-body\">
<a href=\"";
// line 95
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_particulier");
echo "\" class=\"btn btn-primary\"> Compte particulier</a>
<a href=\"";
// line 96
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_auth");
echo "\" class=\"btn btn-primary\"> Compte Etablissement</a>
</div>
<!-- Modal footer -->
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-danger\" data-bs-dismiss=\"modal\">Close</button>
</div>
</div>
</div>
</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
public function block_sidebar($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", "sidebar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
// line 3
echo "
<div class=\"offcanvas offcanvas-start suha-offcanvas-wrap\" tabindex=\"-1\" id=\"suhaOffcanvas\" aria-labelledby=\"suhaOffcanvasLabel\">
<!-- Close button-->
<button class=\"btn-close btn-close-white\" type=\"button\" data-bs-dismiss=\"offcanvas\" aria-label=\"Close\"></button>
<!-- Offcanvas body-->
<div class=\"offcanvas-body\">
<!-- Sidenav Profile-->
<div class=\"sidenav-profile\">
<!--<div class=\"user-profile\"><img src=\"img/bg-img/9.jpg\" alt=\"\"></div>-->
<div class=\"user-profile\">
<a href=\"";
// line 13
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->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.', 13, $this->source); })()), "user", [], "any", false, false, false, 13), "id", [], "any", false, false, false, 13)]), "html", null, true);
echo "\">
<img src=\"img/icon.jpg\" alt=\"\">
</a>
</div>
";
// line 18
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", false, false, false, 18) && (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.', 18, $this->source); })()), "user", [], "any", false, false, false, 18), "compte", [], "any", false, false, false, 18) == "vendeur"))) {
// line 19
echo "
<div class=\"user-info\">
<h5 class=\"user-name mb-1 text-white\">";
// line 21
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 21, $this->source); })()), "user", [], "any", false, false, false, 21), "nomBoutique", [], "any", false, false, false, 21), "html", null, true);
echo "</h5>
<!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
</div>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 25
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "user", [], "any", false, false, false, 25) && (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.', 25, $this->source); })()), "user", [], "any", false, false, false, 25), "compte", [], "any", false, false, false, 25) == "client"))) {
// line 26
echo "
<div class=\"user-info\">
<h5 class=\"user-name mb-1 text-white\">";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 28, $this->source); })()), "user", [], "any", false, false, false, 28), "getToutleNom", [], "any", false, false, false, 28), "html", null, true);
echo "</h5>
<!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
</div>
";
} else {
// line 33
echo "
<div class=\"user-info\">
<h5 class=\"user-name mb-1 text-white\">Aid Market</h5>
<!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
</div>
";
}
// line 40
echo "
</div>
<!-- Sidenav Nav-->
";
// line 45
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", false, false, false, 45)) {
// line 46
echo "
<ul class=\"sidenav-nav ps-0\">
<li><a href=\"";
// line 48
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->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.', 48, $this->source); })()), "user", [], "any", false, false, false, 48), "id", [], "any", false, false, false, 48)]), "html", null, true);
echo "\"><i class=\"fa-solid fa-user\"></i>Mon Profil</a></li>
<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>
<li><a href=\"#\"><i class=\"fa-solid fa-file-code\"></i>Mes commandes</a></li>
<li><a href=\"#\"><i class=\"fa-solid fa-sliders\"></i>Paramètres</a></li>
<li><a href=\"#\"><i class=\"fa-solid fa-user\"></i>Conditions d'utilisation</a></li>
<li><a href=\"";
// line 57
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\"><i class=\"fa-solid fa-user\"></i>Se deconnecter</a></li>
</ul>
";
} else {
// line 62
echo "
<ul class=\"sidenav-nav ps-0\">
<li><a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#myModaler\">
<i class=\"fa-solid fa-user\"></i>Mon Profil</a></li>
<li><a href=\"";
// line 68
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
echo "\"><i class=\"fa-solid fa-user-secret\"></i>Se connecter</a></li>
<li><a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#myModal\" ><i class=\"fa-solid fa-user-circle\"></i>s'inscrire</a></li>
<li><a href=\"#\"><i class=\"fa-solid fa-user\"></i>Conditions d'utilisation</a></li>
</ul>
";
}
// line 75
echo "
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "main/menuClient.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<div id=\"sidebar\">
{% block sidebar %}
<div class=\"offcanvas offcanvas-start suha-offcanvas-wrap\" tabindex=\"-1\" id=\"suhaOffcanvas\" aria-labelledby=\"suhaOffcanvasLabel\">
<!-- Close button-->
<button class=\"btn-close btn-close-white\" type=\"button\" data-bs-dismiss=\"offcanvas\" aria-label=\"Close\"></button>
<!-- Offcanvas body-->
<div class=\"offcanvas-body\">
<!-- Sidenav Profile-->
<div class=\"sidenav-profile\">
<!--<div class=\"user-profile\"><img src=\"img/bg-img/9.jpg\" alt=\"\"></div>-->
<div class=\"user-profile\">
<a href=\"{{ path('app_boutique_client_profil', {id: app.user.id} ) }}\">
<img src=\"img/icon.jpg\" alt=\"\">
</a>
</div>
{% if app.user and app.user.compte == 'vendeur' %}
<div class=\"user-info\">
<h5 class=\"user-name mb-1 text-white\">{{ app.user.nomBoutique }}</h5>
<!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
</div>
{% elseif app.user and app.user.compte == 'client' %}
<div class=\"user-info\">
<h5 class=\"user-name mb-1 text-white\">{{ app.user.getToutleNom }}</h5>
<!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
</div>
{% else %}
<div class=\"user-info\">
<h5 class=\"user-name mb-1 text-white\">Aid Market</h5>
<!-- <p class=\"available-balance text-white\">Available points <span class=\"counter\">499</span></p>-->
</div>
{% endif %}
</div>
<!-- Sidenav Nav-->
{% if app.user %}
<ul class=\"sidenav-nav ps-0\">
<li><a href=\"{{ path('app_boutique_client_profil', {id: app.user.id} ) }}\"><i class=\"fa-solid fa-user\"></i>Mon Profil</a></li>
<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>
<li><a href=\"#\"><i class=\"fa-solid fa-file-code\"></i>Mes commandes</a></li>
<li><a href=\"#\"><i class=\"fa-solid fa-sliders\"></i>Paramètres</a></li>
<li><a href=\"#\"><i class=\"fa-solid fa-user\"></i>Conditions d'utilisation</a></li>
<li><a href=\"{{path('app_logout')}}\"><i class=\"fa-solid fa-user\"></i>Se deconnecter</a></li>
</ul>
{% else %}
<ul class=\"sidenav-nav ps-0\">
<li><a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#myModaler\">
<i class=\"fa-solid fa-user\"></i>Mon Profil</a></li>
<li><a href=\"{{path('app_login')}}\"><i class=\"fa-solid fa-user-secret\"></i>Se connecter</a></li>
<li><a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#myModal\" ><i class=\"fa-solid fa-user-circle\"></i>s'inscrire</a></li>
<li><a href=\"#\"><i class=\"fa-solid fa-user\"></i>Conditions d'utilisation</a></li>
</ul>
{% endif %}
</div>
</div>
{% endblock %}
</div>
<!-- The Modal -->
<div class=\"modal\" id=\"myModaler\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<!-- Modal Header -->
<div class=\"modal-header\">
<h4 class=\"modal-title\">Le type de compte à créer</h4>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\"></button>
</div>
<!-- Modal body -->
<div class=\"modal-body\">
<a href=\"{{ path('app_particulier') }}\" class=\"btn btn-primary\"> Compte particulier</a>
<a href=\"{{ path('app_auth') }}\" class=\"btn btn-primary\"> Compte Etablissement</a>
</div>
<!-- Modal footer -->
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-danger\" data-bs-dismiss=\"modal\">Close</button>
</div>
</div>
</div>
</div>", "main/menuClient.html.twig", "/htdocs/aidemarket.foresteholding.com/templates/main/menuClient.html.twig");
}
}