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

/* export/pdf-layout.html.twig */
class __TwigTemplate_3363085b3dc7c305de852dba39f468fd8362e8f6e90fa5c83025609a6bbebaf8 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
            'styles' => [$this, 'block_styles'],
            'pdf_footer' => [$this, 'block_pdf_footer'],
            'summary' => [$this, 'block_summary'],
            'items' => [$this, 'block_items'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        $context["showUserColumn"] = (($context["showUserColumn"]) ?? (true));
        // line 2
        $context["showInternalRate"] = (($context["showInternalRate"]) ?? (false));
        // line 3
        $context["showRateColumn"] = (($context["showRateColumn"]) ?? (true));
        // line 4
        $context["showRateBudget"] = (($context["showRateBudget"]) ?? (false));
        // line 5
        $context["showTimeBudget"] = (($context["showTimeBudget"]) ?? (false));
        // line 6
        $context["decimal"] = (($context["decimal"]) ?? (false));
        // line 7
        if (twig_get_attribute($this->env, $this->source, ($context["query"] ?? null), "user", [], "any", false, false, false, 7)) {
            // line 8
            echo "    ";
            // line 9
            echo "    ";
            $context["showUserColumn"] = false;
            // line 10
            echo "    ";
            // line 11
            echo "    ";
            $context["showRateColumn"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("view_rate_own_timesheet");
        }
        // line 13
        echo "<html lang=\"";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 13), "locale", [], "any", false, false, false, 13), "html", null, true);
        echo "\">
<head>
    ";
        // line 15
        $this->displayBlock('styles', $context, $blocks);
        // line 74
        echo "</head>
<body>
";
        // line 76
        $this->displayBlock('pdf_footer', $context, $blocks);
        // line 101
        $this->displayBlock('summary', $context, $blocks);
        // line 218
        $this->displayBlock('items', $context, $blocks);
        // line 304
        echo "</body>
</html>
";
    }

    // line 15
    public function block_styles($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 16
        echo "    <style>
        body {
            font-family: sans-serif;
            font-size: 10pt;
            margin: 0;
            padding: 0;
        }
        p {
            margin: 0;
        }
        table.items {
            border: 0.1mm solid #000000;
            width: 100%;
            font-size: 9pt;
            border-collapse: collapse;
        }
        td, th {
            padding: 7px;
        }
        td {
            vertical-align: top;
        }
        .items td {
            border-left: 0.1mm solid #000000;
            border-right: 0.1mm solid #000000;
        }
        .items tr.even {
            background-color: #f5f5f5;
        }
        .items tr.summary {
            background-color: #efefef;
        }
        .items tr.summary td {
            font-weight: bold;
            border-top: 0.1mm solid #000000;
            border-bottom: 0.1mm solid #000000;
        }
        table thead th {
            background-color: #ececec;
            border: 0.1mm solid #000000;
            font-weight: bold;
            font-size: 10pt;
            text-align: left;
        }
        .items td.totals {
            font-weight: bold;
            border: 0.1mm solid #000000;
        }
        .items .center,
        .items td.duration,
        .items td.cost {
            text-align: center;
        }
        .text-nowrap {
            white-space: nowrap;
        }
    </style>
    ";
    }

    // line 76
    public function block_pdf_footer($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 77
        echo "<!--mpdf
<htmlpagefooter name=\"myfooter\">
<table style=\"border-top: 1px solid #000000; font-size: 9pt; padding-top: 3mm; width: 100%\">
<tr>
    <td align=\"left\">
    ";
        // line 82
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("export.page_of", ["%page%" => "{PAGENO}", "%pages%" => "{nb}"]), "html", null, true);
        echo "
    ";
        // line 83
        if (( !($context["showUserColumn"] ?? null) && twig_get_attribute($this->env, $this->source, ($context["query"] ?? null), "user", [], "any", false, false, false, 83))) {
            // line 84
            echo "        &ndash;
        ";
            // line 85
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.user"), "html", null, true);
            echo ": ";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["query"] ?? null), "user", [], "any", false, false, false, 85), "displayName", [], "any", false, false, false, 85), "html", null, true);
            echo " 
    ";
        }
        // line 87
        echo "    </td>
    <td align=\"right\">
    ";
        // line 89
        if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["kimai_context"] ?? null), "branding", [], "any", false, false, false, 89), "company", [], "any", false, false, false, 89))) {
            // line 90
            echo "        ";
            echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["kimai_context"] ?? null), "branding", [], "any", false, false, false, 90), "company", [], "any", false, false, false, 90);
            echo " &ndash; ";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateTimeFull(($context["now"] ?? null)), "html", null, true);
            echo "
    ";
        } else {
            // line 92
            echo "        ";
            echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("export.date_copyright", ["%date%" => $this->extensions['App\Twig\DateExtensions']->dateTimeFull(($context["now"] ?? null)), "%kimai%" => (((("<a href=\"" . twig_constant("App\\Constants::HOMEPAGE")) . "\">") . twig_constant("App\\Constants::SOFTWARE")) . "</a>")]);
            echo "
    ";
        }
        // line 94
        echo "    </td>
