<?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/index.html.twig */
class __TwigTemplate_67a5f7f89d28f093176b6a99c43fae9e 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/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", "ecom/index.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "ecom/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 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 home-banner-holder\">
<div class=\"row\">
<div class=\"col-lg-5 ps-4 mb-4\">
<p class=\"fs-5\">";
// line 6
yield 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.', 6, $this->source); })()), "textcontent", ["home_header_text"], "method", false, false, false, 6);
yield "</p>
";
// line 7
yield 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.', 7, $this->source); })()), "textcontent", ["home_header_heading"], "method", false, false, false, 7);
yield "
</div>
<div class=\"col-lg-6 offset-lg-1\">
<h6>Most Popular Cities</h6>
<ul class=\"list-unstyled list-inline pb-4\">
";
// line 12
$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.', 12, $this->source); })()), "cities", [], "method", false, false, false, 12));
foreach ($context['_seq'] as $context["k"] => $context["c"]) {
// line 13
yield " ";
if (($context["k"] < 10)) {
// line 14
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sajong_ecom_city_brands", ["city" => CoreExtension::getAttribute($this->env, $this->source, $context["c"], "name", [], "any", false, false, false, 14)]), "html", null, true);
yield "\">
<li class=\"bg-white rounded-pill px-3 py-3 list-inline-item fw-semibold border-bottom me-3 mt-3\">";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["c"], "name", [], "any", false, false, false, 15), "html", null, true);
yield "</li>
</a>
";
}
// line 18
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['k'], $context['c'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
yield " </ul>
<form>
<div class=\"row\">
<div class=\"col-md-6 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 for your City or Brand\">
</div>
<div class=\"col-md-6\">
<select class=\"home-select form-select rounded-pill py-3 px-3 bg-secondary text-white border-secondary shadow-none\" id=\"citydropdown\" onchange=\"city_select(this)\">
<option selected>Select a City</option>
";
// line 28
$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.', 28, $this->source); })()), "cities", [], "method", false, false, false, 28));
foreach ($context['_seq'] as $context["_key"] => $context["c"]) {
// line 29
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["c"], "id", [], "any", false, false, false, 29), "html", null, true);
yield "\" ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["c"], "name", [], "any", false, false, false, 29) == 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.', 29, $this->source); })()), "session", [], "any", false, false, false, 29), "get", ["mycity"], "method", false, false, false, 29))) {
yield "selected";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["c"], "name", [], "any", false, false, false, 29), "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 31
yield " </select>
</div>
</div>
</form>
</div>
</div>
</div>
<div class=\"container-fluid px-5\">
<div class=\"home-img\"><img src=\"";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/contents/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 39, $this->source); })()), "imagecontent", ["home_top_banner"], "method", false, false, false, 39), "images", [], "any", false, false, false, 39), 0, [], "array", false, false, false, 39), "image", [], "any", false, false, false, 39))), "html", null, true);
yield "\" class=\"img-fluid\" alt=\"\"></div>
</div>
<div class=\"container-fluid px-5 hm-slogan\">
<div class=\"row\">
<div class=\"col-lg-6 offset-lg-1 fs-4 \">
<div class=\"border-start border-primary border-3 ps-4\"><span class=\"fw-semibold\">";
// line 44
yield 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.', 44, $this->source); })()), "textcontent", ["home_banner_text"], "method", false, false, false, 44);
yield "</div>
</div>
</div>
</div>
<div class=\"container-fluid px-5\">
<div class=\"row mt-5 pt-5 pb-4\">
<div class=\"col-lg-12\">
<h4 class=\"fw-semibold\">Popular Brands / Shops</h4>
</div>
";
// line 53
$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.', 53, $this->source); })()), "brands", [], "method", false, false, false, 53));
foreach ($context['_seq'] as $context["_key"] => $context["b"]) {
// line 54
yield " <div class=\"col-lg-4 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, 54) . "_") . CoreExtension::getAttribute($this->env, $this->source, $context["b"], "id", [], "any", false, false, false, 54))]), "html", null, true);
yield "\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"";
// line 55
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, 55))), "html", null, true);
yield "\" alt=\"\" class=\"img-fluid\"> </div>
<h5 class=\"fw-bold mt-3 mb-4\">";
// line 56
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["b"], "title", [], "any", false, false, false, 56), "html", null, true);
yield "<p class=\"\"><small class=\"text-primary\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 56, $this->source); })()), "brandcity", [CoreExtension::getAttribute($this->env, $this->source, $context["b"], "city", [], "any", false, false, false, 56)], "method", false, false, false, 56), "name", [], "any", false, false, false, 56), "html", null, true);
yield ", ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 56, $this->source); })()), "brandcity", [CoreExtension::getAttribute($this->env, $this->source, $context["b"], "city", [], "any", false, false, false, 56)], "method", false, false, false, 56), "state", [], "any", false, false, false, 56), "html", null, true);
yield "</small></p></h5>
</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 60
yield " </div>
<div class=\"row mt-5\">
<div class=\"col-md-12 text-center\"> <a href=\"";
// line 62
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sajong_ecom_brand_request");
yield "\" class=\"bg-secondary text-white px-4 py-4 rounded-pill\">Request a Brand</a> </div>
</div>
</div>
<div class=\"container mt-5 pt-5\">
<div class=\"row\">
<div class=\"col-lg-4 mt-2 mb-4 offset-lg-1\">
<h2 class=\"fw-bold mb-4\">";
// line 68
yield 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.', 68, $this->source); })()), "textcontent", ["home_about_heading"], "method", false, false, false, 68);
yield "</h2>
<p class=\"mb-5 fs-5\">";
// line 69
yield 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.', 69, $this->source); })()), "textcontent", ["home_about_text"], "method", false, false, false, 69);
yield "</p>
<a href=\"";
// line 70
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sajong_ecom_about");
yield "\" class=\"bg-secondary text-white px-4 py-4 rounded-pill d-inline-block\">Read our story</a> </div>
<div class=\"col-lg-6\"><img src=\"";
// line 71
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/contents/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 71, $this->source); })()), "imagecontent", ["home_about_image"], "method", false, false, false, 71), "images", [], "any", false, false, false, 71), 0, [], "array", false, false, false, 71), "image", [], "any", false, false, false, 71))), "html", null, true);
yield "\" class=\"img-fluid\" alt=\"\"></div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "ecom/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 222 => 71, 218 => 70, 214 => 69, 210 => 68, 201 => 62, 197 => 60, 183 => 56, 179 => 55, 174 => 54, 170 => 53, 158 => 44, 150 => 39, 140 => 31, 125 => 29, 121 => 28, 110 => 19, 104 => 18, 98 => 15, 93 => 14, 90 => 13, 86 => 12, 78 => 7, 74 => 6, 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 home-banner-holder\">
<div class=\"row\">
<div class=\"col-lg-5 ps-4 mb-4\">
<p class=\"fs-5\">{{ ecomvariables.textcontent('home_header_text')|raw()\t}}</p>
{{ ecomvariables.textcontent('home_header_heading')|raw()\t}}
</div>
<div class=\"col-lg-6 offset-lg-1\">
<h6>Most Popular Cities</h6>
<ul class=\"list-unstyled list-inline pb-4\">
{% for k, c in ecomvariables.cities() %}
{% if k<10 %}
<a href=\"{{ path('sajong_ecom_city_brands', {'city': c.name }) }}\">
<li class=\"bg-white rounded-pill px-3 py-3 list-inline-item fw-semibold border-bottom me-3 mt-3\">{{ c.name }}</li>
</a>
{% endif %}
{% endfor %}
</ul>
<form>
<div class=\"row\">
<div class=\"col-md-6 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 for your City or Brand\">
</div>
<div class=\"col-md-6\">
<select class=\"home-select form-select rounded-pill py-3 px-3 bg-secondary text-white border-secondary shadow-none\" 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>
</form>
</div>
</div>
</div>
<div class=\"container-fluid px-5\">
<div class=\"home-img\"><img src=\"{{ asset('uploads/contents/' ~ ecomvariables.imagecontent('home_top_banner').images[0].image)\t}}\" class=\"img-fluid\" alt=\"\"></div>
</div>
<div class=\"container-fluid px-5 hm-slogan\">
<div class=\"row\">
<div class=\"col-lg-6 offset-lg-1 fs-4 \">
<div class=\"border-start border-primary border-3 ps-4\"><span class=\"fw-semibold\">{{ ecomvariables.textcontent('home_banner_text')|raw()\t}}</div>
</div>
</div>
</div>
<div class=\"container-fluid px-5\">
<div class=\"row mt-5 pt-5 pb-4\">
<div class=\"col-lg-12\">
<h4 class=\"fw-semibold\">Popular Brands / Shops</h4>
</div>
{% for b in ecomvariables.brands() %}
<div class=\"col-lg-4 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>
<h5 class=\"fw-bold mt-3 mb-4\">{{ b.title }}<p class=\"\"><small class=\"text-primary\">{{ ecomvariables.brandcity(b.city).name }}, {{ecomvariables.brandcity(b.city).state }}</small></p></h5>
</a>
</div>
{% endfor %}
</div>
<div class=\"row mt-5\">
<div class=\"col-md-12 text-center\"> <a href=\"{{ path('sajong_ecom_brand_request') }}\" class=\"bg-secondary text-white px-4 py-4 rounded-pill\">Request a Brand</a> </div>
</div>
</div>
<div class=\"container mt-5 pt-5\">
<div class=\"row\">
<div class=\"col-lg-4 mt-2 mb-4 offset-lg-1\">
<h2 class=\"fw-bold mb-4\">{{ ecomvariables.textcontent('home_about_heading')|raw()\t}}</h2>
<p class=\"mb-5 fs-5\">{{ ecomvariables.textcontent('home_about_text')|raw()\t}}</p>
<a href=\"{{ path('sajong_ecom_about') }}\" class=\"bg-secondary text-white px-4 py-4 rounded-pill d-inline-block\">Read our story</a> </div>
<div class=\"col-lg-6\"><img src=\"{{ asset('uploads/contents/' ~ ecomvariables.imagecontent('home_about_image').images[0].image)\t}}\" class=\"img-fluid\" alt=\"\"></div>
</div>
</div>
{% endblock %}", "ecom/index.html.twig", "/var/www/commerce8/noble_natives/templates/ecom/index.html.twig");
}
}