<?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;

/* invoice/renderer/xml.xml.twig */
class __TwigTemplate_c44dd4a18f09286cbc4c209472dad1278fa0a36abf371d1782abf995d16345fc 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 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<kimai version=\"";
        // line 2
        echo twig_escape_filter($this->env, twig_constant("App\\Constants::VERSION"), "html", null, true);
        echo "\">
";
        // line 3
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["model"] ?? null), "toArray", [], "any", false, false, false, 3));
        foreach ($context['_seq'] as $context["key"] => $context["value"]) {
            // line 4
            echo "    <";
            echo twig_escape_filter($this->env, $context["key"], "html", null, true);
            if (twig_test_empty($context["value"])) {
                echo "/>";
            } else {
                echo ">";
                echo twig_escape_filter($this->env, $context["value"]);
                echo "</";
                echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                echo ">";
            }
            // line 5
            echo "
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 7
        echo "    <items>";
        // line 8
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["model"] ?? null), "calculator", [], "any", false, false, false, 8), "entries", [], "any", false, false, false, 8));
        foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
            // line 9
            echo "
        <item>
";
            // line 11
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["model"] ?? null), "itemToArray", [0 => $context["entry"]], "method", false, false, false, 11));
            foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                // line 12
                echo "            <";
                echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                if (twig_test_empty($context["value"])) {
                    echo "/>";
                } else {
                    echo ">";
                    echo twig_escape_filter($this->env, $context["value"]);
                    echo "</";
                    echo twig_escape_filter($this->env, $context["key"], "html", null, true);
                    echo ">";
                }
                // line 13
                echo "
";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 15
            echo "        </item>";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 17
        echo "
    </items>
</kimai>";
    }

    public function getTemplateName()
    {
        return "invoice/renderer/xml.xml.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  106 => 17,  100 => 15,  93 => 13,  81 => 12,  77 => 11,  73 => 9,  69 => 8,  67 => 7,  60 => 5,  48 => 4,  44 => 3,  40 => 2,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "invoice/renderer/xml.xml.twig", "/var/www/html/kimai2/templates/invoice/renderer/xml.xml.twig");
    }
}
