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

/* activity/embed_budget.html.twig */
class __TwigTemplate_4f41c0ed6d0df172edf608802ea91d66e056ea66411a9f402693920ed32bc98e 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("activity/embed_budget.html.twig", "activity/embed_budget.html.twig", 1, "873991444")->display($context);
    }

    public function getTemplateName()
    {
        return "activity/embed_budget.html.twig";
    }

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

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


/* activity/embed_budget.html.twig */
class __TwigTemplate_4f41c0ed6d0df172edf608802ea91d66e056ea66411a9f402693920ed32bc98e___873991444 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'box_title' => [$this, 'block_box_title'],
            'box_attributes' => [$this, 'block_box_attributes'],
            '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["progress"] = $this->macros["progress"] = $this->loadTemplate("macros/progressbar.html.twig", "activity/embed_budget.html.twig", 2)->unwrap();
        // line 1
        $this->parent = $this->loadTemplate("@AdminLTE/Widgets/box-widget.html.twig", "activity/embed_budget.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

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

    // line 4
    public function block_box_attributes($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo "id=\"budget_box\"";
    }

    // line 5
    public function block_box_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 6
        echo "        ";
        $context["params"] = ["%activity%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 7
($context["activity"] ?? null), "name", [], "any", false, false, false, 7)) . "</strong>"), "%project%" => "<strong>-</strong>", "%customer%" => "<strong>-</strong>", "%records%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 10
($context["stats"] ?? null), "recordAmount", [], "any", false, false, false, 10)) . "</strong>"), "%duration%" => (("<strong>" . $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source,         // line 11
($context["stats"] ?? null), "recordDuration", [], "any", false, false, false, 11))) . "</strong>")];
        // line 13
        echo "
        ";
        // line 14
        $context["currency"] = null;
        // line 15
        echo "        ";
        if ( !(null === twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, false, false, 15))) {
            // line 16
            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["activity"] ?? null), "project", [], "any", false, false, false, 16), "customer", [], "any", false, false, false, 16), "currency", [], "any", false, false, false, 16);
            // line 17
            echo "        ";
        }
        // line 18
        echo "
        ";
        // line 19
        if ( !(null === twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "project", [], "any", false, false, false, 19))) {
            // line 20
            echo "            ";
            $context["params"] = twig_array_merge(($context["params"] ?? null), ["%project%" => (("<strong>" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,             // line 21
($context["activity"] ?? null), "project", [], "any", false, false, false, 21), "name", [], "any", false, false, false, 21)) . "</strong>"), "%customer%" => (("<strong>" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,             // line 22
($context["activity"] ?? null), "project", [], "any", false, false, false, 22), "customer", [], "any", false, false, false, 22), "name", [], "any", false, false, false, 22)) . "</strong>")]);
            // line 24
            echo "        ";
        }
        // line 25
        echo "
        <p>
            ";
        // line 27
        echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_activity.short_stats", ($context["params"] ?? null));
        echo "
            ";
        // line 28
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.rate_internal"), "html", null, true);
        echo ": ";
        echo twig_escape_filter($this->env, $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "recordInternalRate", [], "any", false, false, false, 28), ($context["currency"] ?? null)), "html", null, true);
        echo ".
        </p>


        ";
        // line 32
        echo twig_call_macro($macros["progress"], "macro_progressbar", [twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "budget", [], "any", false, false, false, 32), twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "recordRate", [], "any", false, false, false, 32), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.budget"), (($this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "recordRate", [], "any", false, false, false, 32), ($context["currency"] ?? null)) . " / ") . $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "budget", [], "any", false, false, false, 32), ($context["currency"] ?? null)))], 32, $context, $this->getSourceContext());
        echo "
        ";
        // line 33
        echo twig_call_macro($macros["progress"], "macro_progressbar", [twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "timeBudget", [], "any", false, false, false, 33), twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "recordDuration", [], "any", false, false, false, 33), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("label.timeBudget"), (($this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "recordDuration", [], "any", false, false, false, 33)) . " / ") . $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, ($context["activity"] ?? null), "timeBudget", [], "any", false, false, false, 33)))], 33, $context, $this->getSourceContext());
        echo "
    ";
    }

    public function getTemplateName()
    {
        return "activity/embed_budget.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  164 => 33,  160 => 32,  151 => 28,  147 => 27,  143 => 25,  140 => 24,  138 => 22,  137 => 21,  135 => 20,  133 => 19,  130 => 18,  127 => 17,  124 => 16,  121 => 15,  119 => 14,  116 => 13,  114 => 11,  113 => 10,  112 => 7,  110 => 6,  106 => 5,  99 => 4,  92 => 3,  87 => 1,  85 => 2,  37 => 1,);
    }

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