<?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/h_hebergement.html.twig */
class __TwigTemplate_072cb5af1486f4e378df8bf004db235366504f350030a8f219db3a0a7d3561ba 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/h_hebergement.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/h_hebergement.html.twig"));

        $this->parent = $this->loadTemplate("base.html.twig", "page/h_hebergement.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 "\tHébergement
";
        
        $__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
\tid=\"contents\" class=\"container-fluid\">
\t<!-- entete content -->
\t<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>

\t</div>
\t<!-- / entete content -->

\t<!-- contenue  -->
\t<div id=\"hrs_content\">
\t\t<div>
\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-sm-12 col-xs-12\">
\t\t\t\t<section class=\"section_part\" id=\"section_part_top\">
\t\t\t\t\t<div class=\"sous_titre\">
\t\t\t\t\t\t<h3>Historique Hébergement</h3>
\t\t\t\t\t</div>
\t\t\t\t</section>
\t\t\t</div>
\t\t\t<div class=\"col-lg-8 col-md-8 col-sm-12 col-sm-12 col-xs-12\">
\t\t\t\t<section class=\"section_part tab_content margin_tab\">
\t\t\t\t\t<section class=\" filtre\">
\t\t\t\t\t\t<div class=\"sous_titre_filtre\">
\t\t\t\t\t\t\t<h3>Filtre</h3>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<form action=\"\" class=\"tri\">
\t\t\t\t\t\t\t<input type=\"date\">
\t\t\t\t\t\t\t<input type=\"date\">
\t\t\t\t\t\t\t<button class=\"btn btn-primary btn-xs btn_filter\"><span>Filtrer</span></button>
\t\t\t\t\t\t</form>
\t\t\t\t\t</section>
\t\t\t\t\t<div class=\"section\">

\t\t\t\t\t\t<div class=\"tableau tab_historique\">
\t\t\t\t\t\t\t<table class=\"display\" id=\"tableau_historique_heb\" style=\"width:100%\">
\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<span>TAUX D'OCCUPATION</span>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<span>CHIFFRE D'AFFAIRE</span>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<span>DATE</span>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<span>ACTIONS</span>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<!-- Modal modif  -->
\t\t\t\t\t<div class=\"modal fade\" id=\"modal_form\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
\t\t\t\t\t\t<div class=\"modal-dialog opacity-animate4\">
\t\t\t\t\t\t\t<div class=\"modal-content\">
\t\t\t\t\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t\t\t\t\t<h3 class=\"modal-title\" style=\"text-align: center;\">Modification</h3>

\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"modal-body\" id = \"modal_modif_ddj\">
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t</div>

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

\t\t\t\t\t<!-- Modal suppr  -->
\t\t\t\t\t<div class=\"modal fade\" id=\"modal_form_confirme\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
\t\t\t\t\t\t<div class=\"modal-dialog opacity-animate4\">
\t\t\t\t\t\t\t<div class=\"modal-content\">
\t\t\t\t\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t\t\t\t\t<h3 class=\"modal-title\" style=\"text-align: center;\">Voulez-vous vraiment supprimer cet élément ?</h3>
\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>

\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<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>

\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- fin Modal suppr  -->

\t\t\t\t</section>
\t\t\t</div>
\t\t</div>
\t</div>
\t<!-- / contenue  -->
</section>


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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

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

<script>

\t function 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;
        }

    }

   

\t\$(document).ready(function () {
\t\tvar pseudo_hotel = \"";
        // line 198
        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.', 198, $this->source); })()), "html", null, true);
        echo "\" ;
\t\t//alert(pseudo_hotel)
        var table = \$('#tableau_historique_heb').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\"
        }
        }
        },
\t\t\"ajax\" : {
                        url : \"/profile/historique_heb\", // 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);

