<?php

/* @HVCSite/Public/fichefrais_detail.html.twig */
class __TwigTemplate_30d93f96ab14c82e8cb93ca941490348e4a5ce79d18ca6c099d874dbaf71d7ff extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $__internal_e7d4ac74a93acfd952031d48f29eb63f17c4b80b8899b36747824d6681296bc1 = $this->env->getExtension("native_profiler");
        $__internal_e7d4ac74a93acfd952031d48f29eb63f17c4b80b8899b36747824d6681296bc1->enter($__internal_e7d4ac74a93acfd952031d48f29eb63f17c4b80b8899b36747824d6681296bc1_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@HVCSite/Public/fichefrais_detail.html.twig"));

        // line 1
        if (array_key_exists("lafichefrais", $context)) {
            // line 2
            echo "    <div style=\"\">

        <h2>Frais aux forfaits</h2>

        <div class=\"table\">

            <div class=\"row header blue\">
                <div class=\"cell\">
                    Quantitée repas midi
                </div>
                <div class=\"cell\">
                    Quantitée relais étape
                </div>
                <div class=\"cell\">
                    Quantitée nuitée
                </div>
                <div class=\"cell\">
                    Distance
                </div>
                <div class=\"cell\">
                    Date création
                </div>
                <div class=\"cell\">
                    Libelle
                </div>
                ";
            // line 27
            if (($this->getAttribute($this->getAttribute((isset($context["lafichefrais"]) ? $context["lafichefrais"] : $this->getContext($context, "lafichefrais")), "idetat", array()), "id", array()) != 4)) {
                // line 28
                echo "                <div class=\"cell\">
                    Action
                </div>
                ";
            }
            // line 32
            echo "
            </div>


            ";
            // line 36
            if ((null === (isset($context["lafichefrais"]) ? $context["lafichefrais"] : $this->getContext($context, "lafichefrais")))) {
                // line 37
                echo "                <div class=\"cell\">
                    PAS DE FICHE FRAIS
                </div>
            ";
            } else {
                // line 41
                echo "
                ";
                // line 42
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["lafichefrais"]) ? $context["lafichefrais"] : $this->getContext($context, "lafichefrais")), "lignefraisforfait", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["Lignefraisforfait"]) {
                    // line 43
                    echo "                    <div class=\"row\">
                        <div class=\"cell\">
                            ";
                    // line 45
                    echo twig_escape_filter($this->env, $this->getAttribute($context["Lignefraisforfait"], "quantiterepasmidi", array()), "html", null, true);
                    echo "
                        </div>
                        <div class=\"cell\">
                            ";
                    // line 48
                    echo twig_escape_filter($this->env, $this->getAttribute($context["Lignefraisforfait"], "quantiterelaisetape", array()), "html", null, true);
                    echo "
                        </div>
                        <div class=\"cell\">
                            ";
                    // line 51
                    echo twig_escape_filter($this->env, $this->getAttribute($context["Lignefraisforfait"], "quantitenuitee", array()), "html", null, true);
                    echo "
                        </div>
                        <div class=\"cell\">
                            ";
                    // line 54
                    echo twig_escape_filter($this->env, $this->getAttribute($context["Lignefraisforfait"], "distance", array()), "html", null, true);
                    echo "
                        </div>
                        <div class=\"cell\">
                            ";
                    // line 57
                    echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["Lignefraisforfait"], "datecreation", array()), "d-M-Y"), "html", null, true);
                    echo "
                        </div>
                        <div class=\"cell\">
                            ";
                    // line 60
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["Lignefraisforfait"], "idetat", array()), "libelle", array()), "html", null, true);
                    echo "
                        </div>
                    ";
                    // line 62
                    if (($this->getAttribute($this->getAttribute((isset($context["lafichefrais"]) ? $context["lafichefrais"] : $this->getContext($context, "lafichefrais")), "idetat", array()), "id", array()) != 4)) {
                        // line 63
                        echo "                        <div class=\"cell\">

                            <a style=\"margin-right: 15px; margin-left: 15px;\"
                               href=\"";
                        // line 66
                        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("hvc_site_consulterC_valider", array("idLigne" => $this->getAttribute($context["Lignefraisforfait"], "id", array()))), "html", null, true);
                        echo "\">
                                Valider</a>
                            <a style=\"margin-right: 15px; margin-left: 15px;\"
                               href=\"";
                        // line 69
                        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("hvc_site_consulterC_rejeter", array("idLigne" => $this->getAttribute($context["Lignefraisforfait"], "id", array()))), "html", null, true);
                        echo "\">
                                Rejeter</a>
                    </div>
                    ";
                    }
                    // line 73
                    echo "                    </div>
                ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Lignefraisforfait'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 75
                echo "            ";
            }
            // line 76
            echo "
    </div>

    <!-----------------------------------------------------------------------//
    //---------------ACTION DE LA PAGE HORS FRAIS FORFAIT--------------------//
    //----------------------------------------------------------------------->
    <div style=\"\">
        <h2>Hors forfaits</h2>

        <div class=\"table\">

            <div class=\"row header blue\">
                <div class=\"cell\">
                    Montant
                </div>
                <div class=\"cell\">
                    Type
                </div>
                <div class=\"cell\">
                    Date
                </div>
                <div class=\"cell\">
                    Date création
                </div>
                <div class=\"cell\">
                    Libelle
                </div>

                ";
            // line 104
            if ($this->env->getExtension('security')->isGranted("ROLE_COMPTABLE")) {
                // line 105
                echo "                    ";
                if (($this->getAttribute($this->getAttribute((isset($context["lafichefrais"]) ? $context["lafichefrais"] : $this->getContext($context, "lafichefrais")), "idetat", array()), "id", array()) != 4)) {
                    // line 106
                    echo "                <div class=\"cell\">
                    Action
                </div>
                 ";
                }
                // line 110
                echo "                ";
            }
            // line 111
            echo "            </div>
            ";
            // line 112
            if ((null === (isset($context["lafichefrais"]) ? $context["lafichefrais"] : $this->getContext($context, "lafichefrais")))) {
                // line 113
                echo "                <div class=\"cell\">
                    PAS DE FICHE FRAIS
                </div>
            ";
            } else {
                // line 117
                echo "                ";
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["lafichefrais"]) ? $context["lafichefrais"] : $this->getContext($context, "lafichefrais")), "lignefraishorsfrais", array()));
                foreach ($context['_seq'] as $context["_key"] => $context["Lignefraishorsfrais"]) {
                    // line 118
                    echo "                    <div class=\"row\">
                        <div class=\"cell\">
                            ";
                    // line 120
                    echo twig_escape_filter($this->env, $this->getAttribute($context["Lignefraishorsfrais"], "montant", array()), "html", null, true);
                    echo "
                        </div>
                        <div class=\"cell\">
                            ";
                    // line 123
                    echo twig_escape_filter($this->env, $this->getAttribute($context["Lignefraishorsfrais"], "libelle", array()), "html", null, true);
                    echo "
                        </div>
                        <div class=\"cell\">
                            ";
                    // line 126
                    echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["Lignefraishorsfrais"], "date", array()), "d-M-Y"), "html", null, true);
                    echo "
                        </div>
                        <div class=\"cell\">
                            ";
                    // line 129
                    echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["Lignefraishorsfrais"], "datecreation", array()), "d-M-Y"), "html", null, true);
                    echo "
                        </div>
                        <div class=\"cell\">
                            ";
                    // line 132
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["Lignefraishorsfrais"], "idetat", array()), "libelle", array()), "html", null, true);
                    echo "
                        </div>
                    ";
                    // line 134
                    if ($this->env->getExtension('security')->isGranted("ROLE_COMPTABLE")) {
                        // line 135
                        echo "                        ";
                        if (($this->getAttribute($this->getAttribute((isset($context["lafichefrais"]) ? $context["lafichefrais"] : $this->getContext($context, "lafichefrais")), "idetat", array()), "id", array()) != 4)) {
                            // line 136
                            echo "                        <div class=\"cell\">
                            <a style=\"margin-right: 15px; margin-left: 15px;\"
                               href=\"";
                            // line 138
                            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("hvc_site_consulterC_validerhorsfrais", array("idLigne" => $this->getAttribute($context["Lignefraishorsfrais"], "id", array()))), "html", null, true);
                            echo "\">
                                Valider</a>
                            <a style=\"margin-right: 15px; margin-left: 15px;\"
                               href=\"";
                            // line 141
                            echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("hvc_site_consulterC_rejeterhorsfrais", array("idLigne" => $this->getAttribute($context["Lignefraishorsfrais"], "id", array()))), "html", null, true);
                            echo "\">
                                Rejeter</a>
                        </div>
                        ";
                        }
                        // line 145
                        echo "                        ";
                    }
                    // line 146
                    echo "                    </div>
                ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Lignefraishorsfrais'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 148
                echo "            ";
            }
            // line 149
            echo "        </div>
    </div>




