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

/* leave_application/new.html.twig */
class __TwigTemplate_bcfa9b3da1d5933c9ea0bbf0d9bdb4ffc8d5c43248e8c7138c2742b3793c5579 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'title' => [$this, 'block_title'],
            'body' => [$this, 'block_body'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "template.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "leave_application/new.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "leave_application/new.html.twig"));

        $this->parent = $this->loadTemplate("template.html.twig", "leave_application/new.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 3
    public function block_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        echo " New Leave Application - ";
        $this->displayParentBlock("title", $context, $blocks);
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 5
    public function block_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        // line 6
        echo "
  <!-- Title Start  -->
                        <div class=\"app-page-title\">
                            <div class=\"page-title-wrapper\">
                                <div class=\"page-title-heading\">
                                    <div class=\"page-title-icon\">
                                        <i class=\"pe-7s-menu icon-gradient bg-ripe-malin text-success\">
                                        </i>
                                    </div>
                                    <div><h3>Leave Application</h3>
                                       
                                    </div>
                                </div>
\t\t\t\t\t\t\t\t
                                <div class=\"page-title-actions\">
                                   <div class=\"d-inline-block dropdown\">
                                       <nav class=\"\" aria-label=\"breadcrumb\">
                                                    <ol class=\"breadcrumb\">
                                                        <li class=\"breadcrumb-item\"><a href=\"#\">Home</a></li>
                                                        <li class=\"breadcrumb-item\"><a href=\"";
        // line 25
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_leave_application_index", ["tag" => 1]);
        echo "\">Leave List</a></li>
                                                        <li class=\"active breadcrumb-item\" aria-current=\"page\">Add Leave</li>
                                                    </ol>
                                                </nav>
                                    </div>
                                </div>   
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</div>
                        </div>    

\t\t\t\t\t\t";
        // line 35
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 35, $this->source); })()), "flashes", [0 => "notice"], "method", false, false, false, 35));
        foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
            // line 36
            echo "                            
                            <div class=\"alert alert-info alert-dismissible\">
                                <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>
                                <strong>";
            // line 39
            echo twig_escape_filter($this->env, $context["message"], "html", null, true);
            echo "</strong> 
                            </div>
                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 41
        echo "  

                         ";
        // line 43
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 43, $this->source); })()), "flashes", [0 => "warning"], "method", false, false, false, 43));
        foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
            echo "                   
                            <div class=\"alert alert-danger alert-dismissible\">
                                <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>
                                <strong>";
            // line 46
            echo twig_escape_filter($this->env, $context["message"], "html", null, true);
            echo "</strong> 
                            </div>
                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 48
        echo "  \t 

\t\t\t\t\t\t<ul class=\"body-tabs body-tabs-layout tabs-animated body-tabs-animated nav\">
                            
                            <li class=\"nav-item\">
                                <a role=\"tab\" class=\"nav-link active\"  href=\"";
        // line 53
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_leave_application_index", ["tag" => 1]);
        echo "\">
                                    <span><i class=\"fa fa-list\"> Leave List</i></span>
                                </a>
                            </li>
                        </ul> <!-- Title End  --> 
\t\t\t\t\t\t
\t\t\t\t\t\t<!-- Tab Start  --> 
                        <div class=\"tab-content\">
