<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* parts/services.twig */
class __TwigTemplate_58099f9a5a3f19bea656a3794efd5e14 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<section class=\"c-services u-mb-md\">
    <header class=\"c-section-hdr c-section-hdr--sb u-gutters\">
        <h2 class=\"u-h-bul\">";
        // line 3
        echo ($context["heading"] ?? null);
        echo "</h2>
        <div class=\"c-select-nav u-visible-desktop\">
            <div class=\"c-select-nav__action\">
                <div class=\"c-select-nav__holder u-select\">Choose...</div>
                <nav class=\"c-select-nav__menu \">
                    <ul class=\"c-select-nav__list u-list-reset\">
                        ";
        // line 9
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["menu"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 10
            echo "                            <li><button class=\"c-select-nav__link u-btn-reset\" title=\"";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 10), "title", [], "any", false, false, false, 10), "html", null, true);
            echo "\" data-url-loc=\"";
            echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 10), "url", [], "any", false, false, false, 10);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 10), "title", [], "any", false, false, false, 10);
            echo "</button></li>
                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 12
        echo "                    </ul>
                </nav>
            </div>
            <div><button  data-href=\"\" class=\"c-select-nav__go c-btn u-btn-reset\">Let's go!</button></div>
        </div>

        <div class=\"u-visible-tablet u-w-40\">
            <select class=\"u-select-go u-select-field\">
                ";
        // line 20
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["menu"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 21
            echo "                    <option value=\"";
            echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 21), "url", [], "any", false, false, false, 21);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 21), "title", [], "any", false, false, false, 21);
            echo "</option>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 23
        echo "            </select>
        </div>
        
    </header>

    <div class=\"c-services__grid u-gutters\">
        ";
        // line 29
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["grid"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 30
            echo "            ";
            if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "logo", [], "any", false, false, false, 30), "id", [], "any", false, false, false, 30)) {
                // line 31
                echo "                <div class=\"c-services__grid-item\">
                    ";
                // line 32
                $context["logo"] = twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "get_attached_file", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "logo", [], "any", false, false, false, 32), "id", [], "any", false, false, false, 32)], "method", false, false, false, 32);
                // line 33
                echo "                    <div>";
                echo twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "file_get_contents", [($context["logo"] ?? null)], "method", false, false, false, 33);
                echo "</div>
                </div>
            ";
            }
            // line 36
            echo "        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 37
        echo "    </div>

    <div class=\"c-services__cta u-visible-mobile u-gutters\">
        <select class=\"u-select-go u-select-field\">
            ";
        // line 41
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["menu"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 42
            echo "                <option value=\"";
            echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 42), "url", [], "any", false, false, false, 42);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "link", [], "any", false, false, false, 42), "title", [], "any", false, false, false, 42);
            echo "</option>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 44
        echo "        </select>
    </div>
</section>";
    }

    public function getTemplateName()
    {
        return "parts/services.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  146 => 44,  135 => 42,  131 => 41,  125 => 37,  119 => 36,  112 => 33,  110 => 32,  107 => 31,  104 => 30,  100 => 29,  92 => 23,  81 => 21,  77 => 20,  67 => 12,  54 => 10,  50 => 9,  41 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<section class=\"c-services u-mb-md\">
    <header class=\"c-section-hdr c-section-hdr--sb u-gutters\">
        <h2 class=\"u-h-bul\">{{ heading|raw }}</h2>
        <div class=\"c-select-nav u-visible-desktop\">
            <div class=\"c-select-nav__action\">
                <div class=\"c-select-nav__holder u-select\">Choose...</div>
                <nav class=\"c-select-nav__menu \">
                    <ul class=\"c-select-nav__list u-list-reset\">
                        {% for item in menu %}
                            <li><button class=\"c-select-nav__link u-btn-reset\" title=\"{{ item.link.title }}\" data-url-loc=\"{{ item.link.url|raw }}\">{{ item.link.title|raw }}</button></li>
                        {% endfor %}
                    </ul>
                </nav>
            </div>
            <div><button  data-href=\"\" class=\"c-select-nav__go c-btn u-btn-reset\">Let's go!</button></div>
        </div>

        <div class=\"u-visible-tablet u-w-40\">
            <select class=\"u-select-go u-select-field\">
                {% for item in menu %}
                    <option value=\"{{ item.link.url|raw }}\">{{ item.link.title|raw }}</option>
                {% endfor %}
            </select>
        </div>
        
    </header>

    <div class=\"c-services__grid u-gutters\">
        {% for item in grid %}
            {% if item.logo.id %}
                <div class=\"c-services__grid-item\">
                    {% set logo = fn.get_attached_file(item.logo.id) %}
                    <div>{{ fn.file_get_contents(logo)|raw }}</div>
                </div>
            {% endif %}
        {% endfor %}
    </div>

    <div class=\"c-services__cta u-visible-mobile u-gutters\">
        <select class=\"u-select-go u-select-field\">
            {% for item in menu %}
                <option value=\"{{ item.link.url|raw }}\">{{ item.link.title|raw }}</option>
            {% endfor %}
        </select>
    </div>
</section>", "parts/services.twig", "/var/www/htdocs/content/themes/blank-theory/views/parts/services.twig");
    }
}