</tr>
</table>
</htmlpagefooter>
<sethtmlpagefooter name=\"myfooter\" value=\"on\" />
mpdf-->
";
    }

    // line 101
    public function block_summary($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 102
        echo "    <h2 style=\"margin-bottom: 0; padding-bottom: 0\">";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("export.document_title"), "html", null, true);
        echo "</h2>
    <p>
        ";
        // line 104
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("export.period"), "html", null, true);
        echo ":
        ";
        // line 105
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateShort(twig_get_attribute($this->env, $this->source, ($context["query"] ?? null), "begin", [], "any", false, false, false, 105)), "html", null, true);
        echo " - ";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateShort(twig_get_attribute($this->env, $this->source, ($context["query"] ?? null), "end", [], "any", false, false, false, 105)), "html", null, true);
        echo "
    </p>
    <h3>";
        // line 107
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("export.summary"), "html", null, true);
        echo "</h3>
    <table class=\"items\">
        <thead>
        <tr>
            <th>";
        // line 111
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.customer"), "html", null, true);
        echo "</th>
            <th>";
        // line 112
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.project"), "html", null, true);
        echo "</th>
            ";
        // line 113
        if (($context["showTimeBudget"] ?? null)) {
            // line 114
            echo "                <th class=\"center\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.timeBudget"), "html", null, true);
            echo "</th>
            ";
        }
        // line 116
        echo "            ";
        if (($context["showRateBudget"] ?? null)) {
            // line 117
            echo "                <th class=\"center\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.budget"), "html", null, true);
            echo "</th>
            ";
        }
        // line 119
        echo "            <th class=\"center\">";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.duration"), "html", null, true);
        echo "</th>
            ";
        // line 120
        if (($context["showRateColumn"] ?? null)) {
            // line 121
            echo "                ";
            if (($context["showInternalRate"] ?? null)) {
                // line 122
                echo "                    <th class=\"center\">";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.rate_internal"), "html", null, true);
                echo "</th>
                ";
            }
            // line 124
            echo "                <th class=\"center\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.rate"), "html", null, true);
            echo "</th>
            ";
        }
        // line 126
        echo "        </tr>
        </thead>
        <tbody>
        ";
        // line 129
        $context["customer"] = null;
        // line 130
        echo "        ";
        $context["customerDuration"] = 0;
        // line 131
        echo "        ";
        $context["customerRate"] = 0;
        // line 132
        echo "        ";
        $context["customerInternalRate"] = 0;
        // line 133
        echo "        ";
        $context["customerCurrency"] = null;
        // line 134
        echo "        ";
        $context["customerCount"] = 0;
        // line 135
        echo "        ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["summaries"] ?? null));
        foreach ($context['_seq'] as $context["id"] => $context["summary"]) {
            // line 136
            echo "            ";
            if ((($context["customer"] ?? null) === null)) {
                // line 137
                echo "                ";
                $context["customer"] = twig_get_attribute($this->env, $this->source, $context["summary"], "customer", [], "any", false, false, false, 137);
                // line 138
                echo "                ";
                $context["customerCurrency"] = twig_get_attribute($this->env, $this->source, $context["summary"], "currency", [], "any", false, false, false, 138);
                // line 139
                echo "            ";
            }
            // line 140
            echo "            ";
            if ( !(($context["customer"] ?? null) === twig_get_attribute($this->env, $this->source, $context["summary"], "customer", [], "any", false, false, false, 140))) {
                // line 141
                echo "                    <tr class=\"summary\">
                        <td colspan=\"2\">
                        </td>
                        ";
                // line 144
                if (($context["showTimeBudget"] ?? null)) {
                    // line 145
                    echo "                            <td></td>
                        ";
                }
                // line 147
                echo "                        ";
                if (($context["showRateBudget"] ?? null)) {
                    // line 148
                    echo "                            <td></td>
                        ";
                }
                // line 150
                echo "                        <td class=\"totals duration\">";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(($context["customerDuration"] ?? null), ($context["decimal"] ?? null)), "html", null, true);
                echo "</td>
                        ";
                // line 151
                if (($context["showRateColumn"] ?? null)) {
                    // line 152
                    echo "                            ";
                    if (($context["showInternalRate"] ?? null)) {
                        // line 153
                        echo "                                <td class=\"totals cost\">";
                        echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(($context["customerInternalRate"] ?? null), ($context["customerCurrency"] ?? null)), "html", null, true);
                        echo "</td>
                            ";
                    }
                    // line 155
                    echo "                            <td class=\"totals cost\">";
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(($context["customerRate"] ?? null), ($context["customerCurrency"] ?? null)), "html", null, true);
                    echo "</td>
                        ";
                }
                // line 157
                echo "                    </tr>
                ";
                // line 158
                $context["customerCurrency"] = twig_get_attribute($this->env, $this->source, $context["summary"], "currency", [], "any", false, false, false, 158);
                // line 159
                echo "                ";
                $context["customer"] = twig_get_attribute($this->env, $this->source, $context["summary"], "customer", [], "any", false, false, false, 159);
                // line 160
                echo "                ";
                $context["customerDuration"] = 0;
                // line 161
                echo "                ";
                $context["customerRate"] = 0;
                // line 162
                echo "                ";
                $context["customerInternalRate"] = 0;
                // line 163
                echo "                ";
                $context["customerCount"] = 0;
                // line 164
                echo "            ";
            }
            // line 165
            echo "            <tr class=\"";
            echo twig_escape_filter($this->env, twig_cycle([0 => "odd", 1 => "even"], ($context["customerCount"] ?? null)), "html", null, true);
            echo "\">
                <td>";
            // line 166
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["summary"], "customer", [], "any", false, false, false, 166), "html", null, true);
            echo "</td>
                <td>";
            // line 167
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["summary"], "project", [], "any", false, false, false, 167), "html", null, true);
            echo "</td>
                ";
            // line 168
            if (($context["showTimeBudget"] ?? null)) {
                // line 169
                echo "                    <td class=\"center\">
                        ";
                // line 170
                if ((twig_get_attribute($this->env, $this->source, ($context["budgets"] ?? null), $context["id"], [], "array", true, true, false, 170) && 1 === twig_compare(twig_get_attribute($this->env, $this->source, (($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["budgets"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4[$context["id"]] ?? null) : null), "time_left", [], "any", false, false, false, 170), 0))) {
                    // line 171
                    echo "                            ";
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, (($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = ($context["budgets"] ?? null)) && is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) || $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof ArrayAccess ? ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144[$context["id"]] ?? null) : null), "time_left", [], "any", false, false, false, 171), ($context["decimal"] ?? null)), "html", null, true);
                    echo "
                        ";
                }
                // line 173
                echo "                    </td>
                ";
            }
            // line 175
            echo "                ";
            if (($context["showRateBudget"] ?? null)) {
                // line 176
                echo "                    <td class=\"center\">
                        ";
                // line 177
                if ((twig_get_attribute($this->env, $this->source, ($context["budgets"] ?? null), $context["id"], [], "array", true, true, false, 177) && 1 === twig_compare(twig_get_attribute($this->env, $this->source, (($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = ($context["budgets"] ?? null)) && is_array($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b) || $__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b instanceof ArrayAccess ? ($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b[$context["id"]] ?? null) : null), "money_left", [], "any", false, false, false, 177), 0))) {
                    // line 178
                    echo "                            ";
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, (($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = ($context["budgets"] ?? null)) && is_array($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002) || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 instanceof ArrayAccess ? ($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002[$context["id"]] ?? null) : null), "money_left", [], "any", false, false, false, 178), twig_get_attribute($this->env, $this->source, $context["summary"], "currency", [], "any", false, false, false, 178)), "html", null, true);
                    echo "
                        ";
                }
                // line 180
                echo "                    </td>
                ";
            }
            // line 182
            echo "                <td class=\"duration\">";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, $context["summary"], "duration", [], "any", false, false, false, 182), ($context["decimal"] ?? null)), "html", null, true);
            echo "</td>
                ";
            // line 183
            if (($context["showRateColumn"] ?? null)) {
                // line 184
                echo "                    ";
                if (($context["showInternalRate"] ?? null)) {
                    // line 185
                    echo "                        <td class=\"cost\">";
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, $context["summary"], "rate_internal", [], "any", false, false, false, 185), twig_get_attribute($this->env, $this->source, $context["summary"], "currency", [], "any", false, false, false, 185)), "html", null, true);
                    echo "</td>
                    ";
                }
                // line 187
                echo "                    <td class=\"cost\">";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, $context["summary"], "rate", [], "any", false, false, false, 187), twig_get_attribute($this->env, $this->source, $context["summary"], "currency", [], "any", false, false, false, 187)), "html", null, true);
                echo "</td>
                ";
            }
            // line 189
            echo "            </tr>
            ";
            // line 190
            $context["customerDuration"] = (($context["customerDuration"] ?? null) + twig_get_attribute($this->env, $this->source, $context["summary"], "duration", [], "any", false, false, false, 190));
            // line 191
            echo "            ";
            $context["customerRate"] = (($context["customerRate"] ?? null) + twig_get_attribute($this->env, $this->source, $context["summary"], "rate", [], "any", false, false, false, 191));
            // line 192
            echo "            ";
            $context["customerInternalRate"] = (($context["customerInternalRate"] ?? null) + twig_get_attribute($this->env, $this->source, $context["summary"], "rate_internal", [], "any", false, false, false, 192));
            // line 193
            echo "            ";
            $context["customerCount"] = (($context["customerCount"] ?? null) + 1);
            // line 194
            echo "        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['id'], $context['summary'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 195
        echo "        ";
        if ( !(($context["customer"] ?? null) === null)) {
            // line 196
            echo "        <tr class=\"summary\">
            <td colspan=\"2\"></td>
            ";
            // line 198
            if (($context["showTimeBudget"] ?? null)) {
                // line 199
                echo "                <td></td>
            ";
            }
            // line 201
            echo "            ";
            if (($context["showRateBudget"] ?? null)) {
                // line 202
                echo "                <td></td>
            ";
            }
            // line 204
            echo "            <td class=\"totals duration\">";
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(($context["customerDuration"] ?? null), ($context["decimal"] ?? null)), "html", null, true);
            echo "</td>
            ";
            // line 205
            if (($context["showRateColumn"] ?? null)) {
                // line 206
                echo "                ";
                if (($context["showInternalRate"] ?? null)) {
                    // line 207
                    echo "                    <td class=\"totals cost\">";
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(($context["customerInternalRate"] ?? null), ($context["customerCurrency"] ?? null)), "html", null, true);
                    echo "</td>
                ";
                }
                // line 209
                echo "                <td class=\"totals cost\">";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(($context["customerRate"] ?? null), ($context["customerCurrency"] ?? null)), "html", null, true);
                echo "</td>
            ";
            }
            // line 211
            echo "        </tr>
        ";
        }
        // line 213
        echo "        </tbody>
    </table>

    <pagebreak>
