<?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;
/* network/auction/sections/auction_section_attendees.html.twig */
class __TwigTemplate_16a25f77dbc31809d8167cd6e2677b1463e849bea04a5e878b58c7b237197258 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", "network/auction/sections/auction_section_attendees.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "network/auction/sections/auction_section_attendees.html.twig"));
// line 1
echo "<turbo-frame id=\"tab_content\">
";
// line 3
echo " ";
$this->extensions['App\Core\Twig\Extension\SectionNavigationExtension']->addSection(["name" => "auction-attendees", "anchor" => "event-attendees"]);
// line 4
echo " <section id=\"event-attendees\"
class=\"container p-4 overflow-x-hidden bg-white shadow-xl sm:p-8 xl:p-16\"
";
// line 6
echo twig_escape_filter($this->env, $this->extensions['App\Core\Twig\Extension\LiveEventSubscriberExtension']->generateAttributes(("auction-attendees-" . twig_get_attribute($this->env, $this->source, (isset($context["auction"]) || array_key_exists("auction", $context) ? $context["auction"] : (function () { throw new RuntimeError('Variable "auction" does not exist.', 6, $this->source); })()), "id", [], "any", false, false, false, 6))), "html", null, true);
echo ">
<h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("attendees-with-count", ["%count" => twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["auction"]) || array_key_exists("auction", $context) ? $context["auction"] : (function () { throw new RuntimeError('Variable "auction" does not exist.', 8, $this->source); })()), "attendees", [], "any", false, false, false, 8))]), "html", null, true);
echo "
</h2>
<div class=\"overflow-x-auto\" id=\"event-";
// line 10
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["auction"]) || array_key_exists("auction", $context) ? $context["auction"] : (function () { throw new RuntimeError('Variable "auction" does not exist.', 10, $this->source); })()), "id", [], "any", false, false, false, 10), "html", null, true);
echo "-attendees-full\">
";
// line 12
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["attendees"]) || array_key_exists("attendees", $context) ? $context["attendees"] : (function () { throw new RuntimeError('Variable "attendees" does not exist.', 12, $this->source); })()));
$context['_iterated'] = false;
$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["profileCategory"] => $context["profiles"]) {
// line 13
echo " <div>
<div class=\"flex items-center gap-2 mb-2 text-base font-medium uppercase w-min font-headline\">
";
// line 15
$this->loadTemplate((("icons/subprofile-" . $context["profileCategory"]) . ".svg.twig"), "network/auction/sections/auction_section_attendees.html.twig", 15)->display(twig_array_merge($context, ["class" => "w-6 h-6"]));
// line 18
echo " <span>";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $context["profileCategory"]), "html", null, true);
echo "</span>
</div>
<div class=\"grid grid-cols-1 gap-4 md:grid-cols-2\">
";
// line 21
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["profiles"]);
foreach ($context['_seq'] as $context["_key"] => $context["attendee"]) {
// line 22
echo " ";
$this->loadTemplate("network/profile/components/profile_card_network.html.twig", "network/auction/sections/auction_section_attendees.html.twig", 22)->display(twig_to_array(["profile" => // line 23
$context["attendee"], "class" => "bg-neutral-50", "showContact" => false]));
// line 27
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attendee'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
echo " </div>
</div>
";
$context['_iterated'] = true;
++$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'];
}
}
if (!$context['_iterated']) {
// line 31
echo " <div>
";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no.auction.attendees.available"), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['profileCategory'], $context['profiles'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo " </div>
</section>
<turbo-stream action=\"replace\" target=\"tab_navigation\">
<template>
";
// line 40
$this->loadTemplate("network/auction/components/tab_navigation_component.html.twig", "network/auction/sections/auction_section_attendees.html.twig", 40)->display(twig_array_merge($context, ["auction" => // line 41
(isset($context["auction"]) || array_key_exists("auction", $context) ? $context["auction"] : (function () { throw new RuntimeError('Variable "auction" does not exist.', 41, $this->source); })()), "highlightedTab" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 42
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 42, $this->source); })()), "request", [], "any", false, false, false, 42), "pathInfo", [], "any", false, false, false, 42)]));
// line 44
echo " </template>
</turbo-stream>
</turbo-frame>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "network/auction/sections/auction_section_attendees.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 151 => 44, 149 => 42, 148 => 41, 147 => 40, 140 => 35, 131 => 32, 128 => 31, 113 => 28, 107 => 27, 105 => 23, 103 => 22, 99 => 21, 92 => 18, 90 => 15, 86 => 13, 67 => 12, 63 => 10, 58 => 8, 53 => 6, 49 => 4, 46 => 3, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<turbo-frame id=\"tab_content\">
{# {% if (auction.attendees|length) > 0 %} #}
{% do section_navigation_add({ name: 'auction-attendees', anchor: 'event-attendees' }) %}
<section id=\"event-attendees\"
class=\"container p-4 overflow-x-hidden bg-white shadow-xl sm:p-8 xl:p-16\"
{{ live_event_subscriber('auction-attendees-' ~ auction.id) }}>
<h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
{{ 'attendees-with-count'|trans({ '%count': auction.attendees|length }) }}
</h2>
<div class=\"overflow-x-auto\" id=\"event-{{ auction.id }}-attendees-full\">
{# {% include 'profile/attendees_full.html.twig' with { event: auction } %} #}
{% for profileCategory, profiles in attendees %}
<div>
<div class=\"flex items-center gap-2 mb-2 text-base font-medium uppercase w-min font-headline\">
{% include 'icons/subprofile-' ~ profileCategory ~ '.svg.twig' with {
class: 'w-6 h-6'
} %}
<span>{{ profileCategory|capitalize }}</span>
</div>
<div class=\"grid grid-cols-1 gap-4 md:grid-cols-2\">
{% for attendee in profiles %}
{% include 'network/profile/components/profile_card_network.html.twig' with {
profile: attendee,
class: 'bg-neutral-50',
showContact: false
} only %}
{% endfor %}
</div>
</div>
{% else %}
<div>
{{ 'no.auction.attendees.available'|trans }}
</div>
{% endfor %}
</div>
</section>
<turbo-stream action=\"replace\" target=\"tab_navigation\">
<template>
{% include 'network/auction/components/tab_navigation_component.html.twig' with {
auction: auction,
highlightedTab: app.request.pathInfo
} %}
</template>
</turbo-stream>
</turbo-frame>
", "network/auction/sections/auction_section_attendees.html.twig", "/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/auction/sections/auction_section_attendees.html.twig");
}
}