<?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;
/* company/base_list.html.twig */
class __TwigTemplate_4dc2e6cd46c65492014c684a79ea0ec534d4ecae747ec863be55e5f907e14b5a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'content' => [$this, 'block_content'],
'search_title' => [$this, 'block_search_title'],
'items_description' => [$this, 'block_items_description'],
'pagination' => [$this, 'block_pagination'],
];
}
protected function doGetParent(array $context)
{
// line 3
return "base.html.twig";
}
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", "company/base_list.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "company/base_list.html.twig"));
// line 1
$context["body_classes"] = ["list-of-companies"];
// line 3
$this->parent = $this->loadTemplate("base.html.twig", "company/base_list.html.twig", 3);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_stylesheets($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(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 6
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
";
// line 7
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("company_list");
yield "
";
// line 8
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("search_autocomplete");
yield "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 11
public function block_content($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(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 12
yield " <main>
<div class=\"container\">
<div class=\"list-of-companies-container\">
<div class=\"search-form-wrapper animate-on-scroll-bottom\">
<div class=\"title\">
";
// line 17
yield from $this->unwrap()->yieldBlock('search_title', $context, $blocks);
// line 18
yield " <h3>";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("company_list.list_title");
yield "</h3>
</div>
<div class=\"title\" style=\"display: none\">
<h3>";
// line 21
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("company_list.search_title");
yield "</h3>
<p>";
// line 22
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("company_list.search_description");
yield "</p>
</div>
";
// line 24
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 24, $this->source); })()), 'form_start', ["attr" => ["data-controller" => "search", "data-search-url-value" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("search"), "data-action" => "submit->search#onSubmit"]]);
// line 28
yield "
<div class=\"field-wrapper\">
";
// line 30
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 30, $this->source); })()), "search", [], "any", false, false, false, 30), 'widget', ["attr" => ["data-action" => "input->search#onAutocomplete click->search#onClick", "data-search-target" => "input"]]);
// line 33
yield "
<div class=\"autocomplete-results\" ";
// line 34
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusTarget($this->env, "search", "results");
yield "></div>
</div>
<div class=\"buttons-container\">
";
// line 37
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 37, $this->source); })()), "submit", [], "any", false, false, false, 37), 'widget');
yield "
</div>
";
// line 39
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 39, $this->source); })()), 'form_end');
yield "
</div>
<div class=\"items-description\">";
// line 41
yield from $this->unwrap()->yieldBlock('items_description', $context, $blocks);
yield "</div>
<div class=\"items-container\">
";
// line 43
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["profiles"]) || array_key_exists("profiles", $context) ? $context["profiles"] : (function () { throw new RuntimeError('Variable "profiles" does not exist.', 43, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["profile"]) {
// line 44
yield " <div class=\"item-wrapper ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\ProfileExtension']->getStyleClasses($context["profile"]), "html", null, true);
yield "\">
<div class=\"image-wrapper\">
<img src=\"";
// line 46
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo-award.svg"), "html", null, true);
yield "\" alt=\"\">
<div class=\"status\">";
// line 47
yield $this->extensions['App\Twig\ProfileExtension']->getStatusLabel($context["profile"]);
yield "</div>
<div class=\"expiration-date\">
";
// line 49
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("company.list.expiration_date", ["%date%" => $this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, // line 50
$context["profile"], "expiredAt", [], "any", false, false, false, 50), "d.m.Y")]);
// line 51
yield "
</div>
";
// line 54
yield " </div>
<div class=\"description-wrapper\">
<a href=\"";
// line 56
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("company_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["profile"], "id", [], "any", false, false, false, 56), "slug" => CoreExtension::getAttribute($this->env, $this->source, $context["profile"], "slug", [], "any", false, false, false, 56)]), "html", null, true);
yield "\">
<h6>";
// line 57
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["profile"], "name", [], "any", false, false, false, 57), "html", null, true);
yield "</h6>
<p class=\"subtitle\">";
// line 58
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["profile"], "city", [], "any", false, false, false, 58), "name", [], "any", false, false, false, 58)), "html", null, true);
yield "</p>
<p class=\"description\">";
// line 59
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["profile"], "scopeOfActivity", [], "any", false, false, false, 59), "html", null, true);
yield "</p>
<p class=\"date\">
";
// line 61
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("company.list.first_audit", ["%date%" => $this->extensions['App\Twig\AuditDateExtension']->formatAuditDate(CoreExtension::getAttribute($this->env, $this->source, // line 62
$context["profile"], "createdAt", [], "any", false, false, false, 62))]), "html", null, true);
// line 63
yield "
</p>
</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['profile'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 69
yield " </div>
";
// line 70
yield from $this->unwrap()->yieldBlock('pagination', $context, $blocks);
// line 71
yield " </div>
</div>
</main>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 17
public function block_search_title($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(), "block", "search_title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "search_title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 41
public function block_items_description($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(), "block", "items_description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "items_description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 70
public function block_pagination($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(), "block", "pagination"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pagination"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "company/base_list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 283 => 70, 264 => 41, 245 => 17, 231 => 71, 229 => 70, 226 => 69, 215 => 63, 213 => 62, 212 => 61, 207 => 59, 203 => 58, 199 => 57, 195 => 56, 191 => 54, 187 => 51, 185 => 50, 184 => 49, 179 => 47, 175 => 46, 169 => 44, 165 => 43, 160 => 41, 155 => 39, 150 => 37, 144 => 34, 141 => 33, 139 => 30, 135 => 28, 133 => 24, 128 => 22, 124 => 21, 117 => 18, 115 => 17, 108 => 12, 98 => 11, 85 => 8, 81 => 7, 76 => 6, 66 => 5, 55 => 3, 53 => 1, 40 => 3,);
}
public function getSourceContext()
{
return new Source("{% set body_classes = ['list-of-companies'] %}
{% extends 'base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('company_list') }}
{{ encore_entry_link_tags('search_autocomplete') }}
{% endblock stylesheets %}
{% block content %}
<main>
<div class=\"container\">
<div class=\"list-of-companies-container\">
<div class=\"search-form-wrapper animate-on-scroll-bottom\">
<div class=\"title\">
{% block search_title %}{% endblock search_title %}
<h3>{{ 'company_list.list_title'|trans|raw }}</h3>
</div>
<div class=\"title\" style=\"display: none\">
<h3>{{ 'company_list.search_title'|trans|raw }}</h3>
<p>{{ 'company_list.search_description'|trans|raw }}</p>
</div>
{{ form_start(form, {'attr': {
'data-controller': 'search',
'data-search-url-value': path('search'),
'data-action': 'submit->search#onSubmit',
}}) }}
<div class=\"field-wrapper\">
{{ form_widget(form.search, {'attr': {
'data-action': 'input->search#onAutocomplete click->search#onClick',
'data-search-target': 'input',
}}) }}
<div class=\"autocomplete-results\" {{ stimulus_target('search', 'results') }}></div>
</div>
<div class=\"buttons-container\">
{{ form_widget(form.submit) }}
</div>
{{ form_end(form) }}
</div>
<div class=\"items-description\">{% block items_description %}{% endblock items_description %}</div>
<div class=\"items-container\">
{% for profile in profiles %}
<div class=\"item-wrapper {{ profile|get_profile_styles }}\">
<div class=\"image-wrapper\">
<img src=\"{{ asset('build/images/logo-award.svg') }}\" alt=\"\">
<div class=\"status\">{{ profile|profile_status_label|raw }}</div>
<div class=\"expiration-date\">
{{ 'company.list.expiration_date'|trans({
'%date%' : profile.expiredAt|date('d.m.Y')
})|raw }}
</div>
{#<div class=\"label\">{{ 'company.list.golden_partner'|trans }}</div>#}
</div>
<div class=\"description-wrapper\">
<a href=\"{{ path('company_show', {'id': profile.id, 'slug': profile.slug}) }}\">
<h6>{{ profile.name }}</h6>
<p class=\"subtitle\">{{ profile.city.name|capitalize }}</p>
<p class=\"description\">{{ profile.scopeOfActivity }}</p>
<p class=\"date\">
{{ 'company.list.first_audit'|trans({
'%date%': profile.createdAt|audit_date
}) }}
</p>
</a>
</div>
</div>
{% endfor %}
</div>
{% block pagination %}{% endblock pagination %}
</div>
</div>
</main>
{% endblock content %}", "company/base_list.html.twig", "/var/www/brc_frontend/templates/company/base_list.html.twig");
}
}