<?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;
/* front/company/list.html.twig */
class __TwigTemplate_c798fc0b1cf2cedb16c97653cc0cb11d222c61f50ca57592414d2fbaff5b8088 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta' => [$this, 'block_meta'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base_front.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", "front/company/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", "front/company/list.html.twig"));
$this->parent = $this->loadTemplate("base_front.html.twig", "front/company/list.html.twig", 1);
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 3
public function block_meta($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", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 4
yield "\t<title>Les prestataires disponibles</title>
\t<meta name=\"description\" content=\"Liste des prestataires disponibles pour votre mariage. Recherchez par département et par type de service\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 8
public function block_body($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", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 9
yield "\t<div class=\"page-header\" style=\"height: 100%;background: url(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/background_presta_hobbiinn.jpg"), "html", null, true);
yield ") no-repeat center;background-size: cover\">
\t\t<div class=\"container\">
\t\t\t<div
\t\t\t\tclass=\"row\">
\t\t\t\t<!-- page caption -->
\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
\t\t\t\t\t<div class=\"page-caption\">
\t\t\t\t\t\t<h1 class=\"page-title shadow\">Prestataires</h1>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!-- /.page caption -->
\t\t\t</div>
\t\t</div>
\t\t<!-- page caption -->
\t\t<div class=\"page-breadcrumb\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<nav aria-label=\"breadcrumb\">
\t\t\t\t\t\t<ol class=\"breadcrumb\">
\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t\t\t\t\t<a href=\"";
// line 29
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_home");
yield "\" class=\"breadcrumb-link\">Accueil</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Tous les prestataires (";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["countCompanies"]) || array_key_exists("countCompanies", $context) ? $context["countCompanies"] : (function () { throw new RuntimeError('Variable "countCompanies" does not exist.', 31, $this->source); })()), "html", null, true);
yield "
\t\t\t\t\t\t\t\t";
// line 32
if (((isset($context["countCompanies"]) || array_key_exists("countCompanies", $context) ? $context["countCompanies"] : (function () { throw new RuntimeError('Variable "countCompanies" does not exist.', 32, $this->source); })()) > 1)) {
yield "prestataires trouvés";
} else {
yield "prestataire trouvé
\t\t\t\t\t\t\t\t";
}
// line 33
yield ")</li>
\t\t\t\t\t\t</ol>
\t\t\t\t\t</nav>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<!-- page breadcrumb -->
\t</div>
\t<!-- /.page-header -->
\t<!-- filter-form -->
\t<div class=\"filter-form\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
\t\t\t\t\t<form
\t\t\t\t\t\tclass=\"form-row\" method=\"post\" action=\"";
// line 48
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_company_search");
yield "\" style=\"justify-content:center\">
\t\t\t\t\t\t<!-- venue-type -->
\t\t\t\t\t\t<div class=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t\t\t\t<select class=\"form-control select2\" style=\"width:100%;padding:5px 14px;height:50px!important\" name=\"department_filter\">
\t\t\t\t\t\t\t\t<option value=\"\">Département</option>
\t\t\t\t\t\t\t\t";
// line 53
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filter_service"]) || array_key_exists("filter_service", $context) ? $context["filter_service"] : (function () { throw new RuntimeError('Variable "filter_service" does not exist.', 53, $this->source); })()), "getDepartments", [], "any", false, false, false, 53));
foreach ($context['_seq'] as $context["_key"] => $context["department"]) {
// line 54
yield "\t\t\t\t\t\t\t\t\t<option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["department"], "id", [], "any", false, false, false, 54), "html", null, true);
yield "\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "session", [], "any", false, false, false, 54), "get", ["department"], "method", false, false, false, 54) == CoreExtension::getAttribute($this->env, $this->source, $context["department"], "id", [], "any", false, false, false, 54))) {
yield " selected ";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["department"], "numero", [], "any", false, false, false, 54), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t\t\t";
// line 56
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["department"], "name", [], "any", false, false, false, 56), "html", null, true);
yield "</option>
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['department'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 58
yield "\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.venue-type -->
\t\t\t\t\t\t<!-- distance km -->
\t\t\t\t\t\t<div class=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t\t\t\t<select class=\"wide\" name=\"category_filter\">
\t\t\t\t\t\t\t\t<option value=\"\">Type de prestation</option>
\t\t\t\t\t\t\t\t";
// line 65
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filter_service"]) || array_key_exists("filter_service", $context) ? $context["filter_service"] : (function () { throw new RuntimeError('Variable "filter_service" does not exist.', 65, $this->source); })()), "getSubcategories", [], "any", false, false, false, 65));
foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
// line 66
yield "\t\t\t\t\t\t\t\t\t<option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["subCategory"], "id", [], "any", false, false, false, 66), "html", null, true);
yield "\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 66, $this->source); })()), "session", [], "any", false, false, false, 66), "get", ["department"], "method", false, false, false, 66) == CoreExtension::getAttribute($this->env, $this->source, $context["subCategory"], "id", [], "any", false, false, false, 66))) {
yield " selected ";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["subCategory"], "name", [], "any", false, false, false, 66), "html", null, true);
yield "</option>
\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 68
yield "\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div
\t\t\t\t\t\t\tclass=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t\t\t\t<!-- select -->
\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t<input id=\"user_weddingDate\" name=\"date_filter\" autocomplete=\"off\" type=\"text\" placeholder=\"Date souhaitée\" class=\"form-control input-md\" value=\"";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 74, $this->source); })()), "session", [], "any", false, false, false, 74), "get", ["date_evt"], "method", false, false, false, 74), "html", null, true);
yield "\" required>
\t\t\t\t\t\t\t\t<div class=\"venue-form-calendar\">
\t\t\t\t\t\t\t\t\t<i class=\"far fa-calendar-alt\"></i>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.price -->
\t\t\t\t\t\t<div class=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12 \">
\t\t\t\t\t\t\t<button class=\"btn btn-block\" type=\"submit\" style=\"background:#0de8c7 \" >Rechercher</button>
\t\t\t\t\t\t</div>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t<!-- /.filter-form -->
\t<div class=\"content\">
\t\t<div class=\"container\">
\t\t\t<h1 class=\"d-none\">My new carte</h1>
\t\t\t<div class=\"row containre-all-company\">
\t\t\t\t";
// line 94
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["companies"]) || array_key_exists("companies", $context) ? $context["companies"] : (function () { throw new RuntimeError('Variable "companies" does not exist.', 94, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["company"]) {
// line 95
yield "\t\t\t\t\t";
$context["mananaProdActive"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["filter_service"]) || array_key_exists("filter_service", $context) ? $context["filter_service"] : (function () { throw new RuntimeError('Variable "filter_service" does not exist.', 95, $this->source); })()), "getOtherProductsCompany", [$context["company"]], "method", false, false, false, 95);
// line 96
yield "\t\t\t\t\t";
// line 97
yield "\t\t\t\t\t\t";
// line 99
yield "\t\t\t\t\t\t\t\t<div class=\"col-xl-4 col-lg-4 col-md-6 col-sm-6 col-12\">
\t\t\t\t\t\t\t\t\t<div class=\"container-block-companies\">
\t\t\t\t\t\t\t\t\t\t<div class=\"container-slide-image\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 102
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["company"], "products", [], "any", false, false, false, 102))) {
// line 103
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filter_service"]) || array_key_exists("filter_service", $context) ? $context["filter_service"] : (function () { throw new RuntimeError('Variable "filter_service" does not exist.', 103, $this->source); })()), "getOtherProductsCompany", [$context["company"]], "method", false, false, false, 103));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 104
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "photos", [], "any", false, false, false, 104))) {
// line 105
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(Twig\Extension\CoreExtension::constant("App\\Services\\File::IMAGE_PRODUCT_DIR")) . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "photos", [], "any", false, false, false, 105), "first", [], "any", false, false, false, 105), "url", [], "any", false, false, false, 105)), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "name", [], "any", false, false, false, 105), "html", null, true);
yield "\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 107
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/vecteezy_vector-gear-logo-design-with-multi-colors-range_6172776.jpg"), "html", null, true);
yield "\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 109
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 110
yield "\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 111
yield "\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/vecteezy_vector-gear-logo-design-with-multi-colors-range_6172776.jpg"), "html", null, true);
yield "\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 113
yield "\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"container-info-presta\">
\t\t\t\t\t\t\t\t\t\t\t<h2 class=\"vendor-title\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 116
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_company_single", ["companySlug" => CoreExtension::getAttribute($this->env, $this->source, $context["company"], "companySlug", [], "any", false, false, false, 116), "id" => CoreExtension::getAttribute($this->env, $this->source, $context["company"], "id", [], "any", false, false, false, 116)]), "html", null, true);
yield "\" class=\"title\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["company"], "companyName", [], "any", false, false, false, 116), "html", null, true);
yield "</a>
\t\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t<strong>";
// line 119
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["company"], "products", [], "any", false, false, false, 119)), "html", null, true);
yield "</strong>
\t\t\t\t\t\t\t\t\t\t\t\tService";
// line 120
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["company"], "products", [], "any", false, false, false, 120)) > 1)) {
yield "s
\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 122
yield "\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t<p class=\"vendor-address\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 124
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["company"], "category", [], "any", false, false, false, 124))) {
// line 125
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["company"], "category", [], "any", false, false, false, 125));
$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["category"]) {
// line 126
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"mr-2\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 126), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 127
if ( !CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 127)) {
yield ",
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 129
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\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['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 131
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 132
yield "\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t<p class=\"vendor-address\">";
// line 133
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["company"], "city", [], "any", false, false, false, 133), "html", null, true);
yield "</p>
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
\t\t\t\t\t\t\t\t\t\t\t<strong>
\t\t\t\t\t\t\t\t\t\t\t\t4,9</strong>
\t\t\t\t\t\t\t\t\t\t\tAvis
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 139
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_company_single", ["companySlug" => CoreExtension::getAttribute($this->env, $this->source, $context["company"], "companySlug", [], "any", false, false, false, 139), "id" => CoreExtension::getAttribute($this->env, $this->source, $context["company"], "id", [], "any", false, false, false, 139)]), "html", null, true);
yield "\" class=\"title\">
\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btnVoirP\" >Voir plus</button>
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t<div class=\"wishlist-sign\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\" class=\"btn-wishlist\">
\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-heart\"></i>
\t\t\t\t\t\t\t\t\t\t\t</a>
\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</div>
\t\t\t\t\t\t\t";
// line 151
yield "\t\t\t\t\t";
// line 152
yield "\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['company'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 153
yield "\t\t\t</div>
\t\t\t";
// line 220
yield "\t\t\t<div class=\"pagination mt-5\">
\t\t\t\t<nav aria-label=\"Page navigation example\">
\t\t\t\t\t";
// line 222
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["companies"]) || array_key_exists("companies", $context) ? $context["companies"] : (function () { throw new RuntimeError('Variable "companies" does not exist.', 222, $this->source); })()));
yield "
\t\t\t\t</nav>
\t\t\t</div>
\t\t</div>
\t</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/company/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 410 => 222, 406 => 220, 403 => 153, 397 => 152, 395 => 151, 382 => 139, 373 => 133, 370 => 132, 367 => 131, 352 => 129, 347 => 127, 342 => 126, 324 => 125, 322 => 124, 318 => 122, 313 => 120, 309 => 119, 301 => 116, 296 => 113, 290 => 111, 287 => 110, 281 => 109, 275 => 107, 267 => 105, 264 => 104, 259 => 103, 257 => 102, 252 => 99, 250 => 97, 248 => 96, 245 => 95, 241 => 94, 218 => 74, 210 => 68, 195 => 66, 191 => 65, 182 => 58, 174 => 56, 162 => 54, 158 => 53, 150 => 48, 133 => 33, 126 => 32, 122 => 31, 117 => 29, 93 => 9, 83 => 8, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base_front.html.twig' %}
{% block meta %}
\t<title>Les prestataires disponibles</title>
\t<meta name=\"description\" content=\"Liste des prestataires disponibles pour votre mariage. Recherchez par département et par type de service\">
{% endblock %}
{% block body %}
\t<div class=\"page-header\" style=\"height: 100%;background: url({{ asset('images/background_presta_hobbiinn.jpg') }}) no-repeat center;background-size: cover\">
\t\t<div class=\"container\">
\t\t\t<div
\t\t\t\tclass=\"row\">
\t\t\t\t<!-- page caption -->
\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 \">
\t\t\t\t\t<div class=\"page-caption\">
\t\t\t\t\t\t<h1 class=\"page-title shadow\">Prestataires</h1>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<!-- /.page caption -->
\t\t\t</div>
\t\t</div>
\t\t<!-- page caption -->
\t\t<div class=\"page-breadcrumb\">
\t\t\t<div class=\"container\">
\t\t\t\t<div class=\"row\">
\t\t\t\t\t<nav aria-label=\"breadcrumb\">
\t\t\t\t\t\t<ol class=\"breadcrumb\">
\t\t\t\t\t\t\t<li class=\"breadcrumb-item\">
\t\t\t\t\t\t\t\t<a href=\"{{ path('front_home') }}\" class=\"breadcrumb-link\">Accueil</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li class=\"breadcrumb-item active text-white\" aria-current=\"page\">Tous les prestataires ({{ countCompanies }}
\t\t\t\t\t\t\t\t{% if countCompanies > 1 %}prestataires trouvés{% else %}prestataire trouvé
\t\t\t\t\t\t\t\t{% endif %})</li>
\t\t\t\t\t\t</ol>
\t\t\t\t\t</nav>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t\t<!-- page breadcrumb -->
\t</div>
\t<!-- /.page-header -->
\t<!-- filter-form -->
\t<div class=\"filter-form\">
\t\t<div class=\"container\">
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12\">
\t\t\t\t\t<form
\t\t\t\t\t\tclass=\"form-row\" method=\"post\" action=\"{{ path('front_company_search') }}\" style=\"justify-content:center\">
\t\t\t\t\t\t<!-- venue-type -->
\t\t\t\t\t\t<div class=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t\t\t\t<select class=\"form-control select2\" style=\"width:100%;padding:5px 14px;height:50px!important\" name=\"department_filter\">
\t\t\t\t\t\t\t\t<option value=\"\">Département</option>
\t\t\t\t\t\t\t\t{% for department in filter_service.getDepartments %}
\t\t\t\t\t\t\t\t\t<option value=\"{{ department.id }}\" {% if app.session.get('department') == department.id %} selected {% endif %}>{{ department.numero }}
\t\t\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t\t\t{{ department.name }}</option>
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.venue-type -->
\t\t\t\t\t\t<!-- distance km -->
\t\t\t\t\t\t<div class=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t\t\t\t<select class=\"wide\" name=\"category_filter\">
\t\t\t\t\t\t\t\t<option value=\"\">Type de prestation</option>
\t\t\t\t\t\t\t\t{% for subCategory in filter_service.getSubcategories %}
\t\t\t\t\t\t\t\t\t<option value=\"{{ subCategory.id }}\" {% if app.session.get('department') == subCategory.id %} selected {% endif %}>{{ subCategory.name }}</option>
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div
\t\t\t\t\t\t\tclass=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12\">
\t\t\t\t\t\t\t<!-- select -->
\t\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t\t<input id=\"user_weddingDate\" name=\"date_filter\" autocomplete=\"off\" type=\"text\" placeholder=\"Date souhaitée\" class=\"form-control input-md\" value=\"{{ app.session.get('date_evt') }}\" required>
\t\t\t\t\t\t\t\t<div class=\"venue-form-calendar\">
\t\t\t\t\t\t\t\t\t<i class=\"far fa-calendar-alt\"></i>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.price -->
\t\t\t\t\t\t<div class=\"col-xl-3 col-lg-3 col-md-3 col-sm-12 col-12 \">
\t\t\t\t\t\t\t<button class=\"btn btn-block\" type=\"submit\" style=\"background:#0de8c7 \" >Rechercher</button>
\t\t\t\t\t\t</div>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t<!-- /.filter-form -->
\t<div class=\"content\">
\t\t<div class=\"container\">
\t\t\t<h1 class=\"d-none\">My new carte</h1>
\t\t\t<div class=\"row containre-all-company\">
\t\t\t\t{% for company in companies %}
\t\t\t\t\t{% set mananaProdActive = filter_service.getOtherProductsCompany(company) %}
\t\t\t\t\t{# {% if mananaProdActive %} #}
\t\t\t\t\t\t{# {% for produite in company.products %}
\t\t\t\t\t\t\t{% if produite.isActivated %} #}
\t\t\t\t\t\t\t\t<div class=\"col-xl-4 col-lg-4 col-md-6 col-sm-6 col-12\">
\t\t\t\t\t\t\t\t\t<div class=\"container-block-companies\">
\t\t\t\t\t\t\t\t\t\t<div class=\"container-slide-image\">
\t\t\t\t\t\t\t\t\t\t\t{% if company.products is not empty %}
\t\t\t\t\t\t\t\t\t\t\t\t{% for product in filter_service.getOtherProductsCompany(company) %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if product.photos is not empty %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset(constant('App\\\\Services\\\\File::IMAGE_PRODUCT_DIR')) ~ product.photos.first.url }}\" alt=\"{{ product.name }}\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('images/vecteezy_vector-gear-logo-design-with-multi-colors-range_6172776.jpg') }}\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('images/vecteezy_vector-gear-logo-design-with-multi-colors-range_6172776.jpg') }}\" alt=\"default image\" class=\"img-fluid\" style=\"height: 213px;object-fit: cover; border-radius: .5rem .5rem 0 0;\">
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<div class=\"container-info-presta\">
\t\t\t\t\t\t\t\t\t\t\t<h2 class=\"vendor-title\">
\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_company_single', {'companySlug': company.companySlug, 'id': company.id}) }}\" class=\"title\">{{ company.companyName }}</a>
\t\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t\t\t<p>
\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{ company.products|length }}</strong>
\t\t\t\t\t\t\t\t\t\t\t\tService{% if company.products|length > 1 %}s
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t<p class=\"vendor-address\">
\t\t\t\t\t\t\t\t\t\t\t\t{% if company.category is not empty %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% for category in company.category %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"mr-2\">{{ category.name }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if not loop.last %},
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t\t\t\t<p class=\"vendor-address\">{{ company.city }}</p>
\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
\t\t\t\t\t\t\t\t\t\t\t<strong>
\t\t\t\t\t\t\t\t\t\t\t\t4,9</strong>
\t\t\t\t\t\t\t\t\t\t\tAvis
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_company_single', {'companySlug': company.companySlug, 'id': company.id}) }}\" class=\"title\">
\t\t\t\t\t\t\t\t\t\t\t<button class=\"btn btnVoirP\" >Voir plus</button>
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t\t<div class=\"wishlist-sign\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\" class=\"btn-wishlist\">
\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-heart\"></i>
\t\t\t\t\t\t\t\t\t\t\t</a>
\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</div>
\t\t\t\t\t\t\t{# {% endif %}
\t\t\t\t\t\t{% endfor %} #}
\t\t\t\t\t{# {% endif %} #}
\t\t\t\t{% endfor %}
\t\t\t</div>
\t\t\t{# <div class=\"row d-none\">
\t\t\t\t{% for company in companies %}
\t\t\t\t\t<div class=\"col-xl-4 col-lg-4 col-md-6 col-sm-6 col-12\">
\t\t\t\t\t\t<div class=\"vendor-thumbnail\">
\t\t\t\t\t\t\t<!-- Vendor thumbnail -->
\t\t\t\t\t\t\t<!-- Vendor img -->
\t\t\t\t\t\t\t\t<div class=\"row ml-0\" style=\"width:100%\"> {% for product in filter_service.getOtherProductsCompany(company) %}
\t\t\t\t\t\t\t\t\t<div class=\"vendor-img zoomimg\" style=\"width:33%;{% if not loop.index %}border-left:2px solid white{% endif %}\">
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_product_single', {'slug': product.subCategories[0].categories[0].slug, 'subCategorySlug': product.subCategories[0].subCategorySlug, 'product_id': product.id, 'productSlug': product.productSlug}) }}\">
\t\t\t\t\t\t\t\t\t\t\t{% if product.photos is not empty %}<img src=\"{{ asset(constant('App\\\\Services\\\\File::IMAGE_PRODUCT_DIR')) ~ product.photos.first.url }}\" alt=\"{{ product.name }}\" class=\"img-fluid\" style=\"height: 113px;object-fit: cover;\">
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<!-- /.Vendor img -->
\t\t\t\t\t\t\t<div
\t\t\t\t\t\t\t\tclass=\"vendor-content\">
\t\t\t\t\t\t\t\t<!-- Vendor Content -->
\t\t\t\t\t\t\t\t<h2 class=\"vendor-title\">
\t\t\t\t\t\t\t\t\t<a href=\"{{ path('front_company_single', {'companySlug': company.companySlug, 'id': company.id}) }}\" class=\"title\">{{ company.companyName }}</a>
\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t<p class=\"vendor-address\">
\t\t\t\t\t\t\t\t\t{% if company.category is not empty %}
\t\t\t\t\t\t\t\t\t\t{% for category in company.category %}
\t\t\t\t\t\t\t\t\t\t\t<span class=\"mr-2\">{{ category.name }}
\t\t\t\t\t\t\t\t\t\t\t\t{% if not loop.last %},
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</p>
\t\t\t\t\t\t\t\t<p class=\"vendor-address\">{{ company.city }}</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"vendor-meta\">
\t\t\t\t\t\t\t\t<div class=\"vendor-meta-item vendor-meta-item-bordered\">
\t\t\t\t\t\t\t\t\t<span class=\"vendor-price\">
\t\t\t\t\t\t\t\t\t\t{{ company.products|length }}
\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t<span class=\"vendor-text\">Service
\t\t\t\t\t\t\t\t\t\t{% if company.products|length > 1 %}s
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"vendor-meta-item vendor-meta-item-bordered\">
\t\t\t\t\t\t\t\t\t<span class=\"vendor-guest\"></span>
\t\t\t\t\t\t\t\t\t<span class=\"vendor-text\"></span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"vendor-meta-item vendor-meta-item-bordered\">
\t\t\t\t\t\t\t\t\t<span class=\"rating-star\">
\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rated\"></i>
\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-star rate-mute\"></i>
\t\t\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t\t\t\t<span class=\"rating-count vendor-text\">(20)</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<!-- /.Vendor Content -->
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<!-- /.Vendor thumbnail -->
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t</div> #}
\t\t\t<div class=\"pagination mt-5\">
\t\t\t\t<nav aria-label=\"Page navigation example\">
\t\t\t\t\t{{ knp_pagination_render(companies) }}
\t\t\t\t</nav>
\t\t\t</div>
\t\t</div>
\t</div>
{% endblock %}
", "front/company/list.html.twig", "/var/www/vhosts/hobbiinn.com/httpdocs/providdersvacance/templates/front/company/list.html.twig");
}
}