";
    }

    // line 218
    public function block_items($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 219
        echo "    <h3>";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("export.full_list"), "html", null, true);
        echo "</h3>

    ";
        // line 221
        $context["duration"] = 0;
        // line 222
        echo "    ";
        $context["rate"] = 0;
        // line 223
        echo "    ";
        $context["rateInternal"] = 0;
        // line 224
        echo "    ";
        $context["currency"] = false;
        // line 225
        echo "    <table class=\"items\">
        <thead>
        <tr>
            <th>";
        // line 228
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.date"), "html", null, true);
        echo "</th>
            ";
        // line 229
        if (($context["showUserColumn"] ?? null)) {
            // line 230
            echo "                <th>";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.user"), "html", null, true);
            echo "</th>
            ";
        }
        // line 232
        echo "            <th>";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.description"), "html", null, true);
        echo "</th>
            <th class=\"center\">";
        // line 233
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.duration"), "html", null, true);
        echo "</th>
            ";
        // line 234
        if (($context["showRateColumn"] ?? null)) {
            // line 235
            echo "                ";
            if (($context["showInternalRate"] ?? null)) {
                // line 236
                echo "                    <th class=\"center\">";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.rate_internal"), "html", null, true);
                echo "</th>
                ";
            }
            // line 238
            echo "                <th class=\"center\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.rate"), "html", null, true);
            echo "</th>
            ";
        }
        // line 240
        echo "        </tr>
        </thead>
        <tbody>
        ";
        // line 243
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["entries"] ?? null));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
            // line 244
            echo "            ";
            $context["duration"] = (($context["duration"] ?? null) + twig_get_attribute($this->env, $this->source, $context["entry"], "duration", [], "any", false, false, false, 244));
            // line 245
            echo "            ";
            if ((($context["currency"] ?? null) === false)) {
                // line 246
                echo "                ";
                $context["currency"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "project", [], "any", false, false, false, 246), "customer", [], "any", false, false, false, 246), "currency", [], "any", false, false, false, 246);
                // line 247
                echo "            ";
            }
            // line 248
            echo "            ";
            if ( !(($context["currency"] ?? null) === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "project", [], "any", false, false, false, 248), "customer", [], "any", false, false, false, 248), "currency", [], "any", false, false, false, 248))) {
                // line 249
                echo "                ";
                $context["currency"] = null;
                // line 250
                echo "            ";
            }
            // line 251
            echo "            <tr class=\"";
            echo twig_escape_filter($this->env, twig_cycle([0 => "odd", 1 => "even"], twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 251)), "html", null, true);
            echo "\">
                <td class=\"text-nowrap\">
                    ";
            // line 253
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateTime(twig_get_attribute($this->env, $this->source, $context["entry"], "begin", [], "any", false, false, false, 253)), "html", null, true);
            echo "
                    ";
            // line 254
            if (twig_get_attribute($this->env, $this->source, $context["entry"], "end", [], "any", false, false, false, 254)) {
                // line 255
                echo "                        <br>
                        ";
                // line 256
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\DateExtensions']->dateTime(twig_get_attribute($this->env, $this->source, $context["entry"], "end", [], "any", false, false, false, 256)), "html", null, true);
                echo "
                    ";
            }
            // line 258
            echo "                </td>
                ";
            // line 259
            if (($context["showUserColumn"] ?? null)) {
                // line 260
                echo "                    <td>";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "user", [], "any", false, false, false, 260), "displayName", [], "any", false, false, false, 260), "html", null, true);
                echo "</td>
                ";
            }
            // line 262
            echo "                <td>
                    ";
            // line 263
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "project", [], "any", false, false, false, 263), "customer", [], "any", false, false, false, 263), "name", [], "any", false, false, false, 263), "html", null, true);
            echo " - ";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "project", [], "any", false, false, false, 263), "name", [], "any", false, false, false, 263), "html", null, true);
            if ( !(null === twig_get_attribute($this->env, $this->source, $context["entry"], "activity", [], "any", false, false, false, 263))) {
                echo " - ";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "activity", [], "any", false, false, false, 263), "name", [], "any", false, false, false, 263), "html", null, true);
            }
            // line 264
            echo "                    ";
            if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["entry"], "description", [], "any", false, false, false, 264))) {
                // line 265
                echo "                        <br>
                        <i>";
                // line 266
                echo $this->extensions['App\Twig\MarkdownExtension']->timesheetContent(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "description", [], "any", false, false, false, 266)));
                echo "</i>
                    ";
            }
            // line 268
            echo "                </td>
                <td class=\"duration\">";
            // line 269
            echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, $context["entry"], "duration", [], "any", false, false, false, 269), ($context["decimal"] ?? null)), "html", null, true);
            echo "</td>
                ";
            // line 270
            if (($context["showRateColumn"] ?? null)) {
                // line 271
                echo "                    ";
                if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("view_rate", $context["entry"])) {
                    // line 272
                    echo "                        ";
                    $context["rate"] = (($context["rate"] ?? null) + twig_get_attribute($this->env, $this->source, $context["entry"], "rate", [], "any", false, false, false, 272));
                    // line 273
                    echo "                        ";
                    $context["rateInternal"] = (($context["rateInternal"] ?? null) + twig_get_attribute($this->env, $this->source, $context["entry"], "internalRate", [], "any", false, false, false, 273));
                    // line 274
                    echo "                        ";
                    $context["entryRate"] = $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, $context["entry"], "rate", [], "any", false, false, false, 274), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "project", [], "any", false, false, false, 274), "customer", [], "any", false, false, false, 274), "currency", [], "any", false, false, false, 274));
                    // line 275
                    echo "                        ";
                    $context["entryRateInternal"] = $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, $context["entry"], "internalRate", [], "any", false, false, false, 275), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "project", [], "any", false, false, false, 275), "customer", [], "any", false, false, false, 275), "currency", [], "any", false, false, false, 275));
                    // line 276
                    echo "                    ";
                } else {
                    // line 277
                    echo "                        ";
                    $context["entryRate"] = "&ndash;";
                    // line 278
                    echo "                        ";
                    $context["entryRateInternal"] = "&ndash;";
                    // line 279
                    echo "                    ";
                }
                // line 280
                echo "                    ";
                if (($context["showInternalRate"] ?? null)) {
                    // line 281
                    echo "                        <td class=\"cost\">";
                    echo twig_escape_filter($this->env, ($context["entryRateInternal"] ?? null), "html", null, true);
                    echo "</td>
                    ";
                }
                // line 283
                echo "                    <td class=\"cost\">";
                echo twig_escape_filter($this->env, ($context["entryRate"] ?? null), "html", null, true);
                echo "</td>
                ";
            }
            // line 285
            echo "            </tr>
        ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 287
        echo "        <tr class=\"summary\">
            ";
        // line 288
        if (($context["showUserColumn"] ?? null)) {
            // line 289
            echo "                <td colspan=\"3\"></td>
            ";
        } else {
            // line 291
            echo "                <td colspan=\"2\"></td>
            ";
        }
        // line 293
        echo "            <td class=\"totals duration\">";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->duration(($context["duration"] ?? null), ($context["decimal"] ?? null)), "html", null, true);
        echo "</td>
            ";
        // line 294
        if (($context["showRateColumn"] ?? null)) {
            // line 295
            echo "                ";
            if (($context["showInternalRate"] ?? null)) {
                // line 296
                echo "                    <td class=\"totals cost\">";
                if ( !(null === ($context["currency"] ?? null))) {
                    echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(($context["rateInternal"] ?? null), ($context["currency"] ?? null)), "html", null, true);
                }
                echo "</td>
                ";
            }
            // line 298
            echo "                <td class=\"totals cost\">";
            if ( !(null === ($context["currency"] ?? null))) {
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(($context["rate"] ?? null), ($context["currency"] ?? null)), "html", null, true);
            }
            echo "</td>
            ";
        }
        // line 300
        echo "        </tr>
        </tbody>
    </table>