\t\t\t\t\t\t
\t\t\t\t\t\t    <!-- Table Tab Start  --> 
                            <div class=\"tab-pane tabs-animation fade show active\" id=\"tab-content-0\" role=\"tabpanel\">
                                <div class=\"main-card mb-3 card\">
                                    <div class=\"card-body\"><h5 class=\"card-title\">Create new Leave Application</h5>
                                    <div class=\"divider\"></div> 
                                        ";
        // line 67
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 67, $this->source); })()), 'form_start');
        echo " 
                                                                                
                                            <div class=\"form-row\">
                                                <div class=\"col-md-5 mb-4\">
                                                    ";
        // line 71
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 71, $this->source); })()), "leavename", [], "any", false, false, false, 71), 'row');
        echo "
                                                </div>

                                                    <div class=\"col-md-1 mb-1\">                                                    
                                                    
                                                </div>

                                                <div class=\"col-md-5 mb-4\">
                                                    ";
        // line 79
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 79, $this->source); })()), "fromDays", [], "any", false, false, false, 79), 'row');
        echo "
                                                </div>

                                                    <div class=\"col-md-1 mb-1\">
                                                    
                                                </div>
                                                    
                                            </div>

                                              <div class=\"form-row\">
                                                <div class=\"col-md-5 mb-4\">
                                                    ";
        // line 90
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 90, $this->source); })()), "toDays", [], "any", false, false, false, 90), 'row');
        echo "
                                                </div>

                                                    <div class=\"col-md-1 mb-1\">                                                    
                                                    
                                                </div>

                                                <div class=\"col-md-5 mb-4\">
                                                   ";
        // line 98
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 98, $this->source); })()), "contactNo", [], "any", false, false, false, 98), 'row');
        echo "
                                                </div>

                                                    <div class=\"col-md-1 mb-1\">
                                                    
                                                </div>
                                                    
                                            </div>

                                            <div class=\"form-row\">
                                                <div class=\"col-md-11 mb-12\">
                                                    ";
        // line 109
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 109, $this->source); })()), "reasons", [], "any", false, false, false, 109), 'row');
        echo "
                                                </div>  
                                                <div class=\"col-md-1 mb-1\">
                                                    
                                                </div>  
                                            </div>
                                            <br>
                                            <div class=\"form-row\">
                                                <div class=\"col-md-11 mb-12\">
                                                    ";
        // line 118
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 118, $this->source); })()), "address", [], "any", false, false, false, 118), 'row');
        echo "
                                                </div>  
                                                <div class=\"col-md-1 mb-1\">
                                                    
                                                </div>      
                                            </div>
                                                                                                                                                        
                                            <div style=\"margin-top:25px;\">
                                            <button class=\"btn btn-success\"><i class=\"fa fa-save\">";
        // line 126
        echo twig_escape_filter($this->env, ((array_key_exists("button_label", $context)) ? (_twig_default_filter((isset($context["button_label"]) || array_key_exists("button_label", $context) ? $context["button_label"] : (function () { throw new RuntimeError('Variable "button_label" does not exist.', 126, $this->source); })()), " Save")) : (" Save")), "html", null, true);
        echo "</i></button>

                                            ";
        // line 128
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 128, $this->source); })()), "createNew", [], "any", false, false, false, 128), 'widget', ["label" => " Save and create new", "attr" => ["class" => "btn btn-primary"]]);
        echo "    

                                            </div>
                                    ";
        // line 131
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 131, $this->source); })()), 'form_end');
        echo "

                                                         
\t\t\t\t\t\t\t
                                    </div>
                                </div>
\t\t\t\t\t\t\t\t
                              
                            </div> <!-- Table Tab End  --> 
\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t
                        </div> <!-- Tab End  --> 


