<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/inc/header.html.twig */
class __TwigTemplate_dfa3cbab7f09f53b1c4eb23c1e650049c040398ddd715c389a91cefe471b619d extends 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", "front/inc/header.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/inc/header.html.twig"));
// line 1
yield "<div class=\"header\" style=\"position: fixed;width:100%;top:0;z-index:89\">
\t<div class=\"col-lg-12 col-md-12\">
\t\t<div class=\"classHeader row\">
\t\t\t<div
\t\t\t\tclass=\"row col-lg-8\">
\t\t\t\t<!-- navigations -->
\t\t\t\t<div class=\"header-logo\">
\t\t\t\t\t<a href=\"";
// line 8
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
yield "\"><img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/logo noir.png"), "html", null, true);
yield "\" alt=\"Logo Providders\" style=\"width:140px;margin-top:-13px;margin-bottom:-10px\"></a>
\t\t\t\t</div>
\t\t\t\t<div id=\"navigation\" class=\"\" style=\"display: flex ; flex-direction: column\">
\t\t\t\t\t<ul class=\"align-items-center ml-4\">
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"";
// line 13
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
yield "\" title=\"Accueil Providders\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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); })()), "request", [], "any", false, false, false, 13), "attributes", [], "any", false, false, false, 13), "get", ["_route"], "method", false, false, false, 13) == "front_home")) {
yield " style=\"color:#EB5B20\" ";
}
yield ">Accueil</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li id=\"idPrestataires\">
\t\t\t\t\t\t\t<a href=\"";
// line 16
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_company_list");
yield "\" title=\"Prestataires\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "attributes", [], "any", false, false, false, 16), "get", ["_route"], "method", false, false, false, 16) == "front_company_list")) {
yield " style=\"color:#EB5B20\" ";
}
yield ">Prestataires</a>
\t\t\t\t\t\t\t<div id=\"dropDownPrestataires\" class=\"dropDownMenu\">
\t\t\t\t\t\t\t\t<div class=\"container-dropDownMenu\">
\t\t\t\t\t\t\t\t\t";
// line 19
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["filter_service"]) || array_key_exists("filter_service", $context) ? $context["filter_service"] : (function () { throw new RuntimeError('Variable "filter_service" does not exist.', 19, $this->source); })()), "getCompany", [], "method", false, false, false, 19), 0, 5));
foreach ($context['_seq'] as $context["_key"] => $context["company"]) {
// line 20
yield "\t\t\t\t\t\t\t\t\t\t";
$context["proucts"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["filter_service"]) || array_key_exists("filter_service", $context) ? $context["filter_service"] : (function () { throw new RuntimeError('Variable "filter_service" does not exist.', 20, $this->source); })()), "getPhotounProductsCompany", [$context["company"]], "method", false, false, false, 20);
// line 21
yield "\t\t\t\t\t\t\t\t\t\t";
if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["proucts"]) || array_key_exists("proucts", $context) ? $context["proucts"] : (function () { throw new RuntimeError('Variable "proucts" does not exist.', 21, $this->source); })()))) {
// line 22
yield "\t\t\t\t\t\t\t\t\t\t\t";
$context["prods"] = (isset($context["proucts"]) || array_key_exists("proucts", $context) ? $context["proucts"] : (function () { throw new RuntimeError('Variable "proucts" does not exist.', 22, $this->source); })());
// line 23
yield "\t\t\t\t\t\t\t\t\t\t\t<div class=\"oneMenu\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 24
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["prods"]) || array_key_exists("prods", $context) ? $context["prods"] : (function () { throw new RuntimeError('Variable "prods" does not exist.', 24, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 25
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_company_single", ["companySlug" => CoreExtension::getAttribute($this->env, $this->source, $context["company"], "companySlug", [], "any", false, false, false, 25), "id" => CoreExtension::getAttribute($this->env, $this->source, $context["company"], "id", [], "any", false, false, false, 25)]), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 26
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "photos", [], "any", false, false, false, 26))) {
// line 27
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img class=\"imgMenu\" src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(Twig\Extension\CoreExtension::constant("App\\Services\\File::IMAGE_PRODUCT_DIR")) . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "photos", [], "any", false, false, false, 27), "first", [], "any", false, false, false, 27), "url", [], "any", false, false, false, 27)), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 27), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 29
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img class=\"imgMenu\" src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("upload/produits/defaultProduct2.jpg"), "html", null, true);
yield "\" alt=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 31
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "company", [], "any", false, false, false, 31), "companyName", [], "any", false, false, false, 31), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
yield "\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t";
}
// line 36
yield "\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['company'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 37
yield "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li id=\"idServices\">
\t\t\t\t\t\t\t<a href=\"";
// line 41
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_product_products");
yield "\" title=\"Services\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 41, $this->source); })()), "request", [], "any", false, false, false, 41), "attributes", [], "any", false, false, false, 41), "get", ["_route"], "method", false, false, false, 41) == "front_product_products")) {
yield " style=\"color:#EB5B20\" ";
}
yield ">Services</a>
\t\t\t\t\t\t\t<div id=\"dropDownServices\" class=\"dropDownMenu\">
\t\t\t\t\t\t\t\t<div class=\"container-dropDownMenu\">
\t\t\t\t\t\t\t\t\t";
// line 44
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["filter_service"]) || array_key_exists("filter_service", $context) ? $context["filter_service"] : (function () { throw new RuntimeError('Variable "filter_service" does not exist.', 44, $this->source); })()), "getSubcategories", [], "method", false, false, false, 44), 0, 5));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 45
yield "\t\t\t\t\t\t\t\t\t\t<div class=\"oneMenu\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 46
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_product_category_events", ["subCategorySlug" => CoreExtension::getAttribute($this->env, $this->source, $context["category"], "subCategorySlug", [], "any", false, false, false, 46)]), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t<img class=\"imgMenu\" src=\"";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((Twig\Extension\CoreExtension::constant("App\\Services\\File::IMAGE_CATEGORY_DIR") . CoreExtension::getAttribute($this->env, $this->source, $context["category"], "image", [], "any", false, false, false, 47))), "html", null, true);
yield "\" alt=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t<p>";
// line 48
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 48), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
yield "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"";
// line 56
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_article_list");
yield "\" title=\"Articles\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 56, $this->source); })()), "request", [], "any", false, false, false, 56), "attributes", [], "any", false, false, false, 56), "get", ["_route"], "method", false, false, false, 56) == "front_article_list")) {
yield " style=\"color:#EB5B20\" ";
}
yield ">Articles</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"";
// line 59
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_blog_list");
yield "\" title=\"blog\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 59, $this->source); })()), "request", [], "any", false, false, false, 59), "attributes", [], "any", false, false, false, 59), "get", ["_route"], "method", false, false, false, 59) == "front_blog_list")) {
yield " style=\"color:#EB5B20\" ";
}
yield ">Blog</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t";
// line 62
yield "\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"";
// line 63
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_contact");
yield "\" title=\"contact\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 63, $this->source); })()), "request", [], "any", false, false, false, 63), "attributes", [], "any", false, false, false, 63), "get", ["_route"], "method", false, false, false, 63) == "front_contact")) {
yield " style=\"color:#EB5B20\" ";
}
yield ">Contact</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"#\" title=\"search\" id=\"link_search\" style=\"color:black\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-search\"></i>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t</ul>
\t\t\t\t</div>
\t\t\t\t<!-- /.navigations #4CB8A3 #EB5B20 -->
\t\t\t</div>
\t\t\t<div
\t\t\t\tclass=\"col-lg-4 d-xl-block d-lg-block p-0\">
\t\t\t\t<!-- header-btn -->
\t\t\t\t<div class=\"header-btn\">
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t";
// line 79
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 79, $this->source); })()), "user", [], "any", false, false, false, 79) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN"))) {
// line 80
yield "\t\t\t\t\t\t\t<a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_dashboard");
yield "\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-user mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tAdministration</a>
\t\t\t\t\t\t";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 83
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 83, $this->source); })()), "user", [], "any", false, false, false, 83) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN_LIMITED"))) {
// line 84
yield "\t\t\t\t\t\t\t<a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_user_list");
yield "\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-user mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tAdministration</a>
\t\t\t\t\t\t";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 87
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 87, $this->source); })()), "user", [], "any", false, false, false, 87) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ENTERPRISE"))) {
// line 88
yield "\t\t\t\t\t\t\t<a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_company_space_dashboard");
yield "\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-user mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tCompte Prestataire</a>
\t\t\t\t\t\t";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 91
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 91, $this->source); })()), "user", [], "any", false, false, false, 91) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER"))) {
// line 92
yield "\t\t\t\t\t\t\t<a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_client_space_dashboard");
yield "\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-user mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\t";
// line 94
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($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); })()), "user", [], "any", false, false, false, 94), "firstName", [], "any", false, false, false, 94), "html", null, true);
yield "
\t\t\t\t\t\t\t\t";
// line 95
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 95, $this->source); })()), "user", [], "any", false, false, false, 95), "lastName", [], "any", false, false, false, 95), "html", null, true);
yield "</a>
\t\t\t\t\t\t";
} else {
// line 97
yield "\t\t\t\t\t\t\t<a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
yield "\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-user mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tAccès Client</a>
\t\t\t\t\t\t";
}
// line 101
yield "\t\t\t\t\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 101, $this->source); })()), "user", [], "any", false, false, false, 101)) {
// line 102
yield "\t\t\t\t\t\t\t<a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("deconnexion");
yield "\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-power-off mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tDéconnexion</a>
\t\t\t\t\t\t";
} else {
// line 106
yield "\t\t\t\t\t\t\t<a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login_enterprise");
yield "\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-briefcase mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tAccès prestataire</a>
\t\t\t\t\t\t";
}
// line 110
yield "\t\t\t\t\t\t<a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_my_basket");
yield "\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\" style=\"color:#4CB8A3 \">
\t\t\t\t\t\t\t<i class=\"fas fa-shopping-cart mr-1\" style=\"font-size:1.6em;color:#4CB8A3 ;padding-top:2px\"></i>
\t\t\t\t\t\t\t<span id=\"nb_basket\" style=\"font-size:1.6em;color:#252429\">";
// line 112
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 112, $this->source); })()), "session", [], "any", false, false, false, 112), "get", ["products"], "method", false, false, false, 112)) + Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 112, $this->source); })()), "session", [], "any", false, false, false, 112), "get", ["packs"], "method", false, false, false, 112))), "html", null, true);
yield "</span>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!-- /.header-btn -->
\t\t\t</div>
\t\t</div>
\t\t<form class=\"form-row pt-2\" method=\"post\" action=\"";
// line 119
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_product_search");
yield "\" id=\"form_header\" style=\"border-top:1px solid darkgrey\">
\t\t\t<div
\t\t\t\tclass=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\" id=\"div_search_type\">
\t\t\t\t<!-- select -->
\t\t\t\t<select class=\"wide form-control\" name=\"category\">
\t\t\t\t\t<option value=\"\">Service</option>
\t\t\t\t\t";
// line 125
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filter_service"]) || array_key_exists("filter_service", $context) ? $context["filter_service"] : (function () { throw new RuntimeError('Variable "filter_service" does not exist.', 125, $this->source); })()), "getSubcategories", [], "any", false, false, false, 125));
foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
// line 126
yield "\t\t\t\t\t\t<option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["subCategory"], "id", [], "any", false, false, false, 126), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["subCategory"], "name", [], "any", false, false, false, 126), "html", null, true);
yield "</option>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 128
yield "\t\t\t\t</select>
\t\t\t</div>
\t\t\t<div
\t\t\t\tclass=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t<!-- select -->
\t\t\t\t<select class=\" form-control select2\" style=\"width: 100%;padding:5px 14px;height:50px!important\" name=\"department_filter\">
\t\t\t\t\t<option value=\"\">Lieu</option>
\t\t\t\t\t";
// line 135
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filter_service"]) || array_key_exists("filter_service", $context) ? $context["filter_service"] : (function () { throw new RuntimeError('Variable "filter_service" does not exist.', 135, $this->source); })()), "getDepartments", [], "any", false, false, false, 135));
foreach ($context['_seq'] as $context["_key"] => $context["department"]) {
// line 136
yield "\t\t\t\t\t\t<option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["department"], "id", [], "any", false, false, false, 136), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["department"], "name", [], "any", false, false, false, 136), "html", null, true);
yield "</option>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['department'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 138
yield "\t\t\t\t</select>
\t\t\t</div>
\t\t\t<div
\t\t\t\tclass=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t<!-- select -->
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<input id=\"user_weddingDatebar\" name=\"weddingdate\" autocomplete=\"off\" type=\"text\" placeholder=\"Date souhaitée\" class=\"form-control input-md\">
\t\t\t\t\t<div class=\"venue-form-calendar\">
\t\t\t\t\t\t<i class=\"far fa-calendar-alt\"></i>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<!-- button -->
\t\t\t<div class=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t<button class=\"btn btn-default btn-block\" type=\"submit\">Rechercher</button>
\t\t\t</div>
\t\t</form>
\t</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/inc/header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 371 => 138, 360 => 136, 356 => 135, 347 => 128, 336 => 126, 332 => 125, 323 => 119, 313 => 112, 307 => 110, 299 => 106, 291 => 102, 288 => 101, 280 => 97, 275 => 95, 271 => 94, 265 => 92, 263 => 91, 256 => 88, 254 => 87, 247 => 84, 245 => 83, 238 => 80, 236 => 79, 213 => 63, 210 => 62, 201 => 59, 191 => 56, 185 => 52, 175 => 48, 171 => 47, 167 => 46, 164 => 45, 160 => 44, 150 => 41, 144 => 37, 138 => 36, 134 => 34, 124 => 31, 118 => 29, 110 => 27, 108 => 26, 103 => 25, 99 => 24, 96 => 23, 93 => 22, 90 => 21, 87 => 20, 83 => 19, 73 => 16, 63 => 13, 53 => 8, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"header\" style=\"position: fixed;width:100%;top:0;z-index:89\">
\t<div class=\"col-lg-12 col-md-12\">
\t\t<div class=\"classHeader row\">
\t\t\t<div
\t\t\t\tclass=\"row col-lg-8\">
\t\t\t\t<!-- navigations -->
\t\t\t\t<div class=\"header-logo\">
\t\t\t\t\t<a href=\"{{ path('front_home') }}\"><img src=\"{{ asset('images/logo noir.png') }}\" alt=\"Logo Providders\" style=\"width:140px;margin-top:-13px;margin-bottom:-10px\"></a>
\t\t\t\t</div>
\t\t\t\t<div id=\"navigation\" class=\"\" style=\"display: flex ; flex-direction: column\">
\t\t\t\t\t<ul class=\"align-items-center ml-4\">
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"{{ path('front_home') }}\" title=\"Accueil Providders\" {% if app.request.attributes.get('_route') == 'front_home' %} style=\"color:#EB5B20\" {% endif %}>Accueil</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li id=\"idPrestataires\">
\t\t\t\t\t\t\t<a href=\"{{ path('front_company_list') }}\" title=\"Prestataires\" {% if app.request.attributes.get('_route') == 'front_company_list' %} style=\"color:#EB5B20\" {% endif %}>Prestataires</a>
\t\t\t\t\t\t\t<div id=\"dropDownPrestataires\" class=\"dropDownMenu\">
\t\t\t\t\t\t\t\t<div class=\"container-dropDownMenu\">
\t\t\t\t\t\t\t\t\t{% for company in filter_service.getCompany()|slice(0, 5) %}
\t\t\t\t\t\t\t\t\t\t{% set proucts = filter_service.getPhotounProductsCompany(company)%}
\t\t\t\t\t\t\t\t\t\t{% if proucts is not empty %}
\t\t\t\t\t\t\t\t\t\t\t{% set prods = proucts %}
\t\t\t\t\t\t\t\t\t\t\t<div class=\"oneMenu\">
\t\t\t\t\t\t\t\t\t\t\t\t{% for product in prods %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_company_single', {'companySlug': company.companySlug, 'id': company.id}) }}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if product.photos is not empty %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img class=\"imgMenu\" src=\"{{ asset(constant('App\\\\Services\\\\File::IMAGE_PRODUCT_DIR')) ~ product.photos.first.url }}\" alt=\"{{ product.name }}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img class=\"imgMenu\" src=\"{{ asset('upload/produits/defaultProduct2.jpg')}}\" alt=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>{{product.company.companyName}}</p>
\t\t\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li id=\"idServices\">
\t\t\t\t\t\t\t<a href=\"{{ path('front_product_products') }}\" title=\"Services\" {% if app.request.attributes.get('_route') == 'front_product_products' %} style=\"color:#EB5B20\" {% endif %}>Services</a>
\t\t\t\t\t\t\t<div id=\"dropDownServices\" class=\"dropDownMenu\">
\t\t\t\t\t\t\t\t<div class=\"container-dropDownMenu\">
\t\t\t\t\t\t\t\t\t{% for category in filter_service.getSubcategories()|slice(0, 5) %}
\t\t\t\t\t\t\t\t\t\t<div class=\"oneMenu\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_product_category_events', {'subCategorySlug': category.subCategorySlug}) }}\">
\t\t\t\t\t\t\t\t\t\t\t\t<img class=\"imgMenu\" src=\"{{ asset(constant('App\\\\Services\\\\File::IMAGE_CATEGORY_DIR') ~ category.image) }}\" alt=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t<p>{{ category.name }}</p>
\t\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"{{ path('front_article_list') }}\" title=\"Articles\" {% if app.request.attributes.get('_route') == 'front_article_list' %} style=\"color:#EB5B20\" {% endif %}>Articles</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"{{ path('front_blog_list') }}\" title=\"blog\" {% if app.request.attributes.get('_route') == 'front_blog_list' %} style=\"color:#EB5B20\" {% endif %}>Blog</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t{# <li><a href=\"{{ path('client_depeau_annonce') }}\" title=\"annonce\" {% if app.request.attributes.get('_route') == 'client_depeau_annonce' %}style=\"color:#EB5B20\"{% endif %}>Annonces</a></li> #}
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"{{ path('front_contact') }}\" title=\"contact\" {% if app.request.attributes.get('_route') == 'front_contact' %} style=\"color:#EB5B20\" {% endif %}>Contact</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t\t<li>
\t\t\t\t\t\t\t<a href=\"#\" title=\"search\" id=\"link_search\" style=\"color:black\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-search\"></i>
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t</li>
\t\t\t\t\t</ul>
\t\t\t\t</div>
\t\t\t\t<!-- /.navigations #4CB8A3 #EB5B20 -->
\t\t\t</div>
\t\t\t<div
\t\t\t\tclass=\"col-lg-4 d-xl-block d-lg-block p-0\">
\t\t\t\t<!-- header-btn -->
\t\t\t\t<div class=\"header-btn\">
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t{% if app.user and is_granted(\"ROLE_ADMIN\") %}
\t\t\t\t\t\t\t<a href=\"{{ path('admin_dashboard') }}\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-user mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tAdministration</a>
\t\t\t\t\t\t{% elseif app.user and is_granted(\"ROLE_ADMIN_LIMITED\") %}
\t\t\t\t\t\t\t<a href=\"{{ path('admin_user_list') }}\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-user mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tAdministration</a>
\t\t\t\t\t\t{% elseif app.user and is_granted(\"ROLE_ENTERPRISE\") %}
\t\t\t\t\t\t\t<a href=\"{{ path('front_company_space_dashboard') }}\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-user mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tCompte Prestataire</a>
\t\t\t\t\t\t{% elseif app.user and is_granted(\"ROLE_USER\") %}
\t\t\t\t\t\t\t<a href=\"{{ path('front_client_space_dashboard') }}\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-user mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\t{{ app.user.firstName }}
\t\t\t\t\t\t\t\t{{ app.user.lastName }}</a>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<a href=\"{{ path('app_login') }}\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-user mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tAccès Client</a>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if app.user %}
\t\t\t\t\t\t\t<a href=\"{{ path('deconnexion') }}\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-power-off mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tDéconnexion</a>
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t<a href=\"{{ path('app_login_enterprise') }}\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\">
\t\t\t\t\t\t\t\t<i class=\"fas fa-briefcase mr-1\" style=\"font-size:1.3em;color:#4CB8A3 \"></i>
\t\t\t\t\t\t\t\tAccès prestataire</a>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<a href=\"{{ path('front_my_basket') }}\" class=\"btn btn-sm ml-2 text-center d-flex justify-content-center align-items-center\" style=\"color:#4CB8A3 \">
\t\t\t\t\t\t\t<i class=\"fas fa-shopping-cart mr-1\" style=\"font-size:1.6em;color:#4CB8A3 ;padding-top:2px\"></i>
\t\t\t\t\t\t\t<span id=\"nb_basket\" style=\"font-size:1.6em;color:#252429\">{{ app.session.get('products')|length + app.session.get('packs')|length }}</span>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!-- /.header-btn -->
\t\t\t</div>
\t\t</div>
\t\t<form class=\"form-row pt-2\" method=\"post\" action=\"{{ path('front_product_search') }}\" id=\"form_header\" style=\"border-top:1px solid darkgrey\">
\t\t\t<div
\t\t\t\tclass=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\" id=\"div_search_type\">
\t\t\t\t<!-- select -->
\t\t\t\t<select class=\"wide form-control\" name=\"category\">
\t\t\t\t\t<option value=\"\">Service</option>
\t\t\t\t\t{% for subCategory in filter_service.getSubcategories %}
\t\t\t\t\t\t<option value=\"{{ subCategory.id }}\">{{ subCategory.name }}</option>
\t\t\t\t\t{% endfor %}
\t\t\t\t</select>
\t\t\t</div>
\t\t\t<div
\t\t\t\tclass=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t<!-- select -->
\t\t\t\t<select class=\" form-control select2\" style=\"width: 100%;padding:5px 14px;height:50px!important\" name=\"department_filter\">
\t\t\t\t\t<option value=\"\">Lieu</option>
\t\t\t\t\t{% for department in filter_service.getDepartments %}
\t\t\t\t\t\t<option value=\"{{ department.id }}\">{{ department.name }}</option>
\t\t\t\t\t{% endfor %}
\t\t\t\t</select>
\t\t\t</div>
\t\t\t<div
\t\t\t\tclass=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t<!-- select -->
\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t<input id=\"user_weddingDatebar\" name=\"weddingdate\" autocomplete=\"off\" type=\"text\" placeholder=\"Date souhaitée\" class=\"form-control input-md\">
\t\t\t\t\t<div class=\"venue-form-calendar\">
\t\t\t\t\t\t<i class=\"far fa-calendar-alt\"></i>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<!-- button -->
\t\t\t<div class=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t<button class=\"btn btn-default btn-block\" type=\"submit\">Rechercher</button>
\t\t\t</div>
\t\t</form>
\t</div>
</div>
", "front/inc/header.html.twig", "/var/www/vhosts/hobbiinn.com/httpdocs/providdersvacance/templates/front/inc/header.html.twig");
}
}