<?php

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

/* layouts/breadcrumb.twig */
class __TwigTemplate_d74710f1ccd006597b10a5f61658f9077954fd4075e0895761abde60c835a03b extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        echo "            <ol class=\"breadcrumb\">
                <li class=\"breadcrumb-item\"><a href=\"/\" class=\"changeText\"><span>主頁</span></a></li>
                ";
        // line 3
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["breadcrumbs"]) ? $context["breadcrumbs"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
            // line 4
            echo "                <li class=\"breadcrumb-item\">
                    ";
            // line 5
            if (($this->getAttribute($context["breadcrumb"], "link", []) == "")) {
                // line 6
                echo "                        <a class=\"disabled changeText\"><span>";
                echo twig_escape_filter($this->env, $this->getAttribute($context["breadcrumb"], "label", []), "html", null, true);
                echo "</span></a>
                    ";
            } else {
                // line 8
                echo "                        <a class=\"changeText\" href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["breadcrumb"], "link", []), "html", null, true);
                echo "\"><span>";
                echo twig_escape_filter($this->env, $this->getAttribute($context["breadcrumb"], "label", []), "html", null, true);
                echo "</span></a>
                    ";
            }
            // line 10
            echo "                </li>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 12
        echo "            </ol>
";
    }

    public function getTemplateName()
    {
        return "layouts/breadcrumb.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  64 => 12,  57 => 10,  49 => 8,  43 => 6,  41 => 5,  38 => 4,  34 => 3,  30 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("            <ol class=\"breadcrumb\">
                <li class=\"breadcrumb-item\"><a href=\"/\" class=\"changeText\"><span>主頁</span></a></li>
                {% for breadcrumb in breadcrumbs %}
                <li class=\"breadcrumb-item\">
                    {% if breadcrumb.link == '' %}
                        <a class=\"disabled changeText\"><span>{{ breadcrumb.label }}</span></a>
                    {% else %}
                        <a class=\"changeText\" href=\"{{ breadcrumb.link }}\"><span>{{ breadcrumb.label }}</span></a>
                    {% endif %}
                </li>
                {% endfor %}
            </ol>
", "layouts/breadcrumb.twig", "/home/artechsy/public_html/vision.artech-system.com/application/views/layouts/breadcrumb.twig");
    }
}
