<?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/store.html.twig */
class __TwigTemplate_9d71a1fcaa20d7ad8be34d59ba8359d8 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/store.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/store.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "ecom/store.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=\"\">
<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 "\">";
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>
</div>
<div class=\"container-fluid px-5 mt-5\">
<div class=\"row\">
<div class=\"col-lg-12\">
<h1 class=\"fw-bolder\">Nick Tahoes <span class=\"small\">/ Men’s Apparel</span></h1>
<h6>Explore Nick Tahoes products</h6>
</div>
</div>
<div class=\"row pb-4\">
";
// line 23
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 23, $this->source); })()));
foreach ($context['_seq'] as $context["k"] => $context["product"]) {
// line 24
yield " ";
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "path", [], "any", false, false, false, 24))) {
// line 25
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_product_details", ["path" => CoreExtension::getAttribute($this->env, $this->source, $context["product"], "path", [], "any", false, false, false, 25)]), "html", null, true);
yield "\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "image", [], "any", false, false, false, 26)), "html", null, true);
yield "\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "title", [], "any", false, false, false, 27), "html", null, true);
yield "</h6>
<h6 class=\"fw-bold mb-4\">\$ ";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "price", [], "any", false, false, false, 28) / 100), 2), "html", null, true);
yield "</h6>
</a>
</div>
";
}
// line 32
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['k'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
yield " <div class=\"col-lg-3 mt-4\"> <a href=\"#\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt1.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a>
</div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt2.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt3.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt4.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
\t\t<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt1.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt2.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt3.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt4.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
\t\t<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt1.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt2.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt3.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt4.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
</div>
\t <div class=\"row mb-5\">
<div class=\"col-md-12 text-center mb-2\"> <button type=\"button\" class=\"btn bg-secondary text-white px-4 py-3 rounded-pill\">Load More</button> </div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "ecom/store.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 138 => 33, 132 => 32, 125 => 28, 121 => 27, 117 => 26, 112 => 25, 109 => 24, 105 => 23, 91 => 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=\"\">
<option selected>Select a City</option>
{% for c in ecomvariables.cities() %}
<option value=\"{{ c.id }}\">{{ c.name }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
<div class=\"container-fluid px-5 mt-5\">
<div class=\"row\">
<div class=\"col-lg-12\">
<h1 class=\"fw-bolder\">Nick Tahoes <span class=\"small\">/ Men’s Apparel</span></h1>
<h6>Explore Nick Tahoes products</h6>
</div>
</div>
<div class=\"row pb-4\">
{% for k, product in products %}
{% if product.path is not empty %}
<div class=\"col-lg-3 mt-4\"> <a href=\"{{ path('sajong_ecom_product_details', {'path':product.path })}}\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"{{ asset(product.image) }}\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">{{ product.title }}</h6>
<h6 class=\"fw-bold mb-4\">\$ {{ (product.price/100)|number_format(2) }}</h6>
</a>
</div>
{% endif %}
{% endfor %}
<div class=\"col-lg-3 mt-4\"> <a href=\"#\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt1.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a>
</div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt2.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt3.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt4.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
\t\t<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt1.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt2.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt3.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt4.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
\t\t<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt1.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt2.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt3.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
<div class=\"col-lg-3 mt-4\"> <a href=\"#0\">
<div class=\"card border-0 rounded-5 p-0 overflow-hidden shadow-sm\"> <img src=\"img/pdt4.jpg\" alt=\"\" class=\"img-fluid\"> </div>
<h6 class=\"fw-bold mb-3 mt-3\">Lorem ipsum</h6>
\t\t<h6 class=\"fw-bold mb-4\">\$55.00</h6>
</a> </div>
</div>
\t <div class=\"row mb-5\">
<div class=\"col-md-12 text-center mb-2\"> <button type=\"button\" class=\"btn bg-secondary text-white px-4 py-3 rounded-pill\">Load More</button> </div>
</div>
</div>
{% endblock %}", "ecom/store.html.twig", "/var/www/commerce8/noble_natives/templates/ecom/store.html.twig");
}
}