<?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/edit.html.twig */
class __TwigTemplate_b2658c964f52c7b3dae29dc1db24c9f4b9d543c4b228e8e3a7dcba78324998ff 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/edit.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/edit.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), "edit"], 5, $context, $this->getSourceContext());
    }

    // line 7
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 8
        echo "    ";
        $context["formEditTemplate"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 8), "xmlHttpRequest", [], "any", false, false, false, 8)) ? ("default/_form_modal.html.twig") : ("default/_form.html.twig"));
        // line 9
        echo "    ";
        $context["formOptions"] = ["title" => ((twig_get_attribute($this->env, $this->source,         // line 10
($context["customer"] ?? null), "name", [], "any", true, true, false, 10)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["customer"] ?? null), "name", [], "any", false, false, false, 10), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("create"))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("create"))), "form" =>         // line 11
($context["form"] ?? null), "back" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_customer")];
        // line 14
        echo "    ";
        $this->loadTemplate("customer/edit.html.twig", "customer/edit.html.twig", 14, "477403509")->display(twig_array_merge($context, ($context["formOptions"] ?? null)));
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  76 => 14,  74 => 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/edit.html.twig", "/var/www/html/kimai2/templates/customer/edit.html.twig");
    }
}


/* customer/edit.html.twig */
class __TwigTemplate_b2658c964f52c7b3dae29dc1db24c9f4b9d543c4b228e8e3a7dcba78324998ff___477403509 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'form_body' => [$this, 'block_form_body'],
        ];
    }

    protected function doGetParent(array $context)
    {
        return $this->loadTemplate(($context["formEditTemplate"] ?? null), "customer/edit.html.twig", 14);
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
    }

    // line 15
    public function block_form_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 16
        echo "            <div class=\"row\">
                <div class=\"col-md-10\">
                    ";
        // line 18
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "name", [], "any", false, false, false, 18), 'row');
        echo "
                </div>
                <div class=\"col-md-2\">
                    ";
        // line 21
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "color", [], "any", false, false, false, 21), 'row');
        echo "
                </div>
            </div>
            ";
        // line 24
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "comment", [], "any", false, false, false, 24), 'row');
        echo "
            ";
        // line 25
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "address", [], "any", false, false, false, 25), 'row');
        echo "
            <div class=\"row\">
                <div class=\"col-md-4\">
                    ";
        // line 28
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "company", [], "any", false, false, false, 28), 'row');
        echo "
                </div>
                <div class=\"col-md-4\">
                    ";
        // line 31
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "number", [], "any", false, false, false, 31), 'row');
        echo "
                </div>
                <div class=\"col-md-4\">
                    ";
        // line 34
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "vatId", [], "any", false, false, false, 34), 'row');
        echo "
                </div>
            </div>
            <div class=\"row\">
                <div class=\"col-md-4\">
                    ";
        // line 39
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "country", [], "any", false, false, false, 39), 'row');
        echo "
                </div>
                <div class=\"col-md-4\">
                    ";
        // line 42
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "currency", [], "any", false, false, false, 42), 'row');
        echo "
                </div>
                <div class=\"col-md-4\">
                    ";
        // line 45
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "timezone", [], "any", false, false, false, 45), 'row');
        echo "
                </div>
            </div>
            <div class=\"row\">
                <div class=\"col-md-4\">
                    ";
        // line 50
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "contact", [], "any", false, false, false, 50), 'row');
        echo "
                </div>
                <div class=\"col-md-4\">
                    ";
        // line 53
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "email", [], "any", false, false, false, 53), 'row');
        echo "
                </div>
                <div class=\"col-md-4\">
                    ";
        // line 56
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "homepage", [], "any", false, false, false, 56), 'row');
        echo "
                </div>
            </div>
            <div class=\"row\">
                <div class=\"col-md-4\">
                    ";
        // line 61
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "mobile", [], "any", false, false, false, 61), 'row');
        echo "
                </div>
                <div class=\"col-md-4\">
                    ";
        // line 64
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "phone", [], "any", false, false, false, 64), 'row');
        echo "
                </div>
                <div class=\"col-md-4\">
                    ";
        // line 67
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "fax", [], "any", false, false, false, 67), 'row');
        echo "
                </div>
            </div>
            ";
        // line 70
        if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "budget", [], "any", true, true, false, 70)) {
            // line 71
            echo "                <div class=\"row\">
                    <div class=\"col-md-6\">
                        ";
            // line 73
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "budget", [], "any", false, false, false, 73), 'row');
            echo "
                    </div>
                    <div class=\"col-md-6\">
                        ";
            // line 76
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "timeBudget", [], "any", false, false, false, 76), 'row');
            echo "
                    </div>
                </div>
            ";
        }
        // line 80
        echo "            ";
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "visible", [], "any", false, false, false, 80), 'row');
        echo "
            ";
        // line 81
        if ((twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "metaFields", [], "any", true, true, false, 81) &&  !twig_test_empty(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "metaFields", [], "any", false, false, false, 81)))) {
            // line 82
            echo "                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "metaFields", [], "any", false, false, false, 82), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["a"] ?? null), "vars", [], "any", false, false, false, 82), "data", [], "any", false, false, false, 82), "order", [], "any", false, false, false, 82) <=> twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["b"] ?? null), "vars", [], "any", false, false, false, 82), "data", [], "any", false, false, false, 82), "order", [], "any", false, false, false, 82)); }));
            foreach ($context['_seq'] as $context["_key"] => $context["meta"]) {
                // line 83
                echo "                    ";
                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["meta"], 'row');
                echo "
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['meta'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 85
            echo "            ";
        }
        // line 86
        echo "            ";
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        echo "
        ";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  282 => 86,  279 => 85,  270 => 83,  265 => 82,  263 => 81,  258 => 80,  251 => 76,  245 => 73,  241 => 71,  239 => 70,  233 => 67,  227 => 64,  221 => 61,  213 => 56,  207 => 53,  201 => 50,  193 => 45,  187 => 42,  181 => 39,  173 => 34,  167 => 31,  161 => 28,  155 => 25,  151 => 24,  145 => 21,  139 => 18,  135 => 16,  131 => 15,  76 => 14,  74 => 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/edit.html.twig", "/var/www/html/kimai2/templates/customer/edit.html.twig");
    }
}
