<?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;
/* ecom/citybrands.html.twig */
class __TwigTemplate_57d0394782b688b69c6e1530996284ef extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.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", "ecom/citybrands.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ecom/citybrands.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "ecom/citybrands.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 2
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 3
yield " <div class=\"container-fluid main-holder px-5 bg-light\">
<div class=\"row\">
<div class=\"col-lg-3\">
<select class=\"form-select rounded-pill py-3 px-3 shadow-none border-0 fs-5 bg-transparent fw-bold mb-3\" id=\"citydropdown\" onchange=\"city_select(this)\">
<option selected>Select a City</option>
";
// line 8
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["ecomvariables"]) || array_key_exists("ecomvariables", $context) ? $context["ecomvariables"] : (function () { throw new RuntimeError('Variable "ecomvariables" does not exist.', 8, $this->source); })()), "cities", [], "method", false, false, false, 8));
foreach ($context['_seq'] as $context["_key"] => $context["c"]) {
// line 9
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["c"], "id", [], "any", false, false, false, 9), "html", null, true);
yield "\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["c"], "name", [], "any", false, false, false, 9) == 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.', 9, $this->source); })()), "session", [], "any", false, false, false, 9), "get", ["mycity"], "method", false, false, false, 9))) {
yield "selected";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["c"], "name", [], "any", false, false, false, 9), "html", null, true);
yield "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['c'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 11
yield " </select>
</div>
<div class=\"col-lg-4 position-relative mb-3\"> <i data-feather=\"search\" class=\"iconsize position-absolute search-icon\"></i>
<input class=\"form-control border rounded-pill py-3 px-3 ps-5 shadow-none\" type=\"text\" id=\"\" placeholder=\"Search\">
</div>
</div>
</div>
<div class=\"container-fluid px-5 mt-5\">
<div class=\"row\">
<div class=\"col-lg-12\">
<h1 class=\"fw-bolder\">";
// line 21
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 21, $this->source); })()), "name", [], "any", false, false, false, 21), "html", null, true);
yield " Brands</h1>
<h6>";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["city"]) || array_key_exists("city", $context) ? $context["city"] : (function () { throw new RuntimeError('Variable "city" does not exist.', 22, $this->source); })()), "name", [], "any", false, false, false, 22), "html", null, true);
yield " Current Favourite Brands</h6>
</div>
</div>
<div class=\"row\">
";
// line 26
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["brands"]) || array_key_exists("brands", $context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.', 26, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["b"]) {
// line 27
yield " <div class=\"col-lg-3 mt-4\"> <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sajong_ecom_brand_categories", ["brand" => ((CoreExtension::getAttribute($this->env, $this->source, $context["b"], "title", [], "any", false, false, false, 27) . "_") . CoreExtension::getAttribute($this->env, $this->source, $context["b"], "id", [], "any", false, false, false, 27))]), "html", null, true);
yield "\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/brand/" . CoreExtension::getAttribute($this->env, $this->source, $context["b"], "image", [], "any", false, false, false, 28))), "html", null, true);
yield "\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mt-3 mb-4\">";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["b"], "title", [], "any", false, false, false, 29), "html", null, true);
yield "</h6>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['b'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
yield " </div>
</div>
<div class=\"container-fluid px-5 bg-primary py-4 mt-4\">
<div class=\"row\">
<div class=\"col-md-4 position-relative mb-3 \"> <i data-feather=\"search\" class=\"iconsize position-absolute search-icon\"></i>
<input class=\"form-control border rounded-pill py-3 px-3 ps-5 shadow-none\" type=\"text\" id=\"\" placeholder=\"Search\">
</div>
<div class=\"col-lg-6 pt-3 pb-3\"> <a href=\"#0\" class=\"bg-secondary text-white px-4 py-4 rounded-pill me-3\">View All Brands</a> <a href=\"#0\" class=\"bg-secondary text-white px-4 py-4 rounded-pill\">Request a Brand</a> </div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "ecom/citybrands.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 141 => 33, 131 => 29, 127 => 28, 122 => 27, 118 => 26, 111 => 22, 107 => 21, 95 => 11, 80 => 9, 76 => 8, 69 => 3, 59 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
<div class=\"container-fluid main-holder px-5 bg-light\">
<div class=\"row\">
<div class=\"col-lg-3\">
<select class=\"form-select rounded-pill py-3 px-3 shadow-none border-0 fs-5 bg-transparent fw-bold mb-3\" id=\"citydropdown\" onchange=\"city_select(this)\">
<option selected>Select a City</option>
{% for c in ecomvariables.cities() %}
<option value=\"{{ c.id }}\" {% if (c.name == app.session.get('mycity')) %}selected{% endif %}>{{ c.name }}</option>
{% endfor %}
</select>
</div>
<div class=\"col-lg-4 position-relative mb-3\"> <i data-feather=\"search\" class=\"iconsize position-absolute search-icon\"></i>
<input class=\"form-control border rounded-pill py-3 px-3 ps-5 shadow-none\" type=\"text\" id=\"\" placeholder=\"Search\">
</div>
</div>
</div>
<div class=\"container-fluid px-5 mt-5\">
<div class=\"row\">
<div class=\"col-lg-12\">
<h1 class=\"fw-bolder\">{{ city.name }} Brands</h1>
<h6>{{ city.name }} Current Favourite Brands</h6>
</div>
</div>
<div class=\"row\">
{% for b in brands %}
<div class=\"col-lg-3 mt-4\"> <a href=\"{{ path('sajong_ecom_brand_categories', {'brand':b.title~'_'~b.id }) }}\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"{{ asset('uploads/brand/' ~ b.image) }}\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mt-3 mb-4\">{{ b.title }}</h6>
</a>
</div>
{% endfor %}
</div>
</div>
<div class=\"container-fluid px-5 bg-primary py-4 mt-4\">
<div class=\"row\">
<div class=\"col-md-4 position-relative mb-3 \"> <i data-feather=\"search\" class=\"iconsize position-absolute search-icon\"></i>
<input class=\"form-control border rounded-pill py-3 px-3 ps-5 shadow-none\" type=\"text\" id=\"\" placeholder=\"Search\">
</div>
<div class=\"col-lg-6 pt-3 pb-3\"> <a href=\"#0\" class=\"bg-secondary text-white px-4 py-4 rounded-pill me-3\">View All Brands</a> <a href=\"#0\" class=\"bg-secondary text-white px-4 py-4 rounded-pill\">Request a Brand</a> </div>
</div>
</div>
{% endblock %}", "ecom/citybrands.html.twig", "/var/www/commerce8/noble_natives/templates/ecom/citybrands.html.twig");
}
}