";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    public function getTemplateName()
    {
        return "leave_application/new.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  277 => 131,  271 => 128,  266 => 126,  255 => 118,  243 => 109,  229 => 98,  218 => 90,  204 => 79,  193 => 71,  186 => 67,  169 => 53,  162 => 48,  153 => 46,  145 => 43,  141 => 41,  132 => 39,  127 => 36,  123 => 35,  110 => 25,  89 => 6,  79 => 5,  59 => 3,  36 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'template.html.twig' %}

{% block title %} New Leave Application - {{ parent() }}{% endblock %}

{% block body %}

  <!-- Title Start  -->
                        <div class=\"app-page-title\">
                            <div class=\"page-title-wrapper\">
                                <div class=\"page-title-heading\">
                                    <div class=\"page-title-icon\">
                                        <i class=\"pe-7s-menu icon-gradient bg-ripe-malin text-success\">
                                        </i>
                                    </div>
                                    <div><h3>Leave Application</h3>
                                       
                                    </div>
                                </div>
\t\t\t\t\t\t\t\t
                                <div class=\"page-title-actions\">
                                   <div class=\"d-inline-block dropdown\">
                                       <nav class=\"\" aria-label=\"breadcrumb\">
                                                    <ol class=\"breadcrumb\">
                                                        <li class=\"breadcrumb-item\"><a href=\"#\">Home</a></li>
                                                        <li class=\"breadcrumb-item\"><a href=\"{{ path('app_leave_application_index', {'tag' : 1}) }}\">Leave List</a></li>
                                                        <li class=\"active breadcrumb-item\" aria-current=\"page\">Add Leave</li>
                                                    </ol>
                                                </nav>
                                    </div>
                                </div>   
\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</div>
                        </div>    

\t\t\t\t\t\t{% for message in app.flashes('notice') %}
                            
                            <div class=\"alert alert-info alert-dismissible\">
                                <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>
                                <strong>{{ message }}</strong> 
                            </div>
                        {% endfor %}  

                         {% for message in app.flashes('warning') %}                   
                            <div class=\"alert alert-danger alert-dismissible\">
                                <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>
                                <strong>{{ message }}</strong> 
                            </div>
                        {% endfor %}  \t 

\t\t\t\t\t\t<ul class=\"body-tabs body-tabs-layout tabs-animated body-tabs-animated nav\">
                            
                            <li class=\"nav-item\">
                                <a role=\"tab\" class=\"nav-link active\"  href=\"{{ path('app_leave_application_index', {'tag' : 1}) }}\">
                                    <span><i class=\"fa fa-list\"> Leave List</i></span>
                                </a>
                            </li>
                        </ul> <!-- Title End  --> 
\t\t\t\t\t\t
\t\t\t\t\t\t<!-- Tab Start  --> 
                        <div class=\"tab-content\">
\t\t\t\t\t\t
\t\t\t\t\t\t    <!-- Table Tab Start  --> 
                            <div class=\"tab-pane tabs-animation fade show active\" id=\"tab-content-0\" role=\"tabpanel\">
                                <div class=\"main-card mb-3 card\">
                                    <div class=\"card-body\"><h5 class=\"card-title\">Create new Leave Application</h5>
                                    <div class=\"divider\"></div> 
                                        {{ form_start(form) }} 
                                                                                
                                            <div class=\"form-row\">
                                                <div class=\"col-md-5 mb-4\">
                                                    {{ form_row(form.leavename) }}
                                                </div>

                                                    <div class=\"col-md-1 mb-1\">                                                    
                                                    
                                                </div>

                                                <div class=\"col-md-5 mb-4\">
                                                    {{ form_row(form.fromDays) }}
                                                </div>

                                                    <div class=\"col-md-1 mb-1\">
                                                    
                                                </div>
                                                    
                                            </div>

                                              <div class=\"form-row\">
                                                <div class=\"col-md-5 mb-4\">
                                                    {{ form_row(form.toDays) }}
                                                </div>

                                                    <div class=\"col-md-1 mb-1\">                                                    
                                                    
                                                </div>

                                                <div class=\"col-md-5 mb-4\">
                                                   {{ form_row(form.contactNo) }}
                                                </div>

                                                    <div class=\"col-md-1 mb-1\">
                                                    
                                                </div>
                                                    
                                            </div>

                                            <div class=\"form-row\">
                                                <div class=\"col-md-11 mb-12\">
                                                    {{ form_row(form.reasons) }}
                                                </div>  
                                                <div class=\"col-md-1 mb-1\">
                                                    
                                                </div>  
                                            </div>
                                            <br>
                                            <div class=\"form-row\">
                                                <div class=\"col-md-11 mb-12\">
                                                    {{ form_row(form.address) }}
                                                </div>  
                                                <div class=\"col-md-1 mb-1\">
                                                    
                                                </div>      
                                            </div>
                                                                                                                                                        
                                            <div style=\"margin-top:25px;\">
                                            <button class=\"btn btn-success\"><i class=\"fa fa-save\">{{ button_label|default(' Save') }}</i></button>

                                            {{ form_widget(form.createNew, {label: ' Save and create new', attr: {class: 'btn btn-primary'}}) }}    

                                            </div>
                                    {{ form_end(form) }}

                                                         
\t\t\t\t\t\t\t
                                    </div>
                                </div>
\t\t\t\t\t\t\t\t
                              
                            </div> <!-- Table Tab End  --> 
\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t
                        </div> <!-- Tab End  --> 


{% endblock %}
", "leave_application/new.html.twig", "C:\\Apache24\\htdocs\\cwlms\\templates\\leave_application\\new.html.twig");
    }
}
