var/cache/dev/twig/98/98b2d08818d084c582953aeecf33cdfe3d40ebb45c5fe78c64beadc776df49c5.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* network/auction/sections/auction_section_attendees.html.twig */
  14. class __TwigTemplate_16a25f77dbc31809d8167cd6e2677b1463e849bea04a5e878b58c7b237197258 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/auction/sections/auction_section_attendees.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/auction/sections/auction_section_attendees.html.twig"));
  33.         // line 1
  34.         echo "<turbo-frame id=\"tab_content\">
  35.   ";
  36.         // line 3
  37.         echo "  ";
  38.         $this->extensions['App\Core\Twig\Extension\SectionNavigationExtension']->addSection(["name" => "auction-attendees""anchor" => "event-attendees"]);
  39.         // line 4
  40.         echo "  <section id=\"event-attendees\"
  41.     class=\"container p-4 overflow-x-hidden bg-white shadow-xl sm:p-8 xl:p-16\"
  42.     ";
  43.         // line 6
  44.         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"falsefalsefalse6))), "html"nulltrue);
  45.         echo ">
  46.     <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  47.       ";
  48.         // line 8
  49.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("attendees-with-count", ["%count" => twig_length_filter($this->envtwig_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"falsefalsefalse8))]), "html"nulltrue);
  50.         echo "
  51.     </h2>
  52.     <div class=\"overflow-x-auto\" id=\"event-";
  53.         // line 10
  54.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse10), "html"nulltrue);
  55.         echo "-attendees-full\">
  56.       ";
  57.         // line 12
  58.         echo "      ";
  59.         $context['_parent'] = $context;
  60.         $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); })()));
  61.         $context['_iterated'] = false;
  62.         $context['loop'] = [
  63.           'parent' => $context['_parent'],
  64.           'index0' => 0,
  65.           'index'  => 1,
  66.           'first'  => true,
  67.         ];
  68.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  69.             $length count($context['_seq']);
  70.             $context['loop']['revindex0'] = $length 1;
  71.             $context['loop']['revindex'] = $length;
  72.             $context['loop']['length'] = $length;
  73.             $context['loop']['last'] = === $length;
  74.         }
  75.         foreach ($context['_seq'] as $context["profileCategory"] => $context["profiles"]) {
  76.             // line 13
  77.             echo "        <div>
  78.           <div class=\"flex items-center gap-2 mb-2 text-base font-medium uppercase w-min font-headline\">
  79.             ";
  80.             // line 15
  81.             $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"]));
  82.             // line 18
  83.             echo "            <span>";
  84.             echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$context["profileCategory"]), "html"nulltrue);
  85.             echo "</span>
  86.           </div>
  87.           <div class=\"grid grid-cols-1 gap-4 md:grid-cols-2\">
  88.             ";
  89.             // line 21
  90.             $context['_parent'] = $context;
  91.             $context['_seq'] = twig_ensure_traversable($context["profiles"]);
  92.             foreach ($context['_seq'] as $context["_key"] => $context["attendee"]) {
  93.                 // line 22
  94.                 echo "              ";
  95.                 $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
  96. $context["attendee"], "class" => "bg-neutral-50""showContact" => false]));
  97.                 // line 27
  98.                 echo "            ";
  99.             }
  100.             $_parent $context['_parent'];
  101.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attendee'], $context['_parent'], $context['loop']);
  102.             $context array_intersect_key($context$_parent) + $_parent;
  103.             // line 28
  104.             echo "          </div>
  105.         </div>
  106.       ";
  107.             $context['_iterated'] = true;
  108.             ++$context['loop']['index0'];
  109.             ++$context['loop']['index'];
  110.             $context['loop']['first'] = false;
  111.             if (isset($context['loop']['length'])) {
  112.                 --$context['loop']['revindex0'];
  113.                 --$context['loop']['revindex'];
  114.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  115.             }
  116.         }
  117.         if (!$context['_iterated']) {
  118.             // line 31
  119.             echo "        <div>
  120.           ";
  121.             // line 32
  122.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no.auction.attendees.available"), "html"nulltrue);
  123.             echo "
  124.         </div>
  125.       ";
  126.         }
  127.         $_parent $context['_parent'];
  128.         unset($context['_seq'], $context['_iterated'], $context['profileCategory'], $context['profiles'], $context['_parent'], $context['loop']);
  129.         $context array_intersect_key($context$_parent) + $_parent;
  130.         // line 35
  131.         echo "    </div>
  132.   </section>
  133.   <turbo-stream action=\"replace\" target=\"tab_navigation\">
  134.     <template>
  135.       ";
  136.         // line 40
  137.         $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
  138. (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->sourcetwig_get_attribute($this->env$this->source,         // line 42
  139. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'42$this->source); })()), "request", [], "any"falsefalsefalse42), "pathInfo", [], "any"falsefalsefalse42)]));
  140.         // line 44
  141.         echo "    </template>
  142.   </turbo-stream>
  143. </turbo-frame>
  144. ";
  145.         
  146.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  147.         
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  149.     }
  150.     public function getTemplateName()
  151.     {
  152.         return "network/auction/sections/auction_section_attendees.html.twig";
  153.     }
  154.     public function isTraitable()
  155.     {
  156.         return false;
  157.     }
  158.     public function getDebugInfo()
  159.     {
  160.         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,);
  161.     }
  162.     public function getSourceContext()
  163.     {
  164.         return new Source("<turbo-frame id=\"tab_content\">
  165.   {# {% if (auction.attendees|length) > 0 %} #}
  166.   {% do section_navigation_add({ name: 'auction-attendees', anchor: 'event-attendees' }) %}
  167.   <section id=\"event-attendees\"
  168.     class=\"container p-4 overflow-x-hidden bg-white shadow-xl sm:p-8 xl:p-16\"
  169.     {{ live_event_subscriber('auction-attendees-' ~ auction.id) }}>
  170.     <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  171.       {{ 'attendees-with-count'|trans({ '%count': auction.attendees|length }) }}
  172.     </h2>
  173.     <div class=\"overflow-x-auto\" id=\"event-{{ auction.id }}-attendees-full\">
  174.       {# {% include 'profile/attendees_full.html.twig' with { event: auction } %} #}
  175.       {% for profileCategory, profiles in attendees %}
  176.         <div>
  177.           <div class=\"flex items-center gap-2 mb-2 text-base font-medium uppercase w-min font-headline\">
  178.             {% include 'icons/subprofile-' ~ profileCategory ~ '.svg.twig' with {
  179.               class: 'w-6 h-6'
  180.             } %}
  181.             <span>{{ profileCategory|capitalize }}</span>
  182.           </div>
  183.           <div class=\"grid grid-cols-1 gap-4 md:grid-cols-2\">
  184.             {% for attendee in profiles %}
  185.               {% include 'network/profile/components/profile_card_network.html.twig' with {
  186.                 profile: attendee,
  187.                 class: 'bg-neutral-50',
  188.                 showContact: false
  189.               } only %}
  190.             {% endfor %}
  191.           </div>
  192.         </div>
  193.       {% else %}
  194.         <div>
  195.           {{ 'no.auction.attendees.available'|trans }}
  196.         </div>
  197.       {% endfor %}
  198.     </div>
  199.   </section>
  200.   <turbo-stream action=\"replace\" target=\"tab_navigation\">
  201.     <template>
  202.       {% include 'network/auction/components/tab_navigation_component.html.twig' with {
  203.         auction: auction,
  204.         highlightedTab: app.request.pathInfo
  205.       } %}
  206.     </template>
  207.   </turbo-stream>
  208. </turbo-frame>
  209. ""network/auction/sections/auction_section_attendees.html.twig""/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/auction/sections/auction_section_attendees.html.twig");
  210.     }
  211. }