<?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;
/* menu.html.twig */
class __TwigTemplate_c7be0701835219fe936bd6890da7affbf24859fd918605351e16db6b9cfa4c79 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "menu.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "menu.html.twig"));
// line 1
echo "<!-- Top Bar Start -->
<div class=\"topbar\">
<!-- LOGO -->
<div class=\"topbar-left\" id=\"headerMenuTopLeftLogo\">
<div class=\"text-center\">
<!-- Image Logo here -->
<a href=\"";
// line 7
((twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 7, $this->source); })()), "getAssociationUserIsBrowsing", [], "any", false, false, false, 7)) ? (print (twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("companyAssociationList", ["urlName" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 7, $this->source); })()), "getAssociationUserIsBrowsing", [], "any", false, false, false, 7), "urlName", [], "any", false, false, false, 7)]), "html", null, true))) : (print ("/")));
echo "\" class=\"logo\">
";
// line 8
if (twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 8, $this->source); })()), "getAssociationUserIsBrowsing", [], "any", false, false, false, 8)) {
// line 9
echo " <div style=\"width: 60%; margin: auto;position:relative;\">
<img src=\"/assets/admin/images/newLogoDark.png\" height=\"42\" class=\"resp\">
</div>
";
} else {
// line 13
echo " ";
// line 14
echo " <div style=\"width: 60%; margin: auto;\" class=\"logoDarkSite\">
<img src=\"/assets/admin/images/newLogoDark.png\" class=\"resp\">
</div>
";
}
// line 18
echo " </a>
";
// line 19
if (twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 19, $this->source); })()), "getAssociationUserIsBrowsing", [], "any", false, false, false, 19)) {
// line 20
echo " <span style=\"color: white;font-weight: bold;\" class=\"GroupeLogoPosition\"><a style=\"color: white!important;\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("companyAssociationList", ["urlName" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 20, $this->source); })()), "getAssociationUserIsBrowsing", [], "any", false, false, false, 20), "urlName", [], "any", false, false, false, 20)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 20, $this->source); })()), "getAssociationUserIsBrowsing", [], "any", false, false, false, 20), "name", [], "any", false, false, false, 20), "html", null, true);
echo "</a><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("removeAssociationFromBrowsing");
echo "\"><sup style=\"color: red;font-size: +5;\"> X</sup></span></a>
";
}
// line 22
echo " </div>
</div>
<!-- Button mobile view to collapse sidebar menu -->
<nav class=\"navbar-custom\">
<ul class=\"list-inline float-right mb-0\" style=\"margin-right: 10px;\">
";
// line 29
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.', 29, $this->source); })()), "user", [], "any", false, false, false, 29)) {
// line 30
echo " <li class=\"list-inline-item dropdown notification-list hide-mobile\" id=\"headerNotificationIcon\">
<a style=\"overflow: visible;\" class=\"nav-link dropdown-toggle arrow-none waves-light waves-effect\" data-toggle=\"dropdown\" href=\"#\" role=\"button\"
aria-haspopup=\"false\" aria-expanded=\"false\">
<i class=\"dripicons-bell noti-icon\"></i>
<span class=\"badge noti-icon-badge new-notification-count\" style=\"";
// line 34
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 34, $this->source); })()), "getNewNotifications", [], "any", false, false, false, 34)) == 0)) {
echo "display:none;";
}
echo "\">";
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 34, $this->source); })()), "getNewNotifications", [], "any", false, false, false, 34)), "html", null, true);
echo "</span>
</a>
<div class=\"dropdown-menu dropdown-menu-right dropdown-arrow dropdown-lg\" aria-labelledby=\"Preview\">
<!-- item-->
<div class=\"dropdown-item noti-title\">
<h5><span class=\"badge badge-danger float-right new-notification-count\">";
// line 39
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 39, $this->source); })()), "getNewNotifications", [], "any", false, false, false, 39)), "html", null, true);
echo "</span>";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("headerNotification", [], "messages");
echo "</h5>
</div>
<div class=\"notification-listing\">
";
// line 43
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 43, $this->source); })()), "user", [], "any", false, false, false, 43), "notifications", [], "any", false, false, false, 43));
foreach ($context['_seq'] as $context["_key"] => $context["notif"]) {
// line 44
echo " <a href=\"#\" class=\"dropdown-item notify-item view-notification ";
if ((twig_get_attribute($this->env, $this->source, $context["notif"], "viewed", [], "any", false, false, false, 44) == false)) {
echo "new-notification-item";
}
echo "\" data-notifid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["notif"], "id", [], "any", false, false, false, 44), "html", null, true);
echo "\">
<div class=\"notify-icon ";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["notif"], "iconColor", [], "any", false, false, false, 45), "html", null, true);
echo "\"><i class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["notif"], "icon", [], "any", false, false, false, 45), "html", null, true);
echo "\"></i></div>
<p class=\"notify-details\">";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["notif"], "title", [], "any", false, false, false, 46), "html", null, true);
echo "<small class=\"text-muted\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["notif"], "dateSince", [], "any", false, false, false, 46), "html", null, true);
echo "</small></p>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['notif'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo " </div>
";
// line 59
echo "
</div>
</li>
";
}
// line 63
echo "
";
// line 72
echo "
";
// line 74
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.', 74, $this->source); })()), "user", [], "any", false, false, false, 74)) {
// line 75
echo " <li class=\"list-inline-item dropdown notification-list\" style=\"margin-right: 0px;\">
<a class=\"nav-link dropdown-toggle waves-effect waves-light nav-user allowClick\" data-toggle=\"dropdown\" href=\"#\" role=\"button\" aria-haspopup=\"false\" aria-expanded=\"false\">
<img src=\"";
// line 77
if (twig_test_empty(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.', 77, $this->source); })()), "user", [], "any", false, false, false, 77), "profileImage", [], "any", false, false, false, 77))) {
echo "/assets/shared/images/defaultAvatar.jpg";
} else {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("getImageAsThumb", ["id" => twig_get_attribute($this->env, $this->source, 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.', 77, $this->source); })()), "user", [], "any", false, false, false, 77), "profileImage", [], "any", false, false, false, 77), "id", [], "any", false, false, false, 77), "height" => "36", "width" => "36"]), "html", null, true);
}
echo "\" alt=\"user\" class=\"rounded-circle\"><h5 class=\"text-white m-l-5 m-t-10 hide-phone menu-profile-name\" style=\"display: inline;font-size: 13px; font-family: maturinFont;\">";
if (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.', 77, $this->source); })()), "user", [], "any", false, false, false, 77), "firstName", [], "any", false, false, false, 77)) {
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.', 77, $this->source); })()), "user", [], "any", false, false, false, 77), "firstName", [], "any", false, false, false, 77), "html", null, true);
} else {
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.', 77, $this->source); })()), "user", [], "any", false, false, false, 77), "displayName", [], "any", false, false, false, 77), "html", null, true);
}
echo "</h5>
</a>
<div class=\"dropdown-menu dropdown-menu-right profile-dropdown \" aria-labelledby=\"Preview\">
<!-- item-->
<div class=\"dropdown-item noti-title\">
<h5 class=\"\" style=\"height: auto!important;\"><small>";
// line 82
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("headerWelcome", [], "messages");
echo " ";
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.', 82, $this->source); })()), "user", [], "any", false, false, false, 82), "firstName", [], "any", false, false, false, 82), "html", null, true);
echo "!</small> </h5>
</div>
<a href=\"";
// line 85
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listOrders");
echo "\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-shopping-cart\"></i> <span>";
// line 86
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Mes commandes", [], "messages");
echo "</span>
</a>
<a href=\"";
// line 88
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("myProducts");
echo "\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md-store\"></i> <span>";
// line 89
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Mes produits", [], "messages");
echo "</span>
</a>
<!-- item-->
";
// line 94
if ((twig_get_attribute($this->env, $this->source, 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.', 94, $this->source); })()), "request", [], "any", false, false, false, 94), "attributes", [], "any", false, false, false, 94), "get", [0 => "_route"], "method", false, false, false, 94) == "dashboard")) {
// line 95
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userProfile");
echo "\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-account-circle\"></i> <span>Mon profil</span>
</a>
";
} else {
// line 99
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("userProfile");
echo "\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-account-circle\"></i> <span>Mon compte</span>
</a>
";
}
// line 103
echo "
";
// line 104
if (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.', 104, $this->source); })()), "user", [], "any", false, false, false, 104), "getMakeCompanyForAssociation", [], "any", false, false, false, 104)) {
// line 105
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("associationVariableList");
echo "\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-settings\"></i> <span>Association</span>
</a>
";
}
// line 109
echo " <!-- item-->
<a href=\"";
// line 110
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("adminMessageListing", ["folder" => "inbox"]);
echo "\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-email\"></i> <span>";
// line 111
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("headerMessage", [], "messages");
echo "</span>
</a>
<!-- item-->
<a href=\"";
// line 115
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("inviteAFriend");
echo "\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-face-unlock\"></i> <span>Inviter des amis</span>
</a>
";
// line 119
if ((twig_length_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.', 119, $this->source); })()), "user", [], "any", false, false, false, 119), "companies", [], "any", false, false, false, 119)) > 0)) {
// line 120
echo " <hr class=\"m-t-0 m-b-0\">
";
// line 122
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($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.', 122, $this->source); })()), "user", [], "any", false, false, false, 122), "companies", [], "any", false, false, false, 122), 0, 5));
foreach ($context['_seq'] as $context["_key"] => $context["company"]) {
// line 123
echo "
<a href=\"";
// line 124
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboardCompany", ["id" => twig_get_attribute($this->env, $this->source, $context["company"], "id", [], "any", false, false, false, 124)]), "html", null, true);
echo "\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-store\"></i> <span>
";
// line 126
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["company"], "name", [], "any", false, false, false, 126)) > 18)) {
// line 127
echo " ";
echo twig_escape_filter($this->env, twig_trim_filter(twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["company"], "name", [], "any", false, false, false, 127), 0, 15)), "html", null, true);
echo "...
";
} else {
// line 129
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["company"], "name", [], "any", false, false, false, 129), "html", null, true);
echo "
";
}
// line 131
echo " </span>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['company'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 134
echo " <hr class=\"m-t-0 m-b-0\">
";
}
// line 136
echo "
";
// line 137
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
// line 138
echo " <a href=\"/?_switch_user=_exit\" class=\"dropdown-item notify-item allowClick\">
<span>Redevenir moi-même</span>
</a>
";
}
// line 142
echo " <!-- item-->
<a href=\"/logout\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-settings-power\"></i> <span>";
// line 144
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("headerDisconnect", [], "messages");
echo "</span>
</a>
</div>
</li>
<li class=\"list-inline-item notification-list hide-mobile\">
<a class=\"nav-link waves-light waves-effect\" href=\"#\" id=\"help\" style=\"display:none;\">
<i class=\"dripicons-question noti-icon\"></i>
</a>
</li>
<li class=\"list-inline-item dropdown notification-list hide-mobile\" id=\"\">
<a style=\"overflow: visible;\" class=\"nav-link dropdown-toggle arrow-none waves-light waves-effect\" data-toggle=\"dropdown\" href=\"#\" role=\"button\"
aria-haspopup=\"false\" aria-expanded=\"false\">
<i class=\"fa fa-heart-o noti-icon favorite-icon\" style=\"top: 2px;font-size:23px;\"></i>
</a>
<div class=\"dropdown-menu dropdown-menu-right dropdown-arrow dropdown-lg favorites-dropdown\" aria-labelledby=\"Preview\">
<!-- item-->
<div class=\"dropdown-item noti-title\">
<h5><span class=\"badge badge-danger float-right new-favorite-count\">";
// line 162
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 162, $this->source); })()), "favorites", [], "any", false, false, false, 162)), "html", null, true);
echo "</span>Favoris</h5>
</div>
<div class=\"favorites-listing\">
";
// line 166
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_reverse_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 166, $this->source); })()), "favorites", [], "any", false, false, false, 166)));
foreach ($context['_seq'] as $context["_key"] => $context["fav"]) {
// line 167
echo " <div class=\"row\">
<div class=\"col-10 nopadding\">
<a href=\"";
// line 169
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("viewProduct", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 169), "id", [], "any", false, false, false, 169), "producerUrl" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 169), "company", [], "any", false, false, false, 169), "UrlName", [], "any", false, false, false, 169), "productName" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 169), "UrlName", [], "any", false, false, false, 169)]), "html", null, true);
echo "\" class=\"dropdown-item notify-item view-favorite\" data-product=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 169), "id", [], "any", false, false, false, 169), "html", null, true);
echo "\">
<div class=\"notify-icon\"><img class=\"\" src=\"";
// line 170
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("getImageAsCroppedThumb", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 170), "mainImage", [], "any", false, false, false, 170), "Id", [], "any", false, false, false, 170), "height" => "35", "width" => "35"]), "html", null, true);
echo "\"></div>
<p class=\"notify-details\">";
// line 171
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 171), "name", [], "any", false, false, false, 171), "html", null, true);
echo "<small class=\"text-muted\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 171), "company", [], "any", false, false, false, 171), "name", [], "any", false, false, false, 171), "html", null, true);
echo "</small></p>
</a>
</div>
<div class=\"col-2 nopadding\">
<a href=\"#\" class=\"add-to-cart\" data-id=\"";
// line 175
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 175), "id", [], "any", false, false, false, 175), "html", null, true);
echo "\">
<i class=\"md-shopping-cart\" style=\"font-size: large; color: darkgray; padding-top: 10px;padding-right: 5px;\"></i>
</a>
<a href=\"#\" class=\"remove-favorite\" data-id=\"";
// line 178
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 178), "id", [], "any", false, false, false, 178), "html", null, true);
echo "\">
<i class=\"ion-close\" style=\"font-size: large; color: darkgray; display: block; padding-left: 2px;\"></i>
</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['fav'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 184
echo " </div>
</div>
</li>
";
// line 211
echo " <li class=\"list-inline-item dropdown notification-list\" id=\"\">
<a class=\"nav-link arrow-none waves-light waves-effect\" style=\"overflow: visible;\" href=\"/panier\">
<i class=\"md-shopping-cart noti-icon\" style=\"font-size: 28px!important;";
// line 213
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 213, $this->source); })()), "cart", [], "any", false, false, false, 213), "products", [], "any", false, false, false, 213)) == 0)) {
echo "padding-top: 2px;";
} else {
echo "padding-top: 5px;";
}
echo "\"></i>
<span style=\"float: right;color: white;line-height: 1.4;padding-top: 0px;margin-left: 12px;font-family: 'MaturinFont';font-size: 13px;\">
Panier<br><span id=\"menu_subtotal_cart\" style=\"font-weight: bold;padding-top: 5;\">";
// line 215
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 215, $this->source); })()), "cart", [], "any", false, false, false, 215), "subTotalToPay", [0 => false, 1 => false], "method", false, false, false, 215), 2), "html", null, true);
echo "\$</span></span>
<span class=\"badge noti-icon-badge \" id=\"menu-cart-count\" style=\"top: 1px;width: fit-content;font-weight: bolder;";
// line 216
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 216, $this->source); })()), "cart", [], "any", false, false, false, 216), "products", [], "any", false, false, false, 216)) < 10)) {
echo "left: 17px;";
} else {
echo "left:15px;";
}
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 216, $this->source); })()), "cart", [], "any", false, false, false, 216), "products", [], "any", false, false, false, 216)) == 0)) {
echo "display:none;";
}
echo " \">";
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 216, $this->source); })()), "cart", [], "any", false, false, false, 216), "products", [], "any", false, false, false, 216)), "html", null, true);
echo "</span>
</a>
</li>
";
} else {
// line 221
echo " <li class=\"list-inline-item dropdown notification-list\" id=\"\">
<a style=\"overflow: visible;\" class=\"nav-link dropdown-toggle arrow-none waves-light waves-effect\" data-toggle=\"dropdown\" href=\"#\" role=\"button\"
aria-haspopup=\"false\" aria-expanded=\"false\">
<i class=\"fa fa-heart-o noti-icon favorite-icon\" style=\"top: 2px;font-size:23px;\"></i>
</a>
<div class=\"dropdown-menu dropdown-menu-right dropdown-arrow dropdown-lg favorites-dropdown\" aria-labelledby=\"Preview\">
<!-- item-->
<div class=\"dropdown-item noti-title\">
<h5><span class=\"badge badge-danger float-right new-favorite-count\">";
// line 229
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 229, $this->source); })()), "favorites", [], "any", false, false, false, 229)), "html", null, true);
echo "</span>Favoris</h5>
</div>
<div class=\"favorites-listing\">
";
// line 233
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_reverse_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 233, $this->source); })()), "favorites", [], "any", false, false, false, 233)));
foreach ($context['_seq'] as $context["_key"] => $context["fav"]) {
// line 234
echo " <div class=\"row\">
<div class=\"col-10 nopadding\">
<a href=\"";
// line 236
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("viewProduct", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 236), "id", [], "any", false, false, false, 236), "producerUrl" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 236), "company", [], "any", false, false, false, 236), "UrlName", [], "any", false, false, false, 236), "productName" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 236), "UrlName", [], "any", false, false, false, 236)]), "html", null, true);
echo "\" class=\"dropdown-item notify-item view-favorite\" data-product=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 236), "id", [], "any", false, false, false, 236), "html", null, true);
echo "\">
<div class=\"notify-icon\"><img class=\"\" src=\"";
// line 237
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("getImageAsCroppedThumb", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 237), "mainImage", [], "any", false, false, false, 237), "Id", [], "any", false, false, false, 237), "height" => "35", "width" => "35"]), "html", null, true);
echo "\"></div>
<p class=\"notify-details\">";
// line 238
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 238), "name", [], "any", false, false, false, 238), "html", null, true);
echo "<small class=\"text-muted\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 238), "company", [], "any", false, false, false, 238), "name", [], "any", false, false, false, 238), "html", null, true);
echo "</small></p>
</a>
</div>
<div class=\"col-2 nopadding\">
<a href=\"#\" class=\"remove-favorite\" data-id=\"";
// line 242
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["fav"], "product", [], "any", false, false, false, 242), "id", [], "any", false, false, false, 242), "html", null, true);
echo "\">
<i class=\"ion-close\" style=\"font-size: large; color: darkgray; padding-top: 10px;\"></i>
</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['fav'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 248
echo " </div>
</div>
</li>
<li class=\"list-inline-item dropdown notification-list\" id=\"\">
<a class=\"nav-link arrow-none waves-light waves-effect\" style=\"overflow: visible;\" href=\"/panier\">
<i class=\"md-shopping-cart noti-icon\" style=\"font-size: 28px!important;";
// line 253
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 253, $this->source); })()), "cart", [], "any", false, false, false, 253), "products", [], "any", false, false, false, 253)) == 0)) {
echo "padding-top: 2px;";
} else {
echo "padding-top: 5px;";
}
echo "\"></i>
<span style=\"float: right;color: white;line-height: 1.4;padding-top: 0px;margin-left: 12px;font-family: 'MaturinFont';font-size: 13px;\">
Panier<br><span id=\"mobile_menu_subtotal_cart\" style=\"font-weight: bold;padding-top: 5;\">";
// line 255
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 255, $this->source); })()), "cart", [], "any", false, false, false, 255), "subTotalToPay", [0 => false, 1 => false], "method", false, false, false, 255), 2), "html", null, true);
echo "\$</span></span>
<span class=\"badge noti-icon-badge \" id=\"menu-cart-count\" style=\"top: 1px;width: fit-content;font-weight: bolder;left: 17px;";
// line 256
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 256, $this->source); })()), "cart", [], "any", false, false, false, 256), "products", [], "any", false, false, false, 256)) == 0)) {
echo "display:none;";
}
echo " \">";
echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["global"]) || array_key_exists("global", $context) ? $context["global"] : (function () { throw new RuntimeError('Variable "global" does not exist.', 256, $this->source); })()), "cart", [], "any", false, false, false, 256), "products", [], "any", false, false, false, 256)), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 260
echo "
";
// line 268
echo " ";
// line 288
echo " </ul>
<ul class=\"list-inline-float-right mb-0 pull-right mr-3 \">
";
// line 290
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.', 290, $this->source); })()), "user", [], "any", false, false, false, 290)) {
// line 291
echo " ";
if ((twig_length_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.', 291, $this->source); })()), "user", [], "any", false, false, false, 291), "companies", [], "any", false, false, false, 291)) > 0)) {
// line 292
echo " <li class=\"nav-item top-menu-link list-inline-item underline-effect-wrapper hide-mobile\">
<a class=\"text-white allowClick underline-effect underline-effect-white underline-effect-h2\" href=\"/info/conseils\">Conseils de vente</a>
</li>
";
} else {
// line 296
echo " <li class=\"nav-item top-menu-link list-inline-item underline-effect-wrapper text-white hide-mobile\">
<a class=\"text-white allowClick underline-effect underline-effect-white underline-effect-h2\" href=\"";
// line 297
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fastCompanyInscription");
echo "\">Vendre sur Maturin</a>
</li>
";
}
// line 300
echo "
";
} else {
// line 302
echo " <li class=\"nav-item top-menu-link list-inline-item underline-effect-wrapper hide-mobile\">
<a class=\"text-white allowClick underline-effect underline-effect-white underline-effect-h2\" href=\"/info/vendre\">Vendre sur Maturin</a>
</li>
<li class=\"nav-item top-menu-link list-inline-item underline-effect-wrapper\">
<a class=\"text-white allowClick underline-effect underline-effect-white underline-effect-h2\" href=\"";
// line 306
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_login");
echo "\">";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Connexion", [], "messages");
echo "</a>
</li>
";
}
// line 309
echo " </ul>
<ul class=\"list-inline menu-left mb-0 app-search-ul\">
";
// line 312
if ( !(isset($context["hideSideMenu"]) || array_key_exists("hideSideMenu", $context))) {
// line 313
echo " <li class=\"float-left hide-desktop\">
<button class=\"button-menu-mobile open-left waves-light waves-effect\">
<a href=\"#menu\" class=\"allowClick text-white\"><i class=\"dripicons-menu\"></i></a>
</button>
</li>
";
}
// line 319
echo " <li class=\"app-search\">
<form role=\"search\" class=\"\">
<input type=\"text\" id=\"mainSearch\" placeholder=\"";
// line 321
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("headerSearchPlaceHolder", [], "messages");
echo "\" class=\"form-control\">
<a href=\"#\" id=\"btn-main-search\"><i class=\"fa fa-search\"></i></a>
</form>
</li>
</ul>
</nav>
</div>
<!-- Top Bar End -->
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "menu.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 602 => 321, 598 => 319, 590 => 313, 588 => 312, 583 => 309, 575 => 306, 569 => 302, 565 => 300, 559 => 297, 556 => 296, 550 => 292, 547 => 291, 545 => 290, 541 => 288, 539 => 268, 536 => 260, 525 => 256, 521 => 255, 512 => 253, 505 => 248, 493 => 242, 484 => 238, 480 => 237, 474 => 236, 470 => 234, 466 => 233, 459 => 229, 449 => 221, 432 => 216, 428 => 215, 419 => 213, 415 => 211, 409 => 184, 397 => 178, 391 => 175, 382 => 171, 378 => 170, 372 => 169, 368 => 167, 364 => 166, 357 => 162, 336 => 144, 332 => 142, 326 => 138, 324 => 137, 321 => 136, 317 => 134, 309 => 131, 303 => 129, 297 => 127, 295 => 126, 290 => 124, 287 => 123, 283 => 122, 279 => 120, 277 => 119, 270 => 115, 263 => 111, 259 => 110, 256 => 109, 248 => 105, 246 => 104, 243 => 103, 235 => 99, 227 => 95, 225 => 94, 217 => 89, 213 => 88, 208 => 86, 204 => 85, 196 => 82, 178 => 77, 174 => 75, 172 => 74, 168 => 72, 164 => 63, 158 => 59, 154 => 49, 143 => 46, 137 => 45, 128 => 44, 124 => 43, 115 => 39, 103 => 34, 97 => 30, 95 => 29, 86 => 22, 76 => 20, 74 => 19, 71 => 18, 65 => 14, 63 => 13, 57 => 9, 55 => 8, 51 => 7, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<!-- Top Bar Start -->
<div class=\"topbar\">
<!-- LOGO -->
<div class=\"topbar-left\" id=\"headerMenuTopLeftLogo\">
<div class=\"text-center\">
<!-- Image Logo here -->
<a href=\"{{ global.getAssociationUserIsBrowsing ? path('companyAssociationList', {'urlName': global.getAssociationUserIsBrowsing.urlName}) : '/' }}\" class=\"logo\">
{% if global.getAssociationUserIsBrowsing %}
<div style=\"width: 60%; margin: auto;position:relative;\">
<img src=\"/assets/admin/images/newLogoDark.png\" height=\"42\" class=\"resp\">
</div>
{% else %}
{# <i class=\"icon-c-logo\"> <img src=\"/assets/admin/images/newLogoDark.png\" height=\"42\" class=\"resp\"/> </i> #}
<div style=\"width: 60%; margin: auto;\" class=\"logoDarkSite\">
<img src=\"/assets/admin/images/newLogoDark.png\" class=\"resp\">
</div>
{% endif %}
</a>
{% if global.getAssociationUserIsBrowsing %}
<span style=\"color: white;font-weight: bold;\" class=\"GroupeLogoPosition\"><a style=\"color: white!important;\" href=\"{{path('companyAssociationList', {'urlName': global.getAssociationUserIsBrowsing.urlName})}}\">{{global.getAssociationUserIsBrowsing.name}}</a><a href=\"{{path('removeAssociationFromBrowsing')}}\"><sup style=\"color: red;font-size: +5;\"> X</sup></span></a>
{% endif %}
</div>
</div>
<!-- Button mobile view to collapse sidebar menu -->
<nav class=\"navbar-custom\">
<ul class=\"list-inline float-right mb-0\" style=\"margin-right: 10px;\">
{%if app.user %}
<li class=\"list-inline-item dropdown notification-list hide-mobile\" id=\"headerNotificationIcon\">
<a style=\"overflow: visible;\" class=\"nav-link dropdown-toggle arrow-none waves-light waves-effect\" data-toggle=\"dropdown\" href=\"#\" role=\"button\"
aria-haspopup=\"false\" aria-expanded=\"false\">
<i class=\"dripicons-bell noti-icon\"></i>
<span class=\"badge noti-icon-badge new-notification-count\" style=\"{% if global.getNewNotifications | length == 0 %}display:none;{% endif %}\">{{global.getNewNotifications | length}}</span>
</a>
<div class=\"dropdown-menu dropdown-menu-right dropdown-arrow dropdown-lg\" aria-labelledby=\"Preview\">
<!-- item-->
<div class=\"dropdown-item noti-title\">
<h5><span class=\"badge badge-danger float-right new-notification-count\">{{global.getNewNotifications |length}}</span>{%trans%}headerNotification{%endtrans%}</h5>
</div>
<div class=\"notification-listing\">
{% for notif in app.user.notifications %}
<a href=\"#\" class=\"dropdown-item notify-item view-notification {%if notif.viewed == false %}new-notification-item{% endif %}\" data-notifid=\"{{notif.id}}\">
<div class=\"notify-icon {{notif.iconColor}}\"><i class=\"{{notif.icon}}\"></i></div>
<p class=\"notify-details\">{{notif.title}}<small class=\"text-muted\">{{notif.dateSince}}</small></p>
</a>
{% endfor %}
</div>
{#
{% if app.user.notifications | length > 3 %}
<!-- All-->
<a href=\"javascript:void(0);\" class=\"dropdown-item notify-item notify-all\">
{%trans%}headerNotificationViewAll{%endtrans%}
</a>
{% endif %}
#}
</div>
</li>
{% endif %}
{#
<li class=\"list-inline-item notification-list\">
<a class=\"nav-link waves-light waves-effect\" href=\"#\" id=\"btn-fullscreen\">
<i class=\"dripicons-expand noti-icon\"></i>
</a>
</li>
#}
{% if app.user %}
<li class=\"list-inline-item dropdown notification-list\" style=\"margin-right: 0px;\">
<a class=\"nav-link dropdown-toggle waves-effect waves-light nav-user allowClick\" data-toggle=\"dropdown\" href=\"#\" role=\"button\" aria-haspopup=\"false\" aria-expanded=\"false\">
<img src=\"{% if app.user.profileImage is empty %}/assets/shared/images/defaultAvatar.jpg{%else%}{{ path('getImageAsThumb', {'id': app.user.profileImage.id, 'height': '36', 'width' : '36'})}}{%endif%}\" alt=\"user\" class=\"rounded-circle\"><h5 class=\"text-white m-l-5 m-t-10 hide-phone menu-profile-name\" style=\"display: inline;font-size: 13px; font-family: maturinFont;\">{% if app.user.firstName%}{{app.user.firstName}}{% else %}{{app.user.displayName}}{% endif %}</h5>
</a>
<div class=\"dropdown-menu dropdown-menu-right profile-dropdown \" aria-labelledby=\"Preview\">
<!-- item-->
<div class=\"dropdown-item noti-title\">
<h5 class=\"\" style=\"height: auto!important;\"><small>{%trans %}headerWelcome{%endtrans%} {{app.user.firstName}}!</small> </h5>
</div>
<a href=\"{{path('listOrders')}}\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-shopping-cart\"></i> <span>{%trans%}Mes commandes{%endtrans%}</span>
</a>
<a href=\"{{path('myProducts')}}\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md-store\"></i> <span>{%trans%}Mes produits{%endtrans%}</span>
</a>
<!-- item-->
{% if app.request.attributes.get('_route') == 'dashboard' %}
<a href=\"{{path('userProfile')}}\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-account-circle\"></i> <span>Mon profil</span>
</a>
{% else %}
<a href=\"{{path('userProfile')}}\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-account-circle\"></i> <span>Mon compte</span>
</a>
{% endif %}
{% if app.user.getMakeCompanyForAssociation %}
<a href=\"{{path('associationVariableList')}}\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-settings\"></i> <span>Association</span>
</a>
{% endif %}
<!-- item-->
<a href=\"{{path('adminMessageListing', {'folder': 'inbox'})}}\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-email\"></i> <span>{%trans%}headerMessage{%endtrans%}</span>
</a>
<!-- item-->
<a href=\"{{path('inviteAFriend')}}\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-face-unlock\"></i> <span>Inviter des amis</span>
</a>
{% if app.user.companies | length > 0 %}
<hr class=\"m-t-0 m-b-0\">
{% for company in app.user.companies|slice(0,5) %}
<a href=\"{{path('dashboardCompany', {'id' : company.id})}}\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-store\"></i> <span>
{% if company.name | length > 18 %}
{{company.name | slice(0, 15) | trim}}...
{% else %}
{{company.name}}
{% endif %}
</span>
</a>
{% endfor %}
<hr class=\"m-t-0 m-b-0\">
{% endif %}
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
<a href=\"/?_switch_user=_exit\" class=\"dropdown-item notify-item allowClick\">
<span>Redevenir moi-même</span>
</a>
{% endif %}
<!-- item-->
<a href=\"/logout\" class=\"dropdown-item notify-item allowClick\">
<i class=\"md md-settings-power\"></i> <span>{%trans%}headerDisconnect{%endtrans%}</span>
</a>
</div>
</li>
<li class=\"list-inline-item notification-list hide-mobile\">
<a class=\"nav-link waves-light waves-effect\" href=\"#\" id=\"help\" style=\"display:none;\">
<i class=\"dripicons-question noti-icon\"></i>
</a>
</li>
<li class=\"list-inline-item dropdown notification-list hide-mobile\" id=\"\">
<a style=\"overflow: visible;\" class=\"nav-link dropdown-toggle arrow-none waves-light waves-effect\" data-toggle=\"dropdown\" href=\"#\" role=\"button\"
aria-haspopup=\"false\" aria-expanded=\"false\">
<i class=\"fa fa-heart-o noti-icon favorite-icon\" style=\"top: 2px;font-size:23px;\"></i>
</a>
<div class=\"dropdown-menu dropdown-menu-right dropdown-arrow dropdown-lg favorites-dropdown\" aria-labelledby=\"Preview\">
<!-- item-->
<div class=\"dropdown-item noti-title\">
<h5><span class=\"badge badge-danger float-right new-favorite-count\">{{global.favorites |length}}</span>Favoris</h5>
</div>
<div class=\"favorites-listing\">
{% for fav in global.favorites | reverse %}
<div class=\"row\">
<div class=\"col-10 nopadding\">
<a href=\"{{path('viewProduct', {'id': fav.product.id, 'producerUrl': fav.product.company.UrlName, 'productName': fav.product.UrlName})}}\" class=\"dropdown-item notify-item view-favorite\" data-product=\"{{fav.product.id}}\">
<div class=\"notify-icon\"><img class=\"\" src=\"{{path('getImageAsCroppedThumb', {'id': fav.product.mainImage.Id, 'height': '35', 'width': '35'})}}\"></div>
<p class=\"notify-details\">{{fav.product.name}}<small class=\"text-muted\">{{fav.product.company.name}}</small></p>
</a>
</div>
<div class=\"col-2 nopadding\">
<a href=\"#\" class=\"add-to-cart\" data-id=\"{{fav.product.id}}\">
<i class=\"md-shopping-cart\" style=\"font-size: large; color: darkgray; padding-top: 10px;padding-right: 5px;\"></i>
</a>
<a href=\"#\" class=\"remove-favorite\" data-id=\"{{fav.product.id}}\">
<i class=\"ion-close\" style=\"font-size: large; color: darkgray; display: block; padding-left: 2px;\"></i>
</a>
</div>
</div>
{% endfor %}
</div>
</div>
</li>
{#
<li class=\"list-inline-item dropdown notification-list\" id=\"\" style=\"{% if app.user.favorites | length < 1 %}display:none;{% endif %}\">
<a style=\"overflow: visible;\" class=\"nav-link dropdown-toggle arrow-none waves-light waves-effect\" data-toggle=\"dropdown\" href=\"#\" role=\"button\"
aria-haspopup=\"false\" aria-expanded=\"false\">
<i class=\"fa fa-heart-o noti-icon favorite-icon\" style=\"top: 0px;\"></i>
</a>
<div class=\"dropdown-menu dropdown-menu-right dropdown-arrow dropdown-lg\" aria-labelledby=\"Preview\">
<!-- item-->
<div class=\"dropdown-item noti-title\">
<h5><span class=\"badge badge-danger float-right new-favorite-count\">{{app.user.favorites |length}}</span>Favori</h5>
</div>
<div class=\"favorites-listing\">
{% for fav in app.user.favorites%}
<a href=\"{{path('viewProduct', {'id': fav.product.id, 'producerUrl': fav.product.company.UrlName, 'productName': fav.product.UrlName})}}\" class=\"dropdown-item notify-item view-favorite\" data-product=\"{{fav.product.id}}\">
<div class=\"notify-icon\"><img class=\"\" src=\"{{path('getImageAsCroppedThumb', {'id': fav.product.mainImage.Id, 'height': '35', 'width': '35'})}}\"></div>
<p class=\"notify-details\">{{fav.product.name}}<small class=\"text-muted\">{{fav.product.company.name}}</small></p>
</a>
{% endfor %}
</div>
</div>
</li>
#}
<li class=\"list-inline-item dropdown notification-list\" id=\"\">
<a class=\"nav-link arrow-none waves-light waves-effect\" style=\"overflow: visible;\" href=\"/panier\">
<i class=\"md-shopping-cart noti-icon\" style=\"font-size: 28px!important;{% if global.cart.products | length == 0 %}padding-top: 2px;{% else %}padding-top: 5px;{% endif %}\"></i>
<span style=\"float: right;color: white;line-height: 1.4;padding-top: 0px;margin-left: 12px;font-family: 'MaturinFont';font-size: 13px;\">
Panier<br><span id=\"menu_subtotal_cart\" style=\"font-weight: bold;padding-top: 5;\">{{global.cart.subTotalToPay(false, false) | number_format(2)}}\$</span></span>
<span class=\"badge noti-icon-badge \" id=\"menu-cart-count\" style=\"top: 1px;width: fit-content;font-weight: bolder;{% if global.cart.products | length < 10%}left: 17px;{% else %}left:15px;{% endif %}{% if global.cart.products | length == 0 %}display:none;{% endif %} \">{{global.cart.products | length}}</span>
</a>
</li>
{% else %}
<li class=\"list-inline-item dropdown notification-list\" id=\"\">
<a style=\"overflow: visible;\" class=\"nav-link dropdown-toggle arrow-none waves-light waves-effect\" data-toggle=\"dropdown\" href=\"#\" role=\"button\"
aria-haspopup=\"false\" aria-expanded=\"false\">
<i class=\"fa fa-heart-o noti-icon favorite-icon\" style=\"top: 2px;font-size:23px;\"></i>
</a>
<div class=\"dropdown-menu dropdown-menu-right dropdown-arrow dropdown-lg favorites-dropdown\" aria-labelledby=\"Preview\">
<!-- item-->
<div class=\"dropdown-item noti-title\">
<h5><span class=\"badge badge-danger float-right new-favorite-count\">{{global.favorites |length}}</span>Favoris</h5>
</div>
<div class=\"favorites-listing\">
{% for fav in global.favorites | reverse %}
<div class=\"row\">
<div class=\"col-10 nopadding\">
<a href=\"{{path('viewProduct', {'id': fav.product.id, 'producerUrl': fav.product.company.UrlName, 'productName': fav.product.UrlName})}}\" class=\"dropdown-item notify-item view-favorite\" data-product=\"{{fav.product.id}}\">
<div class=\"notify-icon\"><img class=\"\" src=\"{{path('getImageAsCroppedThumb', {'id': fav.product.mainImage.Id, 'height': '35', 'width': '35'})}}\"></div>
<p class=\"notify-details\">{{fav.product.name}}<small class=\"text-muted\">{{fav.product.company.name}}</small></p>
</a>
</div>
<div class=\"col-2 nopadding\">
<a href=\"#\" class=\"remove-favorite\" data-id=\"{{fav.product.id}}\">
<i class=\"ion-close\" style=\"font-size: large; color: darkgray; padding-top: 10px;\"></i>
</a>
</div>
</div>
{% endfor %}
</div>
</div>
</li>
<li class=\"list-inline-item dropdown notification-list\" id=\"\">
<a class=\"nav-link arrow-none waves-light waves-effect\" style=\"overflow: visible;\" href=\"/panier\">
<i class=\"md-shopping-cart noti-icon\" style=\"font-size: 28px!important;{% if global.cart.products | length == 0 %}padding-top: 2px;{% else %}padding-top: 5px;{% endif %}\"></i>
<span style=\"float: right;color: white;line-height: 1.4;padding-top: 0px;margin-left: 12px;font-family: 'MaturinFont';font-size: 13px;\">
Panier<br><span id=\"mobile_menu_subtotal_cart\" style=\"font-weight: bold;padding-top: 5;\">{{global.cart.subTotalToPay(false, false)| number_format(2)}}\$</span></span>
<span class=\"badge noti-icon-badge \" id=\"menu-cart-count\" style=\"top: 1px;width: fit-content;font-weight: bolder;left: 17px;{% if global.cart.products | length == 0 %}display:none;{% endif %} \">{{global.cart.products | length}}</span>
</a>
</li>
{% endif %}
{#
<li class=\"list-inline-item notification-list\">
<a class=\"nav-link waves-light waves-effect\" href=\"#\" >
<div class=\"header-icon-list\"></div>
</a>
</li>
#}
{#
<li class=\"nav-item list-inline-item notification-list\">
<a class=\"nav-link modify-parameter-region\" data-toggle=\"modal\"
data-target=\"#modifiezVosParamètres\">QC</a>
</li>
<div class=\"nav-divider-wrappper\">
<div class=\"nav-divider\"></div>
</div>
<li class=\"nav-item nav-modify-parameter\">
<a class=\"nav-link modify-parameter-currency\" data-toggle=\"modal\"
data-target=\"#modifiezVosParamètres\">\$(CAD)</a>
</li>
<div class=\"nav-divider-wrappper\">
<div class=\"nav-divider\"></div>
</div>
<li class=\"nav-item nav-modify-parameter\">
<a class=\"nav-link modify-parameter-lang\" data-toggle=\"modal\"
data-target=\"#modifiezVosParamètres\">Français </a>
</li>
#}
</ul>
<ul class=\"list-inline-float-right mb-0 pull-right mr-3 \">
{% if app.user %}
{% if app.user.companies | length > 0 %}
<li class=\"nav-item top-menu-link list-inline-item underline-effect-wrapper hide-mobile\">
<a class=\"text-white allowClick underline-effect underline-effect-white underline-effect-h2\" href=\"/info/conseils\">Conseils de vente</a>
</li>
{% else %}
<li class=\"nav-item top-menu-link list-inline-item underline-effect-wrapper text-white hide-mobile\">
<a class=\"text-white allowClick underline-effect underline-effect-white underline-effect-h2\" href=\"{{path('fastCompanyInscription')}}\">Vendre sur Maturin</a>
</li>
{% endif %}
{% else %}
<li class=\"nav-item top-menu-link list-inline-item underline-effect-wrapper hide-mobile\">
<a class=\"text-white allowClick underline-effect underline-effect-white underline-effect-h2\" href=\"/info/vendre\">Vendre sur Maturin</a>
</li>
<li class=\"nav-item top-menu-link list-inline-item underline-effect-wrapper\">
<a class=\"text-white allowClick underline-effect underline-effect-white underline-effect-h2\" href=\"{{path('fos_user_security_login')}}\">{% trans %} Connexion{% endtrans %}</a>
</li>
{% endif %}
</ul>
<ul class=\"list-inline menu-left mb-0 app-search-ul\">
{% if hideSideMenu is not defined %}
<li class=\"float-left hide-desktop\">
<button class=\"button-menu-mobile open-left waves-light waves-effect\">
<a href=\"#menu\" class=\"allowClick text-white\"><i class=\"dripicons-menu\"></i></a>
</button>
</li>
{% endif %}
<li class=\"app-search\">
<form role=\"search\" class=\"\">
<input type=\"text\" id=\"mainSearch\" placeholder=\"{%trans%}headerSearchPlaceHolder{%endtrans%}\" class=\"form-control\">
<a href=\"#\" id=\"btn-main-search\"><i class=\"fa fa-search\"></i></a>
</form>
</li>
</ul>
</nav>
</div>
<!-- Top Bar End -->
", "menu.html.twig", "/var/www/html/Markego/templates/menu.html.twig");
}
}