<?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;
/* admin/partial/sous_top_menu.html.twig */
class __TwigTemplate_2216deeeb8f44c975fce80a0d2aa64e32f29d82e32445c27a2e08cf8d1ca4ed8 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", "admin/partial/sous_top_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", "admin/partial/sous_top_menu.html.twig"));
// line 1
echo "<div class=\"sous-top-menu main-header\">
\t<div class=\"col-lg-6 main_header_titel\">
\t\t";
// line 3
if ((array_key_exists("header_titel", $context) && (isset($context["header_titel"]) || array_key_exists("header_titel", $context) ? $context["header_titel"] : (function () { throw new RuntimeError('Variable "header_titel" does not exist.', 3, $this->source); })()))) {
// line 4
echo "\t\t\t<h4 class=\"header-titel-text\">";
echo twig_escape_filter($this->env, (isset($context["header_titel"]) || array_key_exists("header_titel", $context) ? $context["header_titel"] : (function () { throw new RuntimeError('Variable "header_titel" does not exist.', 4, $this->source); })()), "html", null, true);
echo "</h4>
\t\t";
}
// line 6
echo "\t</div>
\t";
// line 7
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN") || twig_in_filter(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.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "attributes", [], "any", false, false, false, 7), "get", [0 => "_route"], "method", false, false, false, 7), [0 => "edit_client_user_front", 1 => "edit_client_front", 2 => "edit_project", 3 => "show_project_devis", 4 => "project_factures", 5 => "show_project_livrables", 6 => "project_documents", 7 => "admin_projects_access"]))) {
// line 8
echo "\t\t<div class=\"col-lg-6\">
\t\t\t";
// line 9
if ((array_key_exists("breadcumb", $context) && (isset($context["breadcumb"]) || array_key_exists("breadcumb", $context) ? $context["breadcumb"] : (function () { throw new RuntimeError('Variable "breadcumb" does not exist.', 9, $this->source); })()))) {
// line 10
echo "\t\t\t\t<nav aria-label=\"breadcrumb\" class=\"breadcrumb-nav\">
\t\t\t\t\t<ol class=\"breadcrumb\">
\t\t\t\t\t\t";
// line 12
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["breadcumb"]) || array_key_exists("breadcumb", $context) ? $context["breadcumb"] : (function () { throw new RuntimeError('Variable "breadcumb" does not exist.', 12, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 13
echo "\t\t\t\t\t\t\t<li class=\"breadcrumb-item";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 13)) {
echo " breadcrumb-item-active";
}
echo "\">
\t\t\t\t\t\t\t\t";
// line 14
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 14)) {
// line 15
echo "\t\t\t\t\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, false, 15), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 15), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 15), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t";
} else {
// line 17
echo "\t\t\t\t\t\t\t\t\t";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 17), "html", null, true);
echo "
\t\t\t\t\t\t\t\t";
}
// line 19
echo "\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t";
// line 21
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 21)) {
// line 22
echo "\t\t\t\t\t\t\t\t<li class=\"breadcrumb-separator\" aria-hidden=\"true\">></li>
\t\t\t\t\t\t\t";
}
// line 24
echo "\t\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo "\t\t\t\t\t</ol>
\t\t\t\t</nav>
\t\t\t";
}
// line 28
echo "\t\t</div>
\t";
}
// line 30
echo "</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "admin/partial/sous_top_menu.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 144 => 30, 140 => 28, 135 => 25, 121 => 24, 117 => 22, 115 => 21, 111 => 19, 105 => 17, 95 => 15, 93 => 14, 86 => 13, 69 => 12, 65 => 10, 63 => 9, 60 => 8, 58 => 7, 55 => 6, 49 => 4, 47 => 3, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"sous-top-menu main-header\">
\t<div class=\"col-lg-6 main_header_titel\">
\t\t{% if header_titel is defined and header_titel %}
\t\t\t<h4 class=\"header-titel-text\">{{header_titel}}</h4>
\t\t{% endif %}
\t</div>
\t{% if is_granted('ROLE_ADMIN') or app.request.attributes.get('_route') in ['edit_client_user_front' , 'edit_client_front' , 'edit_project','show_project_devis','project_factures' ,'show_project_livrables','project_documents','admin_projects_access']%}
\t\t<div class=\"col-lg-6\">
\t\t\t{% if breadcumb is defined and breadcumb %}
\t\t\t\t<nav aria-label=\"breadcrumb\" class=\"breadcrumb-nav\">
\t\t\t\t\t<ol class=\"breadcrumb\">
\t\t\t\t\t\t{% for item in breadcumb %}
\t\t\t\t\t\t\t<li class=\"breadcrumb-item{% if loop.last %} breadcrumb-item-active{% endif %}\">
\t\t\t\t\t\t\t\t{% if not loop.last %}
\t\t\t\t\t\t\t\t\t<a href=\"{{ item.url }}\" title=\"{{ item.name }}\">{{ item.name }}</a>
\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t{{ item.name }}
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t{% if not loop.last %}
\t\t\t\t\t\t\t\t<li class=\"breadcrumb-separator\" aria-hidden=\"true\">></li>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</ol>
\t\t\t\t</nav>
\t\t\t{% endif %}
\t\t</div>
\t{% endif %}
</div>
", "admin/partial/sous_top_menu.html.twig", "/var/www/prod/portfolio/templates/admin/partial/sous_top_menu.html.twig");
}
}