\t\t// suppression ddj 

            \$(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_ddj\",
                     data : {
                         \"ddj_id\" : id,
                         \"pseudo_hotel\" : pseudo_hotel,
                     },
                     type : \"POST\",
                     success : function(response){
                        if(response == \"deleted\"){
\t\t\t\t\t\t\ttable.ajax.reload(null, false);
\t\t\t\t\t\t}
                     },
                     error : function(error){
                         alert('erreur de server au suppression donnee de jour');
                     },
                })
\t\t\t\t
            })

            /* fin suppression ddj*/

\t\t\t/* modif  */
\t\t\t// check out
\t\t\t\$(document).on('click', '.btn_ddj_modif', function(ev){
\t\t\t\tev.preventDefault();
\t\t\t\t//alert('io');
\t\t\t\tvar id  = \$(this).attr('data-id');
\t\t\t\t
\t\t\t\t\$.ajax({
\t\t\t\t\turl : \"/profile/checkout_h_heb\",
\t\t\t\t\ttype : \"POST\",
\t\t\t\t\tdata : {
\t\t\t\t\t\t\"ddj_id\" : id,
\t\t\t\t\t\t\"pseudo_hotel\" : pseudo_hotel,
\t\t\t\t\t},
\t\t\t\t\tsuccess : function (response) {
\t\t\t\t\t\tif(response){
\t\t\t\t\t\t\t\$('#modal_modif_ddj').html(response);
\t\t\t\t\t\t\t\t\$('#modal_form').modal('show');
\t\t\t\t\t\t\t \tvar n = document.querySelectorAll(\".ca\");
\t\t\t\t\t\t\t\tfor (var i = n.length - 1; i >= 0; i--) {
\t\t\t\t\t\t\t\t\tnew Cleave(n[i], { // prefix: 'Ar ',
\t\t\t\t\t\t\t\t\t\tnumeral: true,
\t\t\t\t\t\t\t\t\t\tdelimiter: [' '],
\t\t\t\t\t\t\t\t\t\tnumeralThousandsGroupStyle: 'thousand',
\t\t\t\t\t\t\t\t\t\tnumericOnly: true
\t\t\t\t\t\t\t\t\t});
\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\tnew Cleave('.histo_pourcent', {blocks: [4]});
\t\t\t\t\t\t\t
\t\t\t\t\t\t}
\t\t\t\t\t},
\t\t\t\t\terror : function(error){
\t\t\t\t\t\talert('erreur server au niveau de checkout ddj');
\t\t\t\t\t}
\t\t\t\t})
\t\t\t})

\t\t\t\$(document).on('click', '#btn_edit_ddj', function(ev){
\t\t\t\tev.preventDefault();
\t\t\t\tvar id = \$(this).attr('data-id');
\t\t\t\t\$.ajax({
\t\t\t\t\turl : \"/profile/historique/heb\",
\t\t\t\t\ttype : \"POST\",
\t\t\t\t\tdata : {
\t\t\t\t\t\t'id' : id,
\t\t\t\t\t\t'heb_to' : \$('#modal_modif_heb_to').val(),
\t\t\t\t\t\t'heb_ca' : \$('#modal_modif_heb_ca').val(),
\t\t\t\t\t},
\t\t\t\t\tbeforeSend : function(){
\t\t\t\t\t\t\$('#btn_edit_ddj span').text('Patienter ...');
\t\t\t\t\t},
\t\t\t\t\tsuccess : function(response){
\t\t\t\t\t\tif(response == \"ok\"){

\t\t\t\t\t\t\ttable.ajax.reload(null, false);
\t\t\t\t\t\t\t\$('#modal_form').modal('hide');

\t\t\t\t\t\t}
\t\t\t\t\t},
\t\t\t\t\terror : function(error){
\t\t\t\t\t\talert('erreur serveur au niveau du modif ddj dans modal');
\t\t\t\t\t}, 
\t\t\t\t\tcomplete : function () {
\t\t\t\t\t\t\$('#btn_edit_ddj span').text('Enregistrer');
\t\t\t\t\t}
\t\t\t\t})
\t\t\t})



    });

   




