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

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

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

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

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


/* project/embed_budget.html.twig */
class __TwigTemplate_75de86c0b54692dc25ad31b4d992492dd0b637c5fd34aa55b398c714f2c932a1___2130773732 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", "project/embed_budget.html.twig", 2)->unwrap();
        // line 1
        $this->parent = $this->loadTemplate("@AdminLTE/Widgets/box-widget.html.twig", "project/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"] = ["%project%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 7
($context["project"] ?? null), "name", [], "any", false, false, false, 7)) . "</strong>"), "%customer%" => (("<strong>" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source,         // line 8
($context["project"] ?? null), "customer", [], "any", false, false, false, 8), "name", [], "any", false, false, false, 8)) . "</strong>"), "%records%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 9
($context["stats"] ?? null), "recordAmount", [], "any", false, false, false, 9)) . "</strong>"), "%activities%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 10
($context["stats"] ?? null), "activityAmount", [], "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"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "customer", [], "any", false, false, false, 14), "currency", [], "any", false, false, false, 14);
        // line 15
        echo "
        <p>
            ";
        // line 17
        echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_project.short_stats", ($context["params"] ?? null));
        echo "
            ";
        // line 18
        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, 18), ($context["currency"] ?? null)), "html", null, true);
        echo ".
        </p>

        ";
        // line 21
        echo twig_call_macro($macros["progress"], "macro_progressbar", [twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "budget", [], "any", false, false, false, 21), twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "recordRate", [], "any", false, false, false, 21), $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, 21), ($context["currency"] ?? null)) . " / ") . $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "budget", [], "any", false, false, false, 21), ($context["currency"] ?? null)))], 21, $context, $this->getSourceContext());
        echo "
        ";
        // line 22
        echo twig_call_macro($macros["progress"], "macro_progressbar", [twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "timeBudget", [], "any", false, false, false, 22), twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "recordDuration", [], "any", false, false, false, 22), $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, 22)) . " / ") . $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source, ($context["project"] ?? null), "timeBudget", [], "any", false, false, false, 22)))], 22, $context, $this->getSourceContext());
        echo "
    ";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  143 => 22,  139 => 21,  131 => 18,  127 => 17,  123 => 15,  121 => 14,  118 => 13,  116 => 11,  115 => 10,  114 => 9,  113 => 8,  112 => 7,  110 => 6,  106 => 5,  99 => 4,  92 => 3,  87 => 1,  85 => 2,  37 => 1,);
    }

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