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

/* customer/embed_budget.html.twig */
class __TwigTemplate_eaf7a4ffcca0a4861619f6b7d668960b02433e45b8665b069fa29341de9385b5 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("customer/embed_budget.html.twig", "customer/embed_budget.html.twig", 1, "454258894")->display(twig_array_merge($context, ["customer" => ($context["customer"] ?? null), "stats" => ($context["stats"] ?? null)]));
    }

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

    public function isTraitable()
    {
        return false;
    }

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

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


/* customer/embed_budget.html.twig */
class __TwigTemplate_eaf7a4ffcca0a4861619f6b7d668960b02433e45b8665b069fa29341de9385b5___454258894 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", "customer/embed_budget.html.twig", 2)->unwrap();
        // line 1
        $this->parent = $this->loadTemplate("@AdminLTE/Widgets/box-widget.html.twig", "customer/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["currency"] = twig_get_attribute($this->env, $this->source, ($context["customer"] ?? null), "currency", [], "any", false, false, false, 6);
        // line 7
        echo "
        ";
        // line 8
        $context["params"] = ["%activity%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 9
($context["stats"] ?? null), "activityAmount", [], "any", false, false, false, 9)) . "</strong>"), "%project%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 10
($context["stats"] ?? null), "projectAmount", [], "any", false, false, false, 10)) . "</strong>"), "%customer%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 11
($context["customer"] ?? null), "name", [], "any", false, false, false, 11)) . "</strong>"), "%records%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 12
($context["stats"] ?? null), "recordAmount", [], "any", false, false, false, 12)) . "</strong>"), "%duration%" => (("<strong>" . $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source,         // line 13
($context["stats"] ?? null), "recordDuration", [], "any", false, false, false, 13))) . "</strong>"), "%rate%" => (("<strong>" . $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source,         // line 14
($context["stats"] ?? null), "recordRate", [], "any", false, false, false, 14), ($context["currency"] ?? null))) . "</strong>"), "%internal_rate%" => (("<strong>" . $this->extensions['App\Twig\LocaleExtensions']->money(twig_get_attribute($this->env, $this->source,         // line 15
($context["stats"] ?? null), "recordInternalRate", [], "any", false, false, false, 15), ($context["currency"] ?? null))) . "</strong>")];
        // line 17
        echo "
        <p>
            ";
        // line 19
        echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_customer.short_stats", ($context["params"] ?? null));
        echo "
            ";
        // line 20
        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, 20), ($context["currency"] ?? null)), "html", null, true);
        echo ".
        </p>

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

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  150 => 24,  146 => 23,  138 => 20,  134 => 19,  130 => 17,  128 => 15,  127 => 14,  126 => 13,  125 => 12,  124 => 11,  123 => 10,  122 => 9,  121 => 8,  118 => 7,  115 => 6,  111 => 5,  104 => 4,  97 => 3,  92 => 1,  90 => 2,  37 => 1,);
    }

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