";
    }

    public function getTemplateName()
    {
        return "export/pdf-layout.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  801 => 300,  793 => 298,  785 => 296,  782 => 295,  780 => 294,  775 => 293,  771 => 291,  767 => 289,  765 => 288,  762 => 287,  747 => 285,  741 => 283,  735 => 281,  732 => 280,  729 => 279,  726 => 278,  723 => 277,  720 => 276,  717 => 275,  714 => 274,  711 => 273,  708 => 272,  705 => 271,  703 => 270,  699 => 269,  696 => 268,  691 => 266,  688 => 265,  685 => 264,  677 => 263,  674 => 262,  668 => 260,  666 => 259,  663 => 258,  658 => 256,  655 => 255,  653 => 254,  649 => 253,  643 => 251,  640 => 250,  637 => 249,  634 => 248,  631 => 247,  628 => 246,  625 => 245,  622 => 244,  605 => 243,  600 => 240,  594 => 238,  588 => 236,  585 => 235,  583 => 234,  579 => 233,  574 => 232,  568 => 230,  566 => 229,  562 => 228,  557 => 225,  554 => 224,  551 => 223,  548 => 222,  546 => 221,  540 => 219,  536 => 218,  528 => 213,  524 => 211,  518 => 209,  512 => 207,  509 => 206,  507 => 205,  502 => 204,  498 => 202,  495 => 201,  491 => 199,  489 => 198,  485 => 196,  482 => 195,  476 => 194,  473 => 193,  470 => 192,  467 => 191,  465 => 190,  462 => 189,  456 => 187,  450 => 185,  447 => 184,  445 => 183,  440 => 182,  436 => 180,  430 => 178,  428 => 177,  425 => 176,  422 => 175,  418 => 173,  412 => 171,  410 => 170,  407 => 169,  405 => 168,  401 => 167,  397 => 166,  392 => 165,  389 => 164,  386 => 163,  383 => 162,  380 => 161,  377 => 160,  374 => 159,  372 => 158,  369 => 157,  363 => 155,  357 => 153,  354 => 152,  352 => 151,  347 => 150,  343 => 148,  340 => 147,  336 => 145,  334 => 144,  329 => 141,  326 => 140,  323 => 139,  320 => 138,  317 => 137,  314 => 136,  309 => 135,  306 => 134,  303 => 133,  300 => 132,  297 => 131,  294 => 130,  292 => 129,  287 => 126,  281 => 124,  275 => 122,  272 => 121,  270 => 120,  265 => 119,  259 => 117,  256 => 116,  250 => 114,  248 => 113,  244 => 112,  240 => 111,  233 => 107,  226 => 105,  222 => 104,  216 => 102,  212 => 101,  202 => 94,  196 => 92,  188 => 90,  186 => 89,  182 => 87,  175 => 85,  172 => 84,  170 => 83,  166 => 82,  159 => 77,  155 => 76,  94 => 16,  90 => 15,  84 => 304,  82 => 218,  80 => 101,  78 => 76,  74 => 74,  72 => 15,  66 => 13,  62 => 11,  60 => 10,  57 => 9,  55 => 8,  53 => 7,  51 => 6,  49 => 5,  47 => 4,  45 => 3,  43 => 2,  41 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "export/pdf-layout.html.twig", "/var/www/html/kimai2/templates/export/pdf-layout.html.twig");
    }
}
