<?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/text.txt.twig */
class __TwigTemplate_09137104d4ecd875dfc9c5ee79e25c1193b7371cbe242390aa5e9654e380a21c 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
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["model"] ?? null), "toArray", [], "any", false, false, false, 1));
        foreach ($context['_seq'] as $context["key"] => $context["value"]) {
            // line 2
            echo $context["key"];
            echo "
";
            // line 3
            if ( !twig_test_empty($context["value"])) {
                // line 4
                echo $this->extensions['App\Twig\Extensions']->multilineIndent($context["value"], "\t");
                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
        $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, 7), "entries", [], "any", false, false, false, 7));
        foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
            // line 8
            echo "---
";
            // line 9
            $context["items"] = twig_get_attribute($this->env, $this->source, ($context["model"] ?? null), "itemToArray", [0 => $context["entry"]], "method", false, false, false, 9);
            // line 10
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["items"] ?? null));
            foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                // line 11
                echo $context["key"];
                echo "
";
                // line 12
                if ( !twig_test_empty($context["value"])) {
                    // line 13
                    echo $this->extensions['App\Twig\Extensions']->multilineIndent($context["value"], "\t");
                    echo "
";
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  75 => 13,  73 => 12,  69 => 11,  65 => 10,  63 => 9,  60 => 8,  56 => 7,  47 => 4,  45 => 3,  41 => 2,  37 => 1,);
    }

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