<?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/delete.html.twig */
class __TwigTemplate_d15d123da79f1bdd51dd027dbabe1ad50dd298cf78225e8be59b0fcf3d66f6f8 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")), "activity/delete.html.twig", 1);
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 2
        $macros["actions"] = $this->macros["actions"] = $this->loadTemplate("activity/actions.html.twig", "activity/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_activity.title"), "html", null, true);
    }

    // line 5
    public function block_page_actions($context, array $blocks = [])
    {
        $macros = $this->macros;
        echo twig_call_macro($macros["actions"], "macro_activity", [($context["activity"] ?? 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["activity"] ?? null), "name", [], "any", false, false, false, 12)) . "</strong>"), "%project%" => "<strong>-</strong>", "%customer%" => "<strong>-</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
        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 "
    ";
        // line 26
        $context["message"] = (((("<p>" . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_activity.short_stats", ($context["params"] ?? null))) . "</p><p>") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_entity.delete_confirm")) . "</p>");
        // line 27
        echo "
    ";
        // line 28
        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, 28), "xmlHttpRequest", [], "any", false, false, false, 28)) ? ("default/_form_delete_modal.html.twig") : ("default/_form_delete.html.twig")), ["message" =>         // line 29
($context["message"] ?? null), "form" =>         // line 30
($context["form"] ?? null), "used" =>         // line 31
($context["inUse"] ?? null), "back" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_activity")]);
        // line 33
        echo "

";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  107 => 33,  105 => 31,  104 => 30,  103 => 29,  102 => 28,  99 => 27,  97 => 26,  94 => 25,  91 => 24,  89 => 22,  88 => 21,  86 => 20,  84 => 19,  81 => 18,  79 => 16,  78 => 15,  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("", "activity/delete.html.twig", "/var/www/html/kimai2/templates/activity/delete.html.twig");
    }
}
