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

/* page/donnee_jour.html.twig */
class __TwigTemplate_7282f2fcbc26c8f2b1e42b61a8163fd0fe22e5f56b04436f0a6d5822e52123e7 extends Template
{
    private $source;
    private $macros = [];

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

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

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

    protected function doGetParent(array $context)
    {
        // line 1
        return "base.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", "page/donnee_jour.html.twig"));

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

        $this->parent = $this->loadTemplate("base.html.twig", "page/donnee_jour.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 2
    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"));

        // line 3
        echo "\tDonnée du jour
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 6
    public function block_stylesheets($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", "stylesheets"));

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

        // line 7
        echo "\t<link rel=\"stylesheet\" href=\"";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/dashboard.css"), "html", null, true);
        echo "\">
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 9
    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 10
        echo "    
    <section
        id=\"contents\" class=\"container-fluid\">
        <!-- entete content -->
        <div id=\"top-content\">
            <div id=\"entete_fixed\">
                <ul>
                    <li>
                        <a href=\"#\" id=\"btn_drop_side_menu\">
                            <i data-show=\"show-side-navigation1\" class=\"fa fa-bars show-side-btn\"></i>
                        </a>
                    </li>
                    <li
\t\t\t\t\t\t\t\t";
        // line 23
        if ((0 === twig_compare((isset($context["hotel"]) || array_key_exists("hotel", $context) ? $context["hotel"] : (function () { throw new RuntimeError('Variable "hotel" does not exist.', 23, $this->source); })()), "royal_beach"))) {
            // line 24
            echo "\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t";
        }
        // line 26
        echo "\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"";
        // line 27
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("royal_beach", ["current_page" => (isset($context["current_page"]) || array_key_exists("current_page", $context) ? $context["current_page"] : (function () { throw new RuntimeError('Variable "current_page" does not exist.', 27, $this->source); })())]), "html", null, true);
        echo "\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"";
        // line 29
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/hazo1.png"), "html", null, true);
        echo "\" alt=\"logo1\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li
\t\t\t\t\t\t\t\t";
        // line 34
        if ((0 === twig_compare((isset($context["hotel"]) || array_key_exists("hotel", $context) ? $context["hotel"] : (function () { throw new RuntimeError('Variable "hotel" does not exist.', 34, $this->source); })()), "calypso"))) {
            // line 35
            echo "\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t";
        }
        // line 37
        echo "\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"";
        // line 38
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("calypso", ["current_page" => (isset($context["current_page"]) || array_key_exists("current_page", $context) ? $context["current_page"] : (function () { throw new RuntimeError('Variable "current_page" does not exist.', 38, $this->source); })())]), "html", null, true);
        echo "\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"";
        // line 40
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/hazo2.png"), "html", null, true);
        echo "\" alt=\"logo2\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li 
\t\t\t\t\t\t\t\t";
        // line 45
        if ((0 === twig_compare((isset($context["hotel"]) || array_key_exists("hotel", $context) ? $context["hotel"] : (function () { throw new RuntimeError('Variable "hotel" does not exist.', 45, $this->source); })()), "baobab_tree"))) {
            // line 46
            echo "\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t";
        }
        // line 48
        echo "\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"";
        // line 49
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("baobab_tree", ["current_page" => (isset($context["current_page"]) || array_key_exists("current_page", $context) ? $context["current_page"] : (function () { throw new RuntimeError('Variable "current_page" does not exist.', 49, $this->source); })())]), "html", null, true);
        echo "\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"";
        // line 51
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/hazo3.png"), "html", null, true);
        echo "\" alt=\"logo3\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li