</script>

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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  372 => 198,  350 => 179,  347 => 178,  337 => 177,  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 %}
\tHébergement
{% endblock %}

{% block stylesheets %}
\t<link rel=\"stylesheet\" href=\"{{ asset('css/dashboard.css')}}\">
{% endblock %}
{% block body %}
    
<section
\tid=\"contents\" class=\"container-fluid\">
\t<!-- entete content -->
\t<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>

\t</div>
\t<!-- / entete content -->

\t<!-- contenue  -->
\t<div id=\"hrs_content\">
\t\t<div>
\t\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-sm-12 col-xs-12\">
\t\t\t\t<section class=\"section_part\" id=\"section_part_top\">
\t\t\t\t\t<div class=\"sous_titre\">
\t\t\t\t\t\t<h3>Historique Hébergement</h3>
\t\t\t\t\t</div>
\t\t\t\t</section>
\t\t\t</div>
\t\t\t<div class=\"col-lg-8 col-md-8 col-sm-12 col-sm-12 col-xs-12\">
\t\t\t\t<section class=\"section_part tab_content margin_tab\">
\t\t\t\t\t<section class=\" filtre\">
\t\t\t\t\t\t<div class=\"sous_titre_filtre\">
\t\t\t\t\t\t\t<h3>Filtre</h3>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<form action=\"\" class=\"tri\">
\t\t\t\t\t\t\t<input type=\"date\">
\t\t\t\t\t\t\t<input type=\"date\">
\t\t\t\t\t\t\t<button class=\"btn btn-primary btn-xs btn_filter\"><span>Filtrer</span></button>
\t\t\t\t\t\t</form>
\t\t\t\t\t</section>
\t\t\t\t\t<div class=\"section\">

\t\t\t\t\t\t<div class=\"tableau tab_historique\">
\t\t\t\t\t\t\t<table class=\"display\" id=\"tableau_historique_heb\" style=\"width:100%\">
\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<span>TAUX D'OCCUPATION</span>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<span>CHIFFRE D'AFFAIRE</span>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<span>DATE</span>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<span>ACTIONS</span>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>

\t\t\t\t\t<!-- Modal modif  -->
\t\t\t\t\t<div class=\"modal fade\" id=\"modal_form\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
\t\t\t\t\t\t<div class=\"modal-dialog opacity-animate4\">
\t\t\t\t\t\t\t<div class=\"modal-content\">
\t\t\t\t\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t\t\t\t\t<h3 class=\"modal-title\" style=\"text-align: center;\">Modification</h3>

\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"modal-body\" id = \"modal_modif_ddj\">
\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t</div>

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

\t\t\t\t\t<!-- Modal suppr  -->
\t\t\t\t\t<div class=\"modal fade\" id=\"modal_form_confirme\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
\t\t\t\t\t\t<div class=\"modal-dialog opacity-animate4\">
\t\t\t\t\t\t\t<div class=\"modal-content\">
\t\t\t\t\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t\t\t\t\t<h3 class=\"modal-title\" style=\"text-align: center;\">Voulez-vous vraiment supprimer cet élément ?</h3>
\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>

\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<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>

\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<!-- fin Modal suppr  -->

\t\t\t\t</section>
\t\t\t</div>
\t\t</div>
\t</div>
\t<!-- / contenue  -->
</section>


{% endblock %}

{% block javascripts %}

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

<script>

\t function 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;
        }

    }

   

\t\$(document).ready(function () {
\t\tvar pseudo_hotel = \"{{ hotel }}\" ;
\t\t//alert(pseudo_hotel)
        var table = \$('#tableau_historique_heb').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\"
        }
        }
        },
\t\t\"ajax\" : {
                        url : \"/profile/historique_heb\", // 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);

\t\t// suppression ddj 

            \$(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_ddj\",
                     data : {
                         \"ddj_id\" : id,
                         \"pseudo_hotel\" : pseudo_hotel,
                     },
                     type : \"POST\",
                     success : function(response){
                        if(response == \"deleted\"){
\t\t\t\t\t\t\ttable.ajax.reload(null, false);
\t\t\t\t\t\t}
                     },
                     error : function(error){
                         alert('erreur de server au suppression donnee de jour');
                     },
                })
