<?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;
/* search/index.html.twig */
class __TwigTemplate_84dad5a6332fc2bd83b5971a40487095 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "static.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "search/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "search/index.html.twig"));
$this->parent = $this->loadTemplate("static.html.twig", "search/index.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "Hello SearchController!";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 5
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
yield "\t\t<!--list-topics end-->
<!--explore start -->
\t\t<section id=\"explore\" class=\"explore mt-1\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"section-header\">
\t\t\t\t\t<h2>Résultats de recherche pour : ";
// line 12
yield Twig\Extension\EscaperExtension::escape($this->env, (isset($context["keyword"]) || array_key_exists("keyword", $context) ? $context["keyword"] : (function () { throw new RuntimeError('Variable "keyword" does not exist.', 12, $this->source); })()), "html", null, true);
yield "</h2>
\t\t\t\t\t<p>Devenez la prochaine success story avec nous ! Découvrez comment nos services ont transformé des entreprises comme la vôtre</p>
\t\t\t\t</div><!--/.section-header-->
\t\t\t\t<div class=\"explore-content\">
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t";
// line 18
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 18, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["customer"]) {
// line 19
yield "\t\t\t\t\t\t";
if (((CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "CustmerType", [], "any", false, false, false, 19) == "vip") || (CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "CustmerType", [], "any", false, false, false, 19) == "VIP"))) {
// line 20
yield "\t\t\t\t\t
\t\t\t\t\t\t <div class=\"col-md-4 col-sm-6\">
\t\t\t\t\t\t \t<div class=\"single-explore-item\">
\t\t\t\t\t\t\t <a href=\"";
// line 23
yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customer.show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "Id", [], "any", false, false, false, 23), "slug" => $this->extensions['Twig\Extra\String\StringExtension']->createSlug(CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "BusinessName", [], "any", false, false, false, 23))]), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t<div class=\"single-explore-txt bg-theme-5\">
\t\t\t\t\t\t\t\t\t<h2 style-color='green'>";
// line 25
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "BusinessName", [], "any", false, false, false, 25), "html", null, true);
yield "</h2>
\t\t\t\t\t\t\t\t\t<p class=\"explore-rating-price\">
\t\t\t\t\t\t\t\t\t\t<span class=\"explore-rating\">Mbl</span>
\t\t\t\t\t\t\t\t\t\t";
// line 28
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "Mobile", [], "any", false, false, false, 28), "html", null, true);
yield "<br>
\t\t\t\t\t\t\t\t\t\t<span class=\"explore-rating\">Email </span>
\t\t\t\t\t\t\t\t\t\t\t";
// line 30
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "Email", [], "any", false, false, false, 30), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t<div class=\"explore-person\">
\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"explore-person-img\">
\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"../assets/images/logo/";
// line 36
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "Logo", [], "any", false, false, false, 36), "html", null, true);
yield "\" alt=\"explore person\">
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 41
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "StreetAddress", [], "any", false, false, false, 41), "html", null, true);
yield "<br>
\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"close-btn\" >";
// line 42
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "state", [], "any", false, false, false, 42), "html", null, true);
yield " </button> <br>
\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-success\" > +Détail</button>
\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div></a>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t
\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t";
} else {
// line 55
yield "\t\t\t\t\t\t <div class=\"col-md-4 col-sm-6\">
\t\t\t\t\t\t \t<div class=\"single-explore-item\">
\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<div class=\"single-explore-txt bg-theme-5\">
\t\t\t\t\t\t\t\t\t<h2 style-color='green'>";
// line 59
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "BusinessName", [], "any", false, false, false, 59), "html", null, true);
yield "</h2>
\t\t\t\t\t\t\t\t\t<p class=\"explore-rating-price\">
\t\t\t\t\t\t\t\t\t\t<span class=\"explore-rating\">Mbl</span>
\t\t\t\t\t\t\t\t\t\t";
// line 62
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "Mobile", [], "any", false, false, false, 62), "html", null, true);
yield "<br>
\t\t\t\t\t\t\t\t\t\t<span class=\"explore-rating\">Email </span>
\t\t\t\t\t\t\t\t\t\t\t";
// line 64
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "Email", [], "any", false, false, false, 64), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t<div class=\"explore-person\">
\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"explore-person-img\">
\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"../assets/images/logo/";
// line 70
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "Logo", [], "any", false, false, false, 70), "html", null, true);
yield "\" alt=\"explore person\">
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 75
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "StreetAddress", [], "any", false, false, false, 75), "html", null, true);
yield "<br>
\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"close-btn\" >";
// line 76
yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["customer"], "state", [], "any", false, false, false, 76), "html", null, true);
yield " </button> <br>
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>\t
\t\t\t\t</div>
\t\t\t
\t\t\t\t\t\t";
}
// line 87
yield "\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customer'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
yield "
\t\t\t\t\t</div>
<br><br>
";
// line 91
yield $this->env->getRuntime('Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationRuntime')->render($this->env, (isset($context["business"]) || array_key_exists("business", $context) ? $context["business"] : (function () { throw new RuntimeError('Variable "business" does not exist.', 91, $this->source); })()));
yield "
\t\t\t\t</div>
\t\t\t</div><!--/.container-->
\t\t</section><!--/.explore-->
\t\t<!--explore end -->
\t\t
\t
\t
<!-- -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "search/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 235 => 91, 230 => 88, 224 => 87, 210 => 76, 206 => 75, 198 => 70, 189 => 64, 184 => 62, 178 => 59, 172 => 55, 156 => 42, 152 => 41, 144 => 36, 135 => 30, 130 => 28, 124 => 25, 119 => 23, 114 => 20, 111 => 19, 107 => 18, 98 => 12, 90 => 6, 80 => 5, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'static.html.twig' %}
{% block title %}Hello SearchController!{% endblock %}
{% block body %}
\t\t<!--list-topics end-->
<!--explore start -->
\t\t<section id=\"explore\" class=\"explore mt-1\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"section-header\">
\t\t\t\t\t<h2>Résultats de recherche pour : {{keyword}}</h2>
\t\t\t\t\t<p>Devenez la prochaine success story avec nous ! Découvrez comment nos services ont transformé des entreprises comme la vôtre</p>
\t\t\t\t</div><!--/.section-header-->
\t\t\t\t<div class=\"explore-content\">
\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t{% for customer in business %}
\t\t\t\t\t\t{% if customer.CustmerType == 'vip' or customer.CustmerType == 'VIP'%}
\t\t\t\t\t
\t\t\t\t\t\t <div class=\"col-md-4 col-sm-6\">
\t\t\t\t\t\t \t<div class=\"single-explore-item\">
\t\t\t\t\t\t\t <a href=\"{{ path('customer.show', {id:customer.Id, slug:customer.BusinessName|slug })}}\">
\t\t\t\t\t\t\t\t<div class=\"single-explore-txt bg-theme-5\">
\t\t\t\t\t\t\t\t\t<h2 style-color='green'>{{customer.BusinessName}}</h2>
\t\t\t\t\t\t\t\t\t<p class=\"explore-rating-price\">
\t\t\t\t\t\t\t\t\t\t<span class=\"explore-rating\">Mbl</span>
\t\t\t\t\t\t\t\t\t\t{{ customer.Mobile }}<br>
\t\t\t\t\t\t\t\t\t\t<span class=\"explore-rating\">Email </span>
\t\t\t\t\t\t\t\t\t\t\t{{ customer.Email }}
\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t<div class=\"explore-person\">
\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"explore-person-img\">
\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"../assets/images/logo/{{customer.Logo}}\" alt=\"explore person\">
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t{{customer.StreetAddress}}<br>
\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"close-btn\" >{{ customer.state }} </button> <br>
\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btn-success\" > +Détail</button>
\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div></a>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t
\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t <div class=\"col-md-4 col-sm-6\">
\t\t\t\t\t\t \t<div class=\"single-explore-item\">
\t\t\t\t\t\t
\t\t\t\t\t\t\t\t<div class=\"single-explore-txt bg-theme-5\">
\t\t\t\t\t\t\t\t\t<h2 style-color='green'>{{customer.BusinessName}}</h2>
\t\t\t\t\t\t\t\t\t<p class=\"explore-rating-price\">
\t\t\t\t\t\t\t\t\t\t<span class=\"explore-rating\">Mbl</span>
\t\t\t\t\t\t\t\t\t\t{{ customer.Mobile }}<br>
\t\t\t\t\t\t\t\t\t\t<span class=\"explore-rating\">Email </span>
\t\t\t\t\t\t\t\t\t\t\t{{ customer.Email }}
\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t<div class=\"explore-person\">
\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"explore-person-img\">
\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"../assets/images/logo/{{customer.Logo}}\" alt=\"explore person\">
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"col-sm-10\">
\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t{{customer.StreetAddress}}<br>
\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"close-btn\" >{{ customer.state }} </button> <br>
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>\t
\t\t\t\t</div>
\t\t\t
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</div>
<br><br>
{{ knp_pagination_render(business) }}
\t\t\t\t</div>
\t\t\t</div><!--/.container-->
\t\t</section><!--/.explore-->
\t\t<!--explore end -->
\t\t
\t
\t
<!-- -->
{% endblock %}
", "search/index.html.twig", "/home/annuairepn/www/aea/templates/search/index.html.twig");
}
}