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

/* embeds/rates-table.html.twig */
class __TwigTemplate_6a1f2a6df7707be21451c78e43e207cc44a643f242044faf0406db14a43e27a3 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
        $this->loadTemplate("embeds/rates-table.html.twig", "embeds/rates-table.html.twig", 1, "1863185513")->display(twig_array_merge($context, ["id" => ($context["id"] ?? null), "entity" => ($context["entity"] ?? null), "create_url" => ($context["create_url"] ?? null), "delete_route" => ($context["delete_route"] ?? null), "currency" => ($context["currency"] ?? null)]));
    }

    public function getTemplateName()
    {
        return "embeds/rates-table.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "embeds/rates-table.html.twig", "/var/www/html/kimai2/templates/embeds/rates-table.html.twig");
    }
}


/* embeds/rates-table.html.twig */
class __TwigTemplate_6a1f2a6df7707be21451c78e43e207cc44a643f242044faf0406db14a43e27a3___1863185513 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'box_attributes' => [$this, 'block_box_attributes'],
            'box_title' => [$this, 'block_box_title'],
            'box_tools' => [$this, 'block_box_tools'],
            'box_body_class' => [$this, 'block_box_body_class'],
            'box_body' => [$this, 'block_box_body'],
        ];
    }

    protected function doGetParent(array $context)
    {
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 2
        $macros["widgets"] = $this->macros["widgets"] = $this->loadTemplate("macros/widgets.html.twig", "embeds/rates-table.html.twig", 2)->unwrap();
        // line 1
        $this->parent = $this->loadTemplate("@AdminLTE/Widgets/box-widget.html.twig", "embeds/rates-table.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_box_attributes($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo "id=\"";
        echo twig_escape_filter($this->env, ($context["id"] ?? null), "html", null, true);
        echo "\"";
    }

    // line 4
    public function block_box_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 5
        echo "        ";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("rates.title"), "html", null, true);
        echo "
    ";
    }

    // line 7
    public function block_box_tools($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 8
        echo "        <a class=\"modal-ajax-form open-edit btn btn-default btn-sm\" data-href=\"";
        echo twig_escape_filter($this->env, ($context["create_url"] ?? null), "html", null, true);
        echo "\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("create"), "html", null, true);
        echo "\"><i class=\"";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("create"), "html", null, true);
        echo "\"></i></a>
    ";
    }

    // line 10
    public function block_box_body_class($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo "no-padding";
    }

    // line 11
    public function block_box_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 12
        echo "        ";
        if (twig_test_empty(($context["rates"] ?? null))) {
            // line 13
            echo "            <div class=\"comment\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("rates.empty"), "html", null, true);
            echo "</div>
        ";
        } else {
            // line 15
            echo "            <table class=\"table dataTable\">
                <thead>
                <tr>
                    <th>
                        ";
            // line 19
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.user"), "html", null, true);
            echo "
                    </th>
                    <th>
                        ";
            // line 22
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.hourlyRate"), "html", null, true);
            echo "
                    </th>
                    <th>
                        ";
            // line 25
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.rate_internal"), "html", null, true);
            echo "
                    </th>
                    <th>
                        ";
            // line 28
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.fixedRate"), "html", null, true);
            echo "
                    </th>
                    <th class=\"actions\"></th>
                </tr>
                </thead>
                <tbody>
                ";
            // line 34
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["rates"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["rate"]) {
                // line 35
                echo "                    <tr>
                        <td>
                            ";
                // line 37
                if ( !(null === twig_get_attribute($this->env, $this->source, $context["rate"], "user", [], "any", false, false, false, 37))) {
                    // line 38
                    echo "                                ";
                    echo twig_call_macro($macros["widgets"], "macro_user_avatar", [twig_get_attribute($this->env, $this->source, $context["rate"], "user", [], "any", false, false, false, 38)], 38, $context, $this->getSourceContext());
                    echo "
                            ";
                } else {
                    // line 40
                    echo "                                &ndash;
                            ";
                }
                // line 42
                echo "                        </td>
                        <td>
                            ";
                // line 44
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, $context["rate"], "rate", [], "any", false, false, false, 44), ($context["currency"] ?? null)), "html", null, true);
                echo "
                        </td>
                        <td>
                            ";
                // line 47
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, $context["rate"], "internalRate", [], "any", false, false, false, 47), ($context["currency"] ?? null)), "html", null, true);
                echo "
                        </td>
                        <td>
                            ";
                // line 50
                echo twig_call_macro($macros["widgets"], "macro_label_boolean", [twig_get_attribute($this->env, $this->source, $context["rate"], "fixed", [], "any", false, false, false, 50)], 50, $context, $this->getSourceContext());
                echo "
                        </td>
                        <td class=\"actions\">
                            <a href=\"";
                // line 53
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(($context["delete_route"] ?? null), ["id" => twig_get_attribute($this->env, $this->source, ($context["entity"] ?? null), "id", [], "any", false, false, false, 53), "rateId" => twig_get_attribute($this->env, $this->source, $context["rate"], "id", [], "any", false, false, false, 53)]), "html", null, true);
                echo "\" class=\"btn btn-default btn-xs api-link\" data-question=\"confirm.delete\" data-event=\"kimai.rateUpdate kimai.rateDelete\" data-method=\"DELETE\" data-msg-error=\"action.delete.error\" data-msg-success=\"action.delete.success\"><i class=\"";
                echo twig_escape_filter($this->env, $this->extensions['App\Twig\IconExtension']->icon("delete"), "html", null, true);
                echo "\"></i></a>
                        </td>
                    </tr>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rate'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 57
            echo "                </tbody>
            </table>
        ";
        }
        // line 60
        echo "    ";
    }

    public function getTemplateName()
    {
        return "embeds/rates-table.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  246 => 60,  241 => 57,  229 => 53,  223 => 50,  217 => 47,  211 => 44,  207 => 42,  203 => 40,  197 => 38,  195 => 37,  191 => 35,  187 => 34,  178 => 28,  172 => 25,  166 => 22,  160 => 19,  154 => 15,  148 => 13,  145 => 12,  141 => 11,  134 => 10,  123 => 8,  119 => 7,  112 => 5,  108 => 4,  99 => 3,  94 => 1,  92 => 2,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "embeds/rates-table.html.twig", "/var/www/html/kimai2/templates/embeds/rates-table.html.twig");
    }
}