\t\t\t\t
            })

            /* fin suppression ddj*/

\t\t\t/* modif  */
\t\t\t// check out
\t\t\t\$(document).on('click', '.btn_ddj_modif', function(ev){
\t\t\t\tev.preventDefault();
\t\t\t\t//alert('io');
\t\t\t\tvar id  = \$(this).attr('data-id');
\t\t\t\t
\t\t\t\t\$.ajax({
\t\t\t\t\turl : \"/profile/checkout_h_heb\",
\t\t\t\t\ttype : \"POST\",
\t\t\t\t\tdata : {
\t\t\t\t\t\t\"ddj_id\" : id,
\t\t\t\t\t\t\"pseudo_hotel\" : pseudo_hotel,
\t\t\t\t\t},
\t\t\t\t\tsuccess : function (response) {
\t\t\t\t\t\tif(response){
\t\t\t\t\t\t\t\$('#modal_modif_ddj').html(response);
\t\t\t\t\t\t\t\t\$('#modal_form').modal('show');
\t\t\t\t\t\t\t \tvar n = document.querySelectorAll(\".ca\");
\t\t\t\t\t\t\t\tfor (var i = n.length - 1; i >= 0; i--) {
\t\t\t\t\t\t\t\t\tnew Cleave(n[i], { // prefix: 'Ar ',
\t\t\t\t\t\t\t\t\t\tnumeral: true,
\t\t\t\t\t\t\t\t\t\tdelimiter: [' '],
\t\t\t\t\t\t\t\t\t\tnumeralThousandsGroupStyle: 'thousand',
\t\t\t\t\t\t\t\t\t\tnumericOnly: true
\t\t\t\t\t\t\t\t\t});
\t\t\t\t\t\t\t\t}
\t\t\t\t\t\t\t\tnew Cleave('.histo_pourcent', {blocks: [4]});
\t\t\t\t\t\t\t
\t\t\t\t\t\t}
\t\t\t\t\t},
\t\t\t\t\terror : function(error){
\t\t\t\t\t\talert('erreur server au niveau de checkout ddj');
\t\t\t\t\t}
\t\t\t\t})
\t\t\t})

\t\t\t\$(document).on('click', '#btn_edit_ddj', function(ev){
\t\t\t\tev.preventDefault();
\t\t\t\tvar id = \$(this).attr('data-id');
\t\t\t\t\$.ajax({
\t\t\t\t\turl : \"/profile/historique/heb\",
\t\t\t\t\ttype : \"POST\",
\t\t\t\t\tdata : {
\t\t\t\t\t\t'id' : id,
\t\t\t\t\t\t'heb_to' : \$('#modal_modif_heb_to').val(),
\t\t\t\t\t\t'heb_ca' : \$('#modal_modif_heb_ca').val(),
\t\t\t\t\t},
\t\t\t\t\tbeforeSend : function(){
\t\t\t\t\t\t\$('#btn_edit_ddj span').text('Patienter ...');
\t\t\t\t\t},
\t\t\t\t\tsuccess : function(response){
\t\t\t\t\t\tif(response == \"ok\"){

\t\t\t\t\t\t\ttable.ajax.reload(null, false);
\t\t\t\t\t\t\t\$('#modal_form').modal('hide');

\t\t\t\t\t\t}
\t\t\t\t\t},
\t\t\t\t\terror : function(error){
\t\t\t\t\t\talert('erreur serveur au niveau du modif ddj dans modal');
\t\t\t\t\t}, 
\t\t\t\t\tcomplete : function () {
\t\t\t\t\t\t\$('#btn_edit_ddj span').text('Enregistrer');
\t\t\t\t\t}
\t\t\t\t})
\t\t\t})



    });

   




</script>

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