<?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/delete.html.twig */
class __TwigTemplate_035979fda730bdd774906c3c414d488eb4d65d8e51f75af1d19e99fb30c076f9 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'page_title' => [$this, 'block_page_title'],
            'page_actions' => [$this, 'block_page_actions'],
            'main' => [$this, 'block_main'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return $this->loadTemplate(((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 1), "xmlHttpRequest", [], "any", false, false, false, 1)) ? ("form.html.twig") : ("base.html.twig")), "customer/delete.html.twig", 1);
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 2
        $macros["actions"] = $this->macros["actions"] = $this->loadTemplate("customer/actions.html.twig", "customer/delete.html.twig", 2)->unwrap();
        // line 1
        $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
    }

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

    // line 5
    public function block_page_actions($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo twig_call_macro($macros["actions"], "macro_customer", [($context["customer"] ?? null), "delete"], 5, $context, $this->getSourceContext());
    }

    // line 7
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 8
        echo "
    ";
        // line 9
        $context["inUse"] = 1 === twig_compare(twig_get_attribute($this->env, $this->source, ($context["stats"] ?? null), "recordAmount", [], "any", false, false, false, 9), 0);
        // line 10
        echo "
    ";
        // line 11
        $context["params"] = ["%activity%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 12
($context["stats"] ?? null), "activityAmount", [], "any", false, false, false, 12)) . "</strong>"), "%project%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 13
($context["stats"] ?? null), "projectAmount", [], "any", false, false, false, 13)) . "</strong>"), "%customer%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 14
($context["customer"] ?? null), "name", [], "any", false, false, false, 14)) . "</strong>"), "%records%" => (("<strong>" . twig_get_attribute($this->env, $this->source,         // line 15
($context["stats"] ?? null), "recordAmount", [], "any", false, false, false, 15)) . "</strong>"), "%duration%" => (("<strong>" . $this->extensions['App\Twig\LocaleExtensions']->duration(twig_get_attribute($this->env, $this->source,         // line 16
($context["stats"] ?? null), "recordDuration", [], "any", false, false, false, 16))) . "</strong>")];
        // line 18
        echo "
    ";
        // line 19
        $context["message"] = (((("<p>" . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_customer.short_stats", ($context["params"] ?? null))) . "</p><p>") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_entity.delete_confirm")) . "</p>");
        // line 20
        echo "
    ";
        // line 21
        echo twig_include($this->env, $context, ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 21), "xmlHttpRequest", [], "any", false, false, false, 21)) ? ("default/_form_delete_modal.html.twig") : ("default/_form_delete.html.twig")), ["message" =>         // line 22
($context["message"] ?? null), "form" =>         // line 23
($context["form"] ?? null), "used" =>         // line 24
($context["inUse"] ?? null), "back" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_customer")]);
        // line 26
        echo "

";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  96 => 26,  94 => 24,  93 => 23,  92 => 22,  91 => 21,  88 => 20,  86 => 19,  83 => 18,  81 => 16,  80 => 15,  79 => 14,  78 => 13,  77 => 12,  76 => 11,  73 => 10,  71 => 9,  68 => 8,  64 => 7,  57 => 5,  50 => 4,  46 => 1,  44 => 2,  37 => 1,);
    }

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