";
        }
        
        $__internal_e7d4ac74a93acfd952031d48f29eb63f17c4b80b8899b36747824d6681296bc1->leave($__internal_e7d4ac74a93acfd952031d48f29eb63f17c4b80b8899b36747824d6681296bc1_prof);

    }

    public function getTemplateName()
    {
        return "@HVCSite/Public/fichefrais_detail.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  277 => 149,  274 => 148,  267 => 146,  264 => 145,  257 => 141,  251 => 138,  247 => 136,  244 => 135,  242 => 134,  237 => 132,  231 => 129,  225 => 126,  219 => 123,  213 => 120,  209 => 118,  204 => 117,  198 => 113,  196 => 112,  193 => 111,  190 => 110,  184 => 106,  181 => 105,  179 => 104,  149 => 76,  146 => 75,  139 => 73,  132 => 69,  126 => 66,  121 => 63,  119 => 62,  114 => 60,  108 => 57,  102 => 54,  96 => 51,  90 => 48,  84 => 45,  80 => 43,  76 => 42,  73 => 41,  67 => 37,  65 => 36,  59 => 32,  53 => 28,  51 => 27,  24 => 2,  22 => 1,);
    }
}
/* {% if lafichefrais is defined %}*/
/*     <div style="">*/
/* */
/*         <h2>Frais aux forfaits</h2>*/
/* */
/*         <div class="table">*/
/* */
/*             <div class="row header blue">*/
/*                 <div class="cell">*/
/*                     Quantitée repas midi*/
/*                 </div>*/
/*                 <div class="cell">*/
/*                     Quantitée relais étape*/
/*                 </div>*/
/*                 <div class="cell">*/
/*                     Quantitée nuitée*/
/*                 </div>*/
/*                 <div class="cell">*/
/*                     Distance*/
/*                 </div>*/
/*                 <div class="cell">*/
/*                     Date création*/
/*                 </div>*/
/*                 <div class="cell">*/
/*                     Libelle*/
/*                 </div>*/
/*                 {% if  lafichefrais.idetat.id != 4 %}*/
/*                 <div class="cell">*/
/*                     Action*/
/*                 </div>*/
/*                 {% endif %}*/
/* */
/*             </div>*/
/* */
/* */
/*             {% if  lafichefrais is null %}*/
/*                 <div class="cell">*/
/*                     PAS DE FICHE FRAIS*/
/*                 </div>*/
/*             {% else %}*/
/* */
/*                 {% for Lignefraisforfait in lafichefrais.lignefraisforfait %}*/
/*                     <div class="row">*/
/*                         <div class="cell">*/
/*                             {{ Lignefraisforfait.quantiterepasmidi }}*/
/*                         </div>*/
/*                         <div class="cell">*/
/*                             {{ Lignefraisforfait.quantiterelaisetape }}*/
/*                         </div>*/
/*                         <div class="cell">*/
/*                             {{ Lignefraisforfait.quantitenuitee }}*/
/*                         </div>*/
/*                         <div class="cell">*/
/*                             {{ Lignefraisforfait.distance }}*/
/*                         </div>*/
/*                         <div class="cell">*/
/*                             {{ Lignefraisforfait.datecreation | date ('d-M-Y') }}*/
/*                         </div>*/
/*                         <div class="cell">*/
/*                             {{ Lignefraisforfait.idetat.libelle }}*/
/*                         </div>*/
/*                     {% if  lafichefrais.idetat.id != 4 %}*/
/*                         <div class="cell">*/
/* */
/*                             <a style="margin-right: 15px; margin-left: 15px;"*/
/*                                href="{{ path('hvc_site_consulterC_valider',{ 'idLigne': Lignefraisforfait.id } ) }}">*/
/*                                 Valider</a>*/
/*                             <a style="margin-right: 15px; margin-left: 15px;"*/
/*                                href="{{ path('hvc_site_consulterC_rejeter',{ 'idLigne': Lignefraisforfait.id } ) }}">*/
/*                                 Rejeter</a>*/
/*                     </div>*/
/*                     {% endif %}*/
/*                     </div>*/
/*                 {% endfor %}*/
/*             {% endif %}*/
/* */
/*     </div>*/
/* */
/*     <!-----------------------------------------------------------------------//*/
/*     //---------------ACTION DE LA PAGE HORS FRAIS FORFAIT--------------------//*/
/*     //----------------------------------------------------------------------->*/
/*     <div style="">*/
/*         <h2>Hors forfaits</h2>*/
/* */
/*         <div class="table">*/
/* */
/*             <div class="row header blue">*/
/*                 <div class="cell">*/
/*                     Montant*/
/*                 </div>*/
/*                 <div class="cell">*/
/*                     Type*/
/*                 </div>*/
/*                 <div class="cell">*/
/*                     Date*/
/*                 </div>*/
/*                 <div class="cell">*/
/*                     Date création*/
/*                 </div>*/
/*                 <div class="cell">*/
/*                     Libelle*/
/*                 </div>*/
/* */
/*                 {% if is_granted('ROLE_COMPTABLE') %}*/
/*                     {% if  lafichefrais.idetat.id != 4 %}*/
/*                 <div class="cell">*/
/*                     Action*/
/*                 </div>*/
/*                  {% endif %}*/
/*                 {% endif  %}*/
/*             </div>*/
/*             {% if  lafichefrais is null %}*/
/*                 <div class="cell">*/
/*                     PAS DE FICHE FRAIS*/
/*                 </div>*/
/*             {% else %}*/
/*                 {% for Lignefraishorsfrais in lafichefrais.lignefraishorsfrais %}*/
/*                     <div class="row">*/
/*                         <div class="cell">*/
/*                             {{ Lignefraishorsfrais.montant }}*/
/*                         </div>*/
/*                         <div class="cell">*/
/*                             {{ Lignefraishorsfrais.libelle }}*/
/*                         </div>*/
/*                         <div class="cell">*/
/*                             {{ Lignefraishorsfrais.date | date ('d-M-Y') }}*/
/*                         </div>*/
/*                         <div class="cell">*/
/*                             {{ Lignefraishorsfrais.datecreation | date ('d-M-Y') }}*/
/*                         </div>*/
/*                         <div class="cell">*/
/*                             {{ Lignefraishorsfrais.idetat.libelle }}*/
/*                         </div>*/
/*                     {% if is_granted('ROLE_COMPTABLE') %}*/
/*                         {% if  lafichefrais.idetat.id != 4 %}*/
/*                         <div class="cell">*/
/*                             <a style="margin-right: 15px; margin-left: 15px;"*/
/*                                href="{{ path('hvc_site_consulterC_validerhorsfrais',{ 'idLigne': Lignefraishorsfrais.id } ) }}">*/
/*                                 Valider</a>*/
/*                             <a style="margin-right: 15px; margin-left: 15px;"*/
/*                                href="{{ path('hvc_site_consulterC_rejeterhorsfrais',{ 'idLigne': Lignefraishorsfrais.id } ) }}">*/
/*                                 Rejeter</a>*/
/*                         </div>*/
/*                         {% endif %}*/
/*                         {% endif %}*/
/*                     </div>*/
/*                 {% endfor %}*/
/*             {% endif %}*/
/*         </div>*/
/*     </div>*/
/* */
/* */
/* */
/* */
/* {% endif %}*/