\t\t\t\t\t\t\t\t";
        // line 56
        if ((0 === twig_compare((isset($context["hotel"]) || array_key_exists("hotel", $context) ? $context["hotel"] : (function () { throw new RuntimeError('Variable "hotel" does not exist.', 56, $this->source); })()), "vanila_hotel"))) {
            // line 57
            echo "\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t";
        }
        // line 59
        echo "\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"";
        // line 60
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("vanila_hotel", ["current_page" => (isset($context["current_page"]) || array_key_exists("current_page", $context) ? $context["current_page"] : (function () { throw new RuntimeError('Variable "current_page" does not exist.', 60, $this->source); })())]), "html", null, true);
        echo "\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"";
        // line 62
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/hazo4.png"), "html", null, true);
        echo "\" alt=\"logo4\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
                    <li id=\"log_out_entete\">
                        <div>
                             <a href=\"";
        // line 68
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
        echo "\">
                                <span aria-hidden=\"true\" class=\"fa fa-power-off fa-2x\"></span>
                            </a>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <!-- / entete content -->


        <div id=\"hrs_content\">
            <div>
                <div class=\"col-lg-12 col-md-12 col-sm-12 col-sm-12 col-xs-12\">
                    <section class=\"section_part\" id=\"section_part_top\">
                        <div class=\"sous_titre\">
                            <h2>Donnée du jour</h2>
                            <form action=\"\" class=\"from_sous_titre\">
                                <input type=\"date\">
                            </form>
                        </div>
                    </section>
                </div>
                <div class=\"col-lg-12 col-md-12 col-sm-12 col-sm-12 col-xs-12\">

                    <div
                        class=\"tab_content\" id=\"data_days\">

                        <!-- formulaire total -->

                        ";
        // line 98
        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.', 98, $this->source); })()), 'form_start');
        echo "
                            <div class=\"h4_titre\">
                                <h4>Hébergement</h4>
                            </div>
                            <div class=\"data_form\">
                                <div class=\"form-group\">
                                    <label for=\"t_o\">Taux d'occupation :
                                    </label>
                                     ";
        // line 106
        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.', 106, $this->source); })()), "heb_to", [], "any", false, false, false, 106), 'widget', ["attr" => ["class" => "input_pourcent", "max" => "100"]]);
        // line 112
        echo "
                                    <span class=\"span__pourcent\">%</span>
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a\">Chiffre d'affaire :
                                    </label>
                                    ";
        // line 119
        echo "                                    ";
        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.', 119, $this->source); })()), "heb_ca", [], "any", false, false, false, 119), 'widget', ["attr" => ["class" => "input_nombre", "maxlength" => "23"]]);
        // line 125
        echo "
                                    <span class=\"span__ar\">Ar</span>
                                </div>
                            </div>
                            <section class=\"sous_form\">
                                <h4 class=\"label__titre\">Nouveau client</h4>
                                <div class=\"sous_data_form\">
                                    <div>
                                        <span class=\"span__label\"></span><input type=\"text\" class=\"input__text\" placeholder=\"Nom\" name=\"\" id =\"nom_client\">
                                        <span class=\"span__label span_prenom\"></span><input type=\"text\" class=\"input__text\" placeholder=\"Prénom\" name=\"\" id = \"prenom_client\">
                                    </div>
                                    <div>
                                        <div class=\"form-group\">
                                            <label for=\"date_arrive\" class=\"label_date\">Date d'arrivé :</label>
                                            <input type=\"date\" id=\"date_arrivee\">
                                            <input type=\"hidden\" id=\"hide_pseudo_hotel\" value=\"";
        // line 140
        echo twig_escape_filter($this->env, (isset($context["hotel"]) || array_key_exists("hotel", $context) ? $context["hotel"] : (function () { throw new RuntimeError('Variable "hotel" does not exist.', 140, $this->source); })()), "html", null, true);
        echo "\">
                                        </div>
                                        <div class=\"form-group\">
                                            <label for=\"date_arrive\" class=\"label_date\">Date de départ :</label>
                                            <input type=\"date\" id=\"date_depart\">
                                        </div>
                                    </div>
                                    <div>
                                        <button class=\"btn btn-default\" id = \"ajouter_client\">
                                            <span class=\"fa fa-plus\"></span>
                                            <span>Ajouter</span>
                                        </button>
                                    </div>
                                </div>
                            </section>

                            <div class=\"tableau\" id=\"tab_client_present\">
                                <div class=\"sous_titre\">
                                    <h4 class=\"label__titre\">Client présent</h4>
                                </div>
                                <section class=\" filtre\">
                                    <div class=\"sous_titre_filtre\">
                                        <h3>Filtre</h3>
                                    </div>

                                    <div>
                                        <input type=\"date\">
                                        <input type=\"date\">
                                    </div>

                                </section>
                                <div>
                                    <table class=\"display\" style=\"width: 100%\" id=\"tableau_client_donnee_jour\">
                                        <thead>
                                            <tr>
                                                <td>
                                                    <span>NOM</span>
                                                </td>
                                                <td>
                                                    <span>DATE D'ARRIVEE</span>
                                                </td>
                                                <td>
                                                    <span>DATE DU DEPART</span>
                                                </td>
                                                <td>
                                                    <span>DUREE DU SEJOUR</span>
                                                </td>
                                                <td>
                                                    <span>ACTIONS</span>
                                                </td>
                                            </tr>
                                        </thead>
                                        <tbody id =\"tbody_load\">
                                            
                                        </tbody>
                                    </table>
                                </div>
                            </div>

                            <div class=\"h4_titre\">
                                <h4>Restaurant</h4>
                            </div>
                            <div class=\"data_form\">
                                <div class=\"form-group\">
                                    <label for=\"n_couvert\">Nombre de couvert :
                                    </label>
                                    ";
        // line 207
        echo "                                     ";
        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.', 207, $this->source); })()), "res_n_couvert", [], "any", false, false, false, 207), 'widget', ["attr" => ["class" => "input_nombre", "maxlength" => "23", "max" => "100"]]);
        // line 214
        echo "
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a_rest\">Chiffre d'affaire :
                                    </label>
                                    ";
        // line 220
        echo "                                    ";
        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.', 220, $this->source); })()), "res_ca", [], "any", false, false, false, 220), 'widget', ["attr" => ["class" => "input_nombre", "maxlength" => "23", "max" => "100"]]);
        // line 227
        echo "
                                    <span class=\"span__ar\">Ar</span>
                                </div>
                            </div>
                            <div class=\"data_form\">
                                <div class=\"form-group\">
                                    <label for=\"p_dejeuner\">Petit déjeuner :
                                    </label>
                                    ";
        // line 236
        echo "                                     ";
        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.', 236, $this->source); })()), "res_p_dej", [], "any", false, false, false, 236), 'widget', ["attr" => ["class" => "input_nombre", "maxlength" => "23", "max" => "100"]]);
        // line 243
        echo "
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"dejeuner\">Déjeuner :
                                    </label>
                                    ";
        // line 249
        echo "                                    ";
        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.', 249, $this->source); })()), "res_dej", [], "any", false, false, false, 249), 'widget', ["attr" => ["class" => "input_nombre", "maxlength" => "18", "max" => "100"]]);
        // line 256
        echo "
                                </div>
                            </div>
                            <div class=\"data_form\">
                                <div class=\"form-group\">
                                    <label for=\"dinner\">Dinner :
                                    </label>
                                    ";
        // line 264
        echo "                                    ";
        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.', 264, $this->source); })()), "res_dinner", [], "any", false, false, false, 264), 'widget', ["attr" => ["class" => "input_nombre", "maxlength" => "18", "max" => "100"]]);
        // line 271
        echo "
                                </div>
                            </div>
                            <div class=\"h4_titre\">
                                <h4>Spa</h4>
                            </div>
                            <div class=\"data_form\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Chiffre d'affaire :
                                    </label>
                                    ";
        // line 282
        echo "                                    ";
        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.', 282, $this->source); })()), "spa_ca", [], "any", false, false, false, 282), 'widget', ["attr" => ["class" => "input_nombre", "maxlength" => "23"]]);
        // line 288
        echo "
                                    <span class=\"span__ar\">Ar</span>
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"n_abonne\">Nombre d'abonné :
                                    </label>
                                    ";
        // line 295
        echo "                                     ";
        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.', 295, $this->source); })()), "spa_n_abonne", [], "any", false, false, false, 295), 'widget', ["attr" => ["class" => "input_nombre", "maxlength" => "18", "max" => "100"]]);
        // line 302
        echo "
                                </div>
                            </div>
                            <div class=\"data_form\">

                                <div class=\"form-group\">
                                    <label for=\"c_unique\">Client unique :
                                    </label>
                                    ";
        // line 311
        echo "                                     ";
        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.', 311, $this->source); })()), "spa_c_unique", [], "any", false, false, false, 311), 'widget', ["attr" => ["class" => "input_nombre", "maxlength" => "18", "max" => "100"]]);
        // line 318
        echo "
                                </div>
                            </div>

                            <!-- text area  -->
                            <div class=\"h4_titre\">
                                <h4>Compte rendu journalier</h4>
                            </div>
                            <div class=\"data_form crj\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Direction :
                                    </label>
                                    ";
        // line 331
        echo "                                     ";
        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.', 331, $this->source); })()), "crj_direction", [], "any", false, false, false, 331), 'widget', ["attr" => ["class" => "form-control"]]);
        // line 335
        echo "
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Service RH :
                                    </label>
                                    ";
        // line 341
        echo "                                    ";
        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.', 341, $this->source); })()), "crj_service_rh", [], "any", false, false, false, 341), 'widget', ["attr" => ["class" => "form-control"]]);
        // line 345
        echo "
                                </div>
                            </div>
                            <div class=\"data_form crj\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Commercial :
                                    </label>
                                    ";
        // line 353
        echo "                                    ";
        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.', 353, $this->source); })()), "crj_commercial", [], "any", false, false, false, 353), 'widget', ["attr" => ["class" => "form-control"]]);
        // line 357
        echo "
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Compatble :
                                    </label>
                                    ";
        // line 363
        echo "                                     ";
        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.', 363, $this->source); })()), "crj_comptable", [], "any", false, false, false, 363), 'widget', ["attr" => ["class" => "form-control"]]);
        // line 367
        echo "
                                </div>
                            </div>
                            <div class=\"data_form crj\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Réception :
                                    </label>
                                    ";
        // line 375
        echo "                                     ";
        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.', 375, $this->source); })()), "crj_reception", [], "any", false, false, false, 375), 'widget', ["attr" => ["class" => "form-control"]]);
        // line 379
        echo "
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Restaurant :
                                    </label>
                                    ";
        // line 385
        echo "                                    ";
        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.', 385, $this->source); })()), "crj_restaurant", [], "any", false, false, false, 385), 'widget', ["attr" => ["class" => "form-control"]]);
        // line 389
        echo "
                                </div>
                            </div>
                            <div class=\"data_form crj\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Spa :
                                    </label>
                                    ";
        // line 397
        echo "                                    ";
        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.', 397, $this->source); })()), "crj_spa", [], "any", false, false, false, 397), 'widget', ["attr" => ["class" => "form-control"]]);
        // line 401
        echo "
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Service techniques :
                                    </label>
                                    ";
        // line 407
        echo "                                    ";
        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.', 407, $this->source); })()), "crj_s_technique", [], "any", false, false, false, 407), 'widget', ["attr" => ["class" => "form-control"]]);
        // line 411
        echo "
                                </div>
                            </div>
                            <div class=\"data_form crj\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Litiges :
                                    </label>
                                    ";
        // line 419
        echo "                                     ";
        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.', 419, $this->source); })()), "crj_litiges", [], "any", false, false, false, 419), 'widget', ["attr" => ["class" => "form-control"]]);
        // line 423
        echo "
                                </div>
                            </div>

                            <!-- / textarea -->

                            <div class=\"btn-list\">
                                <ul>
                                    <li><button type=\"submit\" id = \"btn_add_donnee_dj\" class=\"btn btn-warning\"><span>Enregistrer</span></button></li>
                                </ul>
                            </div>
                        ";
        // line 434
        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.', 434, $this->source); })()), 'form_end');
        echo "

                        <!-- / formulaire total -->
                    </div>


                    <!-- Modal modif  -->
                    <div class=\"modal fade\" id=\"modal_form\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
                        <div class=\"modal-dialog opacity-animate4\">
                            <div class=\"modal-content\">
                                <div class=\"modal-header\">
                                    <button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
                                    <h3 class=\"modal-title\" style=\"text-align: center;\">Modification</h3>
                                </div>
                                <div class=\"modal-body modal_modif_client\">
                                    
                                </div>

                            </div>
                        </div>
                    </div>
                    <!-- fin Modal modif  -->

                    <!-- Modal suppr  -->

                    <div class=\"modal fade\" id=\"modal_form_confirme\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
                        <div class=\"modal-dialog opacity-animate4\">
                            <div class=\"modal-content\">
                                <div class=\"modal-header\">
                                    <button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
                                    <h3 class=\"modal-title\" style=\"text-align: center;\">Voulez-vous vraiment supprimer cet élément ?</h3>
                                </div>
                                <div class=\"modal-body\">
                                    <div id=\"div__conf\">
                                        <button class=\"btn btn-warning supprimer\" data-id = \"\"  data-dismiss=\"modal\" data-confirm = \"oui\">Supprimer</button>
                                        <button class=\"btn btn-warning annuler\" data-dismiss=\"modal\" data-confirm = \"non\">Annuler</button>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>

                    <!-- fin Modal suppr  -->

                </div>

            </div>
        </div>

    </section>
    <div class=\"load_modif\">
        <p>Patienter...</p>
    </div>


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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 492
    public function block_javascripts($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", "javascripts"));

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

        // line 493
        echo "<!-- un plugin tres important pour les input -->

<script src=\"";
        // line 495
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/cleave.min.js"), "html", null, true);
        echo "\"></script>


<script>

    document.querySelector(\".input_pourcent\").onkeyup = function(){
        handleChange(this);
       // alert('kjh')
    }



\tfunction handleChange(input) {

    if (input.value < 0) {
    input.value = 0;
    } else if (input.value > 100) {
    input.value = 100;
    } else if (isNaN(input.value)) {
    input.value = 0;
    }

    }
</script>

<!-- limiter les  -->

<script>

\t/* utilisation de cleave.js pour les input */

    // style des % et Ar
    var n = document.querySelectorAll(\".input_nombre\");
    for (var i = n.length - 1; i >= 0; i--) {
    new Cleave(n[i], { // prefix: 'Ar ',
    numeral: true,
    delimiter: [' '],
    numeralThousandsGroupStyle: 'thousand',
    numericOnly: true
    });
    }


new Cleave('.input_pourcent', {blocks: [4]});


/* fin utilisation de cleave.js pour les input */

</script>
<script>

\t\$(document).ready(function () {
        
});
</script>

<script>

        // ajout de client 

        \$(document).ready(function(){
            /* table */
                var pseudo_hotel = \$('#hide_pseudo_hotel').val();
        //alert(pseudo_hotel);
        var table = \$('#tableau_client_donnee_jour').DataTable({
                    \"language\": {
                        \"sEmptyTable\": \"Aucune donnée disponible dans le tableau\",
                        \"sInfo\": \"Affichage de l'élément _START_ à _END_ sur _TOTAL_ éléments\",
                        \"sInfoEmpty\": \"Affichage de l'élément 0 à 0 sur 0 élément\",
                        \"sInfoFiltered\": \"(filtré à partir de _MAX_ éléments au total)\",
                        \"sInfoPostFix\": \"\",
                        \"sInfoThousands\": \",\",
                        \"sLengthMenu\": \"Afficher _MENU_ éléments\",
                        \"sLoadingRecords\": \"Chargement...\",
                        \"sProcessing\": \"Traitement...\",
                        \"sSearch\": \"Rechercher :\",
                        \"sZeroRecords\": \"Aucun élément correspondant trouvé\",
                        \"oPaginate\": {
                            \"sFirst\": \"Premier\",
                            \"sLast\": \"Dernier\",
                            \"sNext\": \"Suivant\",
                            \"sPrevious\": \"Précédent\"
                        },
                        \"oAria\": {
                            \"sSortAscending\": \": activer pour trier la colonne par ordre croissant\",
                            \"sSortDescending\": \": activer pour trier la colonne par ordre décroissant\"
                        },
                        \"select\": {
                            \"rows\": {
                                    \"_\": \"%d lignes sélectionnées\",
                                    \"0\": \"Aucune ligne sélectionnée\",
                                    \"1\": \"1 ligne sélectionnée\"
                            }
                        }
                    },

                    \"ajax\" : {
                        url : \"/profile/select_client/today\", // any am Clientcontroller
                        type : 'POST', 
                        data : {'pseudo_hotel' : pseudo_hotel},
                        // success : function(response){
                        //     alert(response);
                        // }, 
                        // error : function(){
                        //     alert('erreur server');
                        // },
                        \"dataSrc\":\"\",
                        
                    },

                    //annule le tri
                    order : [[0 , 'asc']],
                    ordering : false,

                    responsive: true,
                    scrollY: false, // raha scrollena de asina val ex 400
                    scrollX: true,
                    scrollCollapse: true,
                    paging: true,
                     autoFill: true
                });

                new \$.fn.dataTable.FixedHeader(table);

            /*  fiun table */

            \$(\"#ajouter_client\").click(function (e) { 
                e.preventDefault();
                // alert('ksg')
                var nom = \$('#nom_client').val();
                var prenom = \$('#prenom_client').val();
                var date_arrivee = \$('#date_arrivee').val();
                var date_depart = \$('#date_depart').val();
                var data = {
                    \"nom_client\" : nom,
                    \"prenom_client\" : prenom,
                    \"date_arrivee\" : date_arrivee,
                    \"date_depart\" : date_depart
                };

                // test

                //alert(\"nom = \"+nom+\" prenom = \"+prenom+ \"  date ar = \"+date_arrivee+\" date dep = \"+date_depart); 

                // ajax 

                \$.ajax({
                    url : \"";
        // line 642
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hebergement", ["pseudo_hotel" => (isset($context["hotel"]) || array_key_exists("hotel", $context) ? $context["hotel"] : (function () { throw new RuntimeError('Variable "hotel" does not exist.', 642, $this->source); })())]), "html", null, true);
        echo "\",
                    type : \"POST\",
                    data : data,
                    beforeSend : function(){
                        \$(\"#ajouter_client\").html('<span>Patienter...</span>');
                    },
                    success : function (response) {
                        if(response == \"ok\"){
                            // on initialise le formulaire
                            \$('#nom_client').val(\"\");
                            \$('#prenom_client').val(\"\");
                            \$('#date_arrivee').val(\"d-m-YYYY\");
                            \$('#date_depart').val(\"d-m-YYYY\");
                            
                        }
                    },
                    complete : function(){
                            table.ajax.reload(null, false);
                         \$(\"#ajouter_client\").html('<span class=\"fa fa-plus\"></span><span>Ajouter</span>');
                    },
                    error : function() {
                        alert('Erreur dans le serveur')
                    },

                })
                
            });

            // suppression client présent 

            \$(document).on('click', \".btn_client_suppr\", function(ev){
                //ev.preventDefault();
                var id = \$(this).attr('data-id');
                //alert(id);
                \$('#div__conf button.supprimer').attr('data-id', id);
            })

            \$('#div__conf button.supprimer').on('click', function(){
                 var id = \$(this).attr('data-id');
                 //alert(id);
                 // ajax
                 \$.ajax({
                     url : \"/admin/suprimer_client\",
                     data : {
                         \"client_id\" : id,
                         \"pseudo_hotel\" : pseudo_hotel,
                     },
                     type : \"POST\",
                     success : function(response){
                         if(response == \"deleted\"){
                             table.ajax.reload(null, false);
                         }
                     },
                     error : function(error){
                         alert('erreur de server suppression client dans donnée du jour ');
                     },
                })
            })

            /* fin suppression client*/

            /* debut modif client */

            \$(document).on('click', '.btn_client_modif', function(ev){
                ev.preventDefault();
                 var id = \$(this).attr('data-id');
                 //alert(id);
                 \$.ajax({
                     url : \"/admin/check_client\",
                     data : {
                         \"client_id\" : id,
                     },
                     type : \"POST\",
                    
                     success : function(response){
                         \$('.modal_modif_client').html(response);
                          \$('#modal_form').modal('show');
                     },
                     error : function(error){
                         alert('erreur de server');
                     },
                })
            })

            \$(document).on('click', '#a_modal_modif_client', function(ev){
                ev.preventDefault();
                var id = \$(this).attr(\"data-id\");
                var nom = \$('#modif_nom_client').val();
                var prenom = \$('#modif_prenom_client').val();
                var date_arrivee = \$('#modif_date_arrivee').val();
                var date_depart = \$('#modif_date_depart').val();
                //alert(id+\"/\"+nom+\"/\"+date_depart+\"/\"+date_arrivee+\"/\"+prenom);
                // ajax
                \$.ajax({
                     url : \"/admin/edit_client\",
                     data : {
                         \"id\" : id,
                         \"nom\" : nom,
                         \"prenom\" : prenom,
                         \"date_arrivee\" : date_arrivee,
                         \"date_depart\" : date_depart,
                     },
                     type : \"POST\",
                    beforeSend : function(){
                       \$('#a_modal_modif_client').html('<span>Patienter...</span>'); 
                    },
                     success : function(response){
                        if(response == \"ok\"){
                            table.ajax.reload(null, false);
                             \$('#modal_form').modal('hide');
                        }
                     },
                     error : function(error){
                         alert('erreur de server');
                     },
                     complete : function(){
                          \$('#a_modal_modif_client').html('<span>Enregistrer</span>'); 
                     },
                })
            })
            


            
        })


</script>


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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    public function getTemplateName()
    {
        return "page/donnee_jour.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  798 => 642,  648 => 495,  644 => 493,  634 => 492,  567 => 434,  554 => 423,  551 => 419,  542 => 411,  539 => 407,  532 => 401,  529 => 397,  520 => 389,  517 => 385,  510 => 379,  507 => 375,  498 => 367,  495 => 363,  488 => 357,  485 => 353,  476 => 345,  473 => 341,  466 => 335,  463 => 331,  449 => 318,  446 => 311,  436 => 302,  433 => 295,  425 => 288,  422 => 282,  410 => 271,  407 => 264,  398 => 256,  395 => 249,  388 => 243,  385 => 236,  375 => 227,  372 => 220,  365 => 214,  362 => 207,  293 => 140,  276 => 125,  273 => 119,  265 => 112,  263 => 106,  252 => 98,  219 => 68,  210 => 62,  205 => 60,  202 => 59,  198 => 57,  196 => 56,  188 => 51,  183 => 49,  180 => 48,  176 => 46,  174 => 45,  166 => 40,  161 => 38,  158 => 37,  154 => 35,  152 => 34,  144 => 29,  139 => 27,  136 => 26,  132 => 24,  130 => 23,  115 => 10,  105 => 9,  92 => 7,  82 => 6,  71 => 3,  61 => 2,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends \"base.html.twig\" %}
{% block title %}
\tDonnée du jour
{% endblock %}

{% block stylesheets %}
\t<link rel=\"stylesheet\" href=\"{{ asset('css/dashboard.css')}}\">
{% endblock %}
{% block body %}
    
    <section
        id=\"contents\" class=\"container-fluid\">
        <!-- entete content -->
        <div id=\"top-content\">
            <div id=\"entete_fixed\">
                <ul>
                    <li>
                        <a href=\"#\" id=\"btn_drop_side_menu\">
                            <i data-show=\"show-side-navigation1\" class=\"fa fa-bars show-side-btn\"></i>
                        </a>
                    </li>
                    <li
\t\t\t\t\t\t\t\t{% if hotel == \"royal_beach\" %}
\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"{{ path('royal_beach', {'current_page' : current_page }) }}\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"{{asset('images/hazo1.png')}}\" alt=\"logo1\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li
\t\t\t\t\t\t\t\t{% if hotel == \"calypso\" %}
\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"{{ path('calypso', {'current_page' : current_page }) }}\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('images/hazo2.png') }}\" alt=\"logo2\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li 
\t\t\t\t\t\t\t\t{% if hotel == \"baobab_tree\" %}
\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"{{ path('baobab_tree', {'current_page' : current_page }) }}\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('images/hazo3.png') }}\" alt=\"logo3\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li
\t\t\t\t\t\t\t\t{% if hotel == \"vanila_hotel\" %}
\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"{{ path('vanila_hotel', {'current_page' : current_page }) }}\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('images/hazo4.png') }}\" alt=\"logo4\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
                    <li id=\"log_out_entete\">
                        <div>
                             <a href=\"{{ path('app_logout') }}\">
                                <span aria-hidden=\"true\" class=\"fa fa-power-off fa-2x\"></span>
                            </a>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <!-- / entete content -->


        <div id=\"hrs_content\">
            <div>
                <div class=\"col-lg-12 col-md-12 col-sm-12 col-sm-12 col-xs-12\">
                    <section class=\"section_part\" id=\"section_part_top\">
                        <div class=\"sous_titre\">
                            <h2>Donnée du jour</h2>
                            <form action=\"\" class=\"from_sous_titre\">
                                <input type=\"date\">
                            </form>
                        </div>
                    </section>
                </div>
                <div class=\"col-lg-12 col-md-12 col-sm-12 col-sm-12 col-xs-12\">

                    <div
                        class=\"tab_content\" id=\"data_days\">

                        <!-- formulaire total -->

                        {{ form_start(form) }}
                            <div class=\"h4_titre\">
                                <h4>Hébergement</h4>
                            </div>
                            <div class=\"data_form\">
                                <div class=\"form-group\">
                                    <label for=\"t_o\">Taux d'occupation :
                                    </label>
                                     {{ form_widget(form.heb_to, {
                                        'attr' : {
                                            'class' : 'input_pourcent',
                                           
                                            'max' : '100',
                                        }
                                    }) }}
                                    <span class=\"span__pourcent\">%</span>
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a\">Chiffre d'affaire :
                                    </label>
                                    {# <input type=\"text\" maxlength=\"23\" class=\"input_nombre\" id=\"heb_ca\"> #}
                                    {{ form_widget(form.heb_ca, {
                                        'attr' : {
                                            'class' : 'input_nombre',
                                            
                                            'maxlength' : '23',
                                        }
                                    }) }}
                                    <span class=\"span__ar\">Ar</span>
                                </div>
                            </div>
                            <section class=\"sous_form\">
                                <h4 class=\"label__titre\">Nouveau client</h4>
                                <div class=\"sous_data_form\">
                                    <div>
                                        <span class=\"span__label\"></span><input type=\"text\" class=\"input__text\" placeholder=\"Nom\" name=\"\" id =\"nom_client\">
                                        <span class=\"span__label span_prenom\"></span><input type=\"text\" class=\"input__text\" placeholder=\"Prénom\" name=\"\" id = \"prenom_client\">
                                    </div>
                                    <div>
                                        <div class=\"form-group\">
                                            <label for=\"date_arrive\" class=\"label_date\">Date d'arrivé :</label>
                                            <input type=\"date\" id=\"date_arrivee\">
                                            <input type=\"hidden\" id=\"hide_pseudo_hotel\" value=\"{{ hotel }}\">
                                        </div>
                                        <div class=\"form-group\">
                                            <label for=\"date_arrive\" class=\"label_date\">Date de départ :</label>
                                            <input type=\"date\" id=\"date_depart\">
                                        </div>
                                    </div>
                                    <div>
                                        <button class=\"btn btn-default\" id = \"ajouter_client\">
                                            <span class=\"fa fa-plus\"></span>
                                            <span>Ajouter</span>
                                        </button>
                                    </div>
                                </div>
                            </section>

                            <div class=\"tableau\" id=\"tab_client_present\">
                                <div class=\"sous_titre\">
                                    <h4 class=\"label__titre\">Client présent</h4>
                                </div>
                                <section class=\" filtre\">
                                    <div class=\"sous_titre_filtre\">
                                        <h3>Filtre</h3>
                                    </div>

                                    <div>
                                        <input type=\"date\">
                                        <input type=\"date\">
                                    </div>

                                </section>
                                <div>
                                    <table class=\"display\" style=\"width: 100%\" id=\"tableau_client_donnee_jour\">
                                        <thead>
                                            <tr>
                                                <td>
                                                    <span>NOM</span>
                                                </td>
                                                <td>
                                                    <span>DATE D'ARRIVEE</span>
                                                </td>
                                                <td>
                                                    <span>DATE DU DEPART</span>
                                                </td>
                                                <td>
                                                    <span>DUREE DU SEJOUR</span>
                                                </td>
                                                <td>
                                                    <span>ACTIONS</span>
                                                </td>
                                            </tr>
                                        </thead>
                                        <tbody id =\"tbody_load\">
                                            
                                        </tbody>
                                    </table>
                                </div>
                            </div>

                            <div class=\"h4_titre\">
                                <h4>Restaurant</h4>
                            </div>
                            <div class=\"data_form\">
                                <div class=\"form-group\">
                                    <label for=\"n_couvert\">Nombre de couvert :
                                    </label>
                                    {# <input type=\"text\" max=\"100\" maxlength=\"18\" class=\"input_nombre\" id=\"res_n_couvert\"> #}
                                     {{ form_widget(form.res_n_couvert, {
                                        'attr' : {
                                            'class' : 'input_nombre',
                                            
                                            'maxlength' : '23',
                                            'max' : '100',
                                        }
                                    }) }}
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a_rest\">Chiffre d'affaire :
                                    </label>
                                    {# <input type=\"text\" maxlength=\"23\" class=\"input_nombre\" id = \"res_ca\"> #}
                                    {{ form_widget(form.res_ca, {
                                        'attr' : {
                                            'class' : 'input_nombre',
                                        
                                            'maxlength' : '23',
                                            'max' : '100',
                                        }
                                    }) }}
                                    <span class=\"span__ar\">Ar</span>
                                </div>
                            </div>
                            <div class=\"data_form\">
                                <div class=\"form-group\">
                                    <label for=\"p_dejeuner\">Petit déjeuner :
                                    </label>
                                    {# <input type=\"text\" max=\"100\" maxlength=\"18\" class=\"input_nombre\" id=\"res_p_dej\"> #}
                                     {{ form_widget(form.res_p_dej, {
                                        'attr' : {
                                            'class' : 'input_nombre',
                                        
                                            'maxlength' : '23',
                                            'max' : '100',
                                        }
                                    }) }}
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"dejeuner\">Déjeuner :
                                    </label>
                                    {# <input type=\"text\" max=\"100\" maxlength=\"18\" class=\"input_nombre\" id = \"res_dej\"> #}
                                    {{ form_widget(form.res_dej, {
                                        'attr' : {
                                            'class' : 'input_nombre',
                                        
                                            'maxlength' : '18',
                                            'max' : '100',
                                        }
                                    }) }}
                                </div>
                            </div>
                            <div class=\"data_form\">
                                <div class=\"form-group\">
                                    <label for=\"dinner\">Dinner :
                                    </label>
                                    {# <input type=\"text\" max=\"100\" maxlength=\"18\" class=\"input_nombre\" id = \"res_dinner\"> #}
                                    {{ form_widget(form.res_dinner, {
                                        'attr' : {
                                            'class' : 'input_nombre',
                                        
                                            'maxlength' : '18',
                                            'max' : '100',
                                        }
                                    }) }}
                                </div>
                            </div>
                            <div class=\"h4_titre\">
                                <h4>Spa</h4>
                            </div>
                            <div class=\"data_form\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Chiffre d'affaire :
                                    </label>
                                    {# <input type=\"text\" maxlength=\"23\" class=\"input_nombre\" id = \"spa_ca\"> #}
                                    {{ form_widget(form.spa_ca, {
                                        'attr' : {
                                            'class' : 'input_nombre',
                                        
                                            'maxlength' : '23',
                                        }
                                    }) }}
                                    <span class=\"span__ar\">Ar</span>
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"n_abonne\">Nombre d'abonné :
                                    </label>
                                    {# <input type=\"text\" max=\"100\" maxlength=\"18\" class=\"input_nombre\" id = \"spa_n_abonne\"> #}
                                     {{ form_widget(form.spa_n_abonne, {
                                        'attr' : {
                                            'class' : 'input_nombre',
                                        
                                            'maxlength' : '18',
                                            'max' : '100',
                                        }
                                    }) }}
                                </div>
                            </div>
                            <div class=\"data_form\">

                                <div class=\"form-group\">
                                    <label for=\"c_unique\">Client unique :
                                    </label>
                                    {# <input type=\"text\" max=\"100\" maxlength=\"18\" class=\"input_nombre\" id = \"spa_c_unique\"> #}
                                     {{ form_widget(form.spa_c_unique, {
                                        'attr' : {
                                            'class' : 'input_nombre',
                                        
                                            'maxlength' : '18',
                                            'max' : '100',
                                        }
                                    }) }}
                                </div>
                            </div>

                            <!-- text area  -->
                            <div class=\"h4_titre\">
                                <h4>Compte rendu journalier</h4>
                            </div>
                            <div class=\"data_form crj\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Direction :
                                    </label>
                                    {# <textarea class=\"form-control\" id = \"crj_direction\"></textarea> #}
                                     {{ form_widget(form.crj_direction, {
                                        'attr' : {
                                            'class' : 'form-control',
                                        }
                                    }) }}
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Service RH :
                                    </label>
                                    {# <textarea class=\"form-control\" id = \"crj_service_rh\"></textarea> #}
                                    {{ form_widget(form.crj_service_rh, {
                                        'attr' : {
                                            'class' : 'form-control',
                                        }
                                    }) }}
                                </div>
                            </div>
                            <div class=\"data_form crj\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Commercial :
                                    </label>
                                    {# <textarea class=\"form-control\" id =\"crj_commercial\"></textarea> #}
                                    {{ form_widget(form.crj_commercial, {
                                        'attr' : {
                                            'class' : 'form-control',
                                        }
                                    }) }}
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Compatble :
                                    </label>
                                    {# <textarea class=\"form-control\" id = \"crj_comptable\"></textarea> #}
                                     {{ form_widget(form.crj_comptable, {
                                        'attr' : {
                                            'class' : 'form-control',
                                        }
                                    }) }}
                                </div>
                            </div>
                            <div class=\"data_form crj\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Réception :
                                    </label>
                                    {# <textarea class=\"form-control\" id =\"crj_reception\"></textarea> #}
                                     {{ form_widget(form.crj_reception, {
                                        'attr' : {
                                            'class' : 'form-control',
                                        }
                                    }) }}
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Restaurant :
                                    </label>
                                    {# <textarea class=\"form-control\" id =\"crj_restaurant\"></textarea> #}
                                    {{ form_widget(form.crj_restaurant, {
                                        'attr' : {
                                            'class' : 'form-control',
                                        }
                                    }) }}
                                </div>
                            </div>
                            <div class=\"data_form crj\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Spa :
                                    </label>
                                    {# <textarea class=\"form-control\" id =\"crj_spa\"></textarea> #}
                                    {{ form_widget(form.crj_spa, {
                                        'attr' : {
                                            'class' : 'form-control',
                                        }
                                    }) }}
                                </div>
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Service techniques :
                                    </label>
                                    {# <textarea class=\"form-control\" id =\"crj_s_technique\"></textarea> #}
                                    {{ form_widget(form.crj_s_technique, {
                                        'attr' : {
                                            'class' : 'form-control',
                                        }
                                    }) }}
                                </div>
                            </div>
                            <div class=\"data_form crj\">
                                <div class=\"form-group\">
                                    <label for=\"c_a_spa\">Litiges :
                                    </label>
                                    {# <textarea class=\"form-control\" id =\"crj_litiges\"></textarea> #}
                                     {{ form_widget(form.crj_litiges, {
                                        'attr' : {
                                            'class' : 'form-control',
                                        }
                                    }) }}
                                </div>
                            </div>

                            <!-- / textarea -->

                            <div class=\"btn-list\">
                                <ul>
                                    <li><button type=\"submit\" id = \"btn_add_donnee_dj\" class=\"btn btn-warning\"><span>Enregistrer</span></button></li>
                                </ul>
                            </div>
                        {{ form_end(form) }}

                        <!-- / formulaire total -->
                    </div>


                    <!-- Modal modif  -->
                    <div class=\"modal fade\" id=\"modal_form\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
                        <div class=\"modal-dialog opacity-animate4\">
                            <div class=\"modal-content\">
                                <div class=\"modal-header\">
                                    <button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
                                    <h3 class=\"modal-title\" style=\"text-align: center;\">Modification</h3>
                                </div>
                                <div class=\"modal-body modal_modif_client\">
                                    
                                </div>

                            </div>
                        </div>
                    </div>
                    <!-- fin Modal modif  -->

                    <!-- Modal suppr  -->

                    <div class=\"modal fade\" id=\"modal_form_confirme\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
                        <div class=\"modal-dialog opacity-animate4\">
                            <div class=\"modal-content\">
                                <div class=\"modal-header\">
                                    <button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
                                    <h3 class=\"modal-title\" style=\"text-align: center;\">Voulez-vous vraiment supprimer cet élément ?</h3>
                                </div>
                                <div class=\"modal-body\">
                                    <div id=\"div__conf\">
                                        <button class=\"btn btn-warning supprimer\" data-id = \"\"  data-dismiss=\"modal\" data-confirm = \"oui\">Supprimer</button>
                                        <button class=\"btn btn-warning annuler\" data-dismiss=\"modal\" data-confirm = \"non\">Annuler</button>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>

                    <!-- fin Modal suppr  -->

                </div>

            </div>
        </div>

    </section>
    <div class=\"load_modif\">
        <p>Patienter...</p>
    </div>


{% endblock %}

{% block javascripts %}
<!-- un plugin tres important pour les input -->

<script src=\"{{ asset('js/cleave.min.js') }}\"></script>


<script>

    document.querySelector(\".input_pourcent\").onkeyup = function(){
        handleChange(this);
       // alert('kjh')
    }



\tfunction handleChange(input) {

    if (input.value < 0) {
    input.value = 0;
    } else if (input.value > 100) {
    input.value = 100;
    } else if (isNaN(input.value)) {
    input.value = 0;
    }

    }
</script>

<!-- limiter les  -->

<script>

\t/* utilisation de cleave.js pour les input */

    // style des % et Ar
    var n = document.querySelectorAll(\".input_nombre\");
    for (var i = n.length - 1; i >= 0; i--) {
    new Cleave(n[i], { // prefix: 'Ar ',
    numeral: true,
    delimiter: [' '],
    numeralThousandsGroupStyle: 'thousand',
    numericOnly: true
    });
    }


new Cleave('.input_pourcent', {blocks: [4]});


/* fin utilisation de cleave.js pour les input */

</script>
<script>

\t\$(document).ready(function () {
        
});
</script>

<script>

        // ajout de client 

        \$(document).ready(function(){
            /* table */
                var pseudo_hotel = \$('#hide_pseudo_hotel').val();
        //alert(pseudo_hotel);
        var table = \$('#tableau_client_donnee_jour').DataTable({
                    \"language\": {
                        \"sEmptyTable\": \"Aucune donnée disponible dans le tableau\",
                        \"sInfo\": \"Affichage de l'élément _START_ à _END_ sur _TOTAL_ éléments\",
                        \"sInfoEmpty\": \"Affichage de l'élément 0 à 0 sur 0 élément\",
                        \"sInfoFiltered\": \"(filtré à partir de _MAX_ éléments au total)\",
                        \"sInfoPostFix\": \"\",
                        \"sInfoThousands\": \",\",
                        \"sLengthMenu\": \"Afficher _MENU_ éléments\",
                        \"sLoadingRecords\": \"Chargement...\",
                        \"sProcessing\": \"Traitement...\",
                        \"sSearch\": \"Rechercher :\",
                        \"sZeroRecords\": \"Aucun élément correspondant trouvé\",
                        \"oPaginate\": {
                            \"sFirst\": \"Premier\",
                            \"sLast\": \"Dernier\",
                            \"sNext\": \"Suivant\",
                            \"sPrevious\": \"Précédent\"
                        },
                        \"oAria\": {
                            \"sSortAscending\": \": activer pour trier la colonne par ordre croissant\",
                            \"sSortDescending\": \": activer pour trier la colonne par ordre décroissant\"
                        },
                        \"select\": {
                            \"rows\": {
                                    \"_\": \"%d lignes sélectionnées\",
                                    \"0\": \"Aucune ligne sélectionnée\",
                                    \"1\": \"1 ligne sélectionnée\"
                            }
                        }
                    },

                    \"ajax\" : {
                        url : \"/profile/select_client/today\", // any am Clientcontroller
                        type : 'POST', 
                        data : {'pseudo_hotel' : pseudo_hotel},
                        // success : function(response){
                        //     alert(response);
                        // }, 
                        // error : function(){
                        //     alert('erreur server');
                        // },
                        \"dataSrc\":\"\",
                        
                    },

                    //annule le tri
                    order : [[0 , 'asc']],
                    ordering : false,

                    responsive: true,
                    scrollY: false, // raha scrollena de asina val ex 400
                    scrollX: true,
                    scrollCollapse: true,
                    paging: true,
                     autoFill: true
                });

                new \$.fn.dataTable.FixedHeader(table);

            /*  fiun table */

            \$(\"#ajouter_client\").click(function (e) { 
                e.preventDefault();
                // alert('ksg')
                var nom = \$('#nom_client').val();
                var prenom = \$('#prenom_client').val();
                var date_arrivee = \$('#date_arrivee').val();
                var date_depart = \$('#date_depart').val();
                var data = {
                    \"nom_client\" : nom,
                    \"prenom_client\" : prenom,
                    \"date_arrivee\" : date_arrivee,
                    \"date_depart\" : date_depart
                };

                // test

                //alert(\"nom = \"+nom+\" prenom = \"+prenom+ \"  date ar = \"+date_arrivee+\" date dep = \"+date_depart); 

                // ajax 

                \$.ajax({
                    url : \"{{ path('hebergement', {'pseudo_hotel' : hotel}) }}\",
                    type : \"POST\",
                    data : data,
                    beforeSend : function(){
                        \$(\"#ajouter_client\").html('<span>Patienter...</span>');
                    },
                    success : function (response) {
                        if(response == \"ok\"){
                            // on initialise le formulaire
                            \$('#nom_client').val(\"\");
                            \$('#prenom_client').val(\"\");
                            \$('#date_arrivee').val(\"d-m-YYYY\");
                            \$('#date_depart').val(\"d-m-YYYY\");
                            
                        }
                    },
                    complete : function(){
                            table.ajax.reload(null, false);
                         \$(\"#ajouter_client\").html('<span class=\"fa fa-plus\"></span><span>Ajouter</span>');
                    },
                    error : function() {
                        alert('Erreur dans le serveur')
                    },

                })
                
            });

            // suppression client présent 

            \$(document).on('click', \".btn_client_suppr\", function(ev){
                //ev.preventDefault();
                var id = \$(this).attr('data-id');
                //alert(id);
                \$('#div__conf button.supprimer').attr('data-id', id);
            })

            \$('#div__conf button.supprimer').on('click', function(){
                 var id = \$(this).attr('data-id');
                 //alert(id);
                 // ajax
                 \$.ajax({
                     url : \"/admin/suprimer_client\",
                     data : {
                         \"client_id\" : id,
                         \"pseudo_hotel\" : pseudo_hotel,
                     },
                     type : \"POST\",
                     success : function(response){
                         if(response == \"deleted\"){
                             table.ajax.reload(null, false);
                         }
                     },
                     error : function(error){
                         alert('erreur de server suppression client dans donnée du jour ');
                     },
                })
            })

            /* fin suppression client*/

            /* debut modif client */

            \$(document).on('click', '.btn_client_modif', function(ev){
                ev.preventDefault();
                 var id = \$(this).attr('data-id');
                 //alert(id);
                 \$.ajax({
                     url : \"/admin/check_client\",
                     data : {
                         \"client_id\" : id,
                     },
                     type : \"POST\",
                    
                     success : function(response){
                         \$('.modal_modif_client').html(response);
                          \$('#modal_form').modal('show');
                     },
                     error : function(error){
                         alert('erreur de server');
                     },
                })
            })

            \$(document).on('click', '#a_modal_modif_client', function(ev){
                ev.preventDefault();
                var id = \$(this).attr(\"data-id\");
                var nom = \$('#modif_nom_client').val();
                var prenom = \$('#modif_prenom_client').val();
                var date_arrivee = \$('#modif_date_arrivee').val();
                var date_depart = \$('#modif_date_depart').val();
                //alert(id+\"/\"+nom+\"/\"+date_depart+\"/\"+date_arrivee+\"/\"+prenom);
                // ajax
                \$.ajax({
                     url : \"/admin/edit_client\",
                     data : {
                         \"id\" : id,
                         \"nom\" : nom,
                         \"prenom\" : prenom,
                         \"date_arrivee\" : date_arrivee,
                         \"date_depart\" : date_depart,
                     },
                     type : \"POST\",
                    beforeSend : function(){
                       \$('#a_modal_modif_client').html('<span>Patienter...</span>'); 
                    },
                     success : function(response){
                        if(response == \"ok\"){
                            table.ajax.reload(null, false);
                             \$('#modal_form').modal('hide');
                        }
                     },
                     error : function(error){
                         alert('erreur de server');
                     },
                     complete : function(){
                          \$('#a_modal_modif_client').html('<span>Enregistrer</span>'); 
                     },
                })
            })
            


            
        })


</script>


{% endblock %}", "page/donnee_jour.html.twig", "F:\\Projet_symfony\\sounds\\templates\\page\\donnee_jour.html.twig");
    }
}
