<?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;
/* MDS/GreenPatioBundle/reservations/list-statistics.html.twig */
class __TwigTemplate_599c8de426c2ee2ec0e036fb3ce496d47ad597b8ed1c0eec17ad184804ab0eb6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'pagetitleinterno' => [$this, 'block_pagetitleinterno'],
'breadcrumbs' => [$this, 'block_breadcrumbs'],
'contentReservation' => [$this, 'block_contentReservation'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "MDS/GreenPatioBundle/base-reservations.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", "MDS/GreenPatioBundle/reservations/list-statistics.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "MDS/GreenPatioBundle/reservations/list-statistics.html.twig"));
$this->parent = $this->loadTemplate("MDS/GreenPatioBundle/base-reservations.html.twig", "MDS/GreenPatioBundle/reservations/list-statistics.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_pagetitleinterno($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", "pagetitleinterno"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pagetitleinterno"));
// line 4
echo " <div class=\"page-title\">
<h4><i class=\"icon-list position-left\"></i> <span class=\"text-semibold\">";
// line 5
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Green Patio", [], "messages");
echo "</span> - ";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Estadísticas", [], "messages");
echo "</h4>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 9
public function block_breadcrumbs($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", "breadcrumbs"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
// line 10
echo " <ul class=\"breadcrumb\">
<li><a href=\"/loungeadmin/list\"><i class=\"icon-home2 position-left\"></i>";
// line 11
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Home", [], "messages");
echo "</a></li>
</ul>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_contentReservation($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", "contentReservation"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentReservation"));
// line 16
echo "
<div class=\"row settings-page\" id=\"client-client-subpage\">
<div class=\"col-sm-12\">
<div class=\"page-header\">
<div class=\"col-sm-12 text-right\">
";
// line 21
if (( !twig_test_empty((isset($context["dateStartReq"]) || array_key_exists("dateStartReq", $context) ? $context["dateStartReq"] : (function () { throw new RuntimeError('Variable "dateStartReq" does not exist.', 21, $this->source); })())) && !twig_test_empty((isset($context["dateEndReq"]) || array_key_exists("dateEndReq", $context) ? $context["dateEndReq"] : (function () { throw new RuntimeError('Variable "dateEndReq" does not exist.', 21, $this->source); })())))) {
// line 22
echo " <form name=\"PrintForecast\" method=\"post\" target=\"_blank\" action=\"/pdf/greenpatioforecast/\" class=\"form-horizontal\" autocomplete=\"off\">
<input type=\"hidden\" id=\"dateStartReq\" name=\"forecast[date_start]\" class=\"form-control hidden\" value=\"";
// line 23
echo twig_escape_filter($this->env, (isset($context["dateStartReq"]) || array_key_exists("dateStartReq", $context) ? $context["dateStartReq"] : (function () { throw new RuntimeError('Variable "dateStartReq" does not exist.', 23, $this->source); })()), "html", null, true);
echo "\" />
<input type=\"hidden\" id=\"dateEndReq\" name=\"forecast[date_end]\" class=\"form-control hidden\" value=\"";
// line 24
echo twig_escape_filter($this->env, (isset($context["dateEndReq"]) || array_key_exists("dateEndReq", $context) ? $context["dateEndReq"] : (function () { throw new RuntimeError('Variable "dateEndReq" does not exist.', 24, $this->source); })()), "html", null, true);
echo "\" />
<div class=\"col-md-6\">
<div class=\"form-group form-group-material\">
<button type=\"submit\" id=\"forecast_submit\" name=\"forecast_button[send]\" class=\"btn bg-black btn-info btn-lg\">";
// line 27
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Previsión de Ventas en PDF", [], "messages");
echo "</button>
</div>
</div>
</form>
";
}
// line 32
echo "
<a href=\"/reservations-greenpatio/listloungedetails\" class=\"btn btn-info btn-gl\">";
// line 33
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("List Lounge", [], "messages");
echo " <i class=\"icon-list position-right\"></i></a>
<a href=\"/reservations-greenpatio/listperiod\" class=\"btn btn-success btn-gl\">";
// line 34
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("List Period", [], "messages");
echo " <i class=\"icon-list position-right\"></i></a>
<a href=\"/reservations-greenpatio/listgpprices\" class=\"btn btn-info btn-gl\">";
// line 35
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("List Price", [], "messages");
echo " <i class=\"icon-list position-right\"></i></a>
<a href=\"/reservations-greenpatio/list\" class=\"btn btn-warning btn-gl\">";
// line 36
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Reservation List", [], "messages");
echo " <i class=\"icon-book position-right\"></i></a>
</div>
</div>
</div>
";
// line 40
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 40, $this->source); })()), "session", [], "any", false, false, false, 40), "flashbag", [], "any", false, false, false, 40), "get", ["mensajeclient"], "method", false, false, false, 40));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 41
echo " <div class=\"hidden alertFlashMensaje\" data-mensaje=\"";
echo twig_escape_filter($this->env, $context["flashMessage"], "html", null, true);
echo "\"></div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 43
echo "
<div class=\"col-sm-12 margen-15\">
<div class=\"panel\">
<div class=\"panel-body\">
<div class=\"col-md-12\" ><strong class=\"text-info\">
<legend class=\"border-teal-800\">";
// line 48
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Consulta de Reservas", [], "messages");
echo "</legend></strong>
</div>
<form name=\"ViewForecast\" method=\"post\" action=\"/reservations-greenpatio/responseliststatistics/\" class=\"form-horizontal\" autocomplete=\"off\">
<div class=\"col-md-2\" style=\"margin-left: 20px\">
<label class=\"control-label\" for=\"forecast_date_start_title\">";
// line 53
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Fecha de inicio", [], "messages");
echo ": </label>
";
// line 55
echo " ";
if ((null === (isset($context["dateStartReq"]) || array_key_exists("dateStartReq", $context) ? $context["dateStartReq"] : (function () { throw new RuntimeError('Variable "dateStartReq" does not exist.', 55, $this->source); })()))) {
// line 56
echo " <input type=\"date\" id=\"forecast_date_start\" name=\"forecast[date_start]\" class=\"form-control\">
";
} else {
// line 58
echo " <input type=\"date\" id=\"forecast_date_start\" name=\"forecast[date_start]\" class=\"form-control\" value=\"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["dateStartReq"]) || array_key_exists("dateStartReq", $context) ? $context["dateStartReq"] : (function () { throw new RuntimeError('Variable "dateStartReq" does not exist.', 58, $this->source); })()), "Y-m-d"), "html", null, true);
echo "\">
";
}
// line 60
echo " </div>
<div class=\"col-md-2\" style=\"margin-left: 20px\">
<label class=\"control-label\" for=\"forecast_date_end_title\">";
// line 63
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Fecha de fin", [], "messages");
echo ": </label>
";
// line 65
echo " ";
if ((null === (isset($context["dateEndReq"]) || array_key_exists("dateEndReq", $context) ? $context["dateEndReq"] : (function () { throw new RuntimeError('Variable "dateEndReq" does not exist.', 65, $this->source); })()))) {
// line 66
echo " <input type=\"date\" id=\"forecast_date_end\" name=\"forecast[date_end]\" class=\"form-control\">
";
} else {
// line 68
echo " <input type=\"date\" id=\"forecast_date_end\" name=\"forecast[date_end]\" class=\"form-control\" value=\"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["dateEndReq"]) || array_key_exists("dateEndReq", $context) ? $context["dateEndReq"] : (function () { throw new RuntimeError('Variable "dateEndReq" does not exist.', 68, $this->source); })()), "Y-m-d"), "html", null, true);
echo "\">
";
}
// line 70
echo " </div>
<div class=\"col-md-2\" style=\"margin-left: 20px\">
<div class=\"col-md-6\"><label class=\"control-label text-left\">";
// line 73
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Client", [], "messages");
echo "</label></div>
<div class=\"col-md-12\">
<select id=\"client\" name=\"client\" class=\"form-control\">
<option value=\"\">";
// line 76
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Select a client", [], "messages");
echo "</option>
";
// line 77
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["clients"]) || array_key_exists("clients", $context) ? $context["clients"] : (function () { throw new RuntimeError('Variable "clients" does not exist.', 77, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["client"]) {
// line 78
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["client"], "Id", [], "any", false, false, false, 78), (isset($context["clientId"]) || array_key_exists("clientId", $context) ? $context["clientId"] : (function () { throw new RuntimeError('Variable "clientId" does not exist.', 78, $this->source); })())))) {
// line 79
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["client"], "id", [], "any", false, false, false, 79), "html", null, true);
echo "\" selected=\"selected\">";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, $context["client"], "name", [], "any", false, false, false, 79)), "html", null, true);
echo " </option>
";
} else {
// line 81
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["client"], "id", [], "any", false, false, false, 81), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, $context["client"], "name", [], "any", false, false, false, 81)), "html", null, true);
echo " </option>
";
}
// line 83
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['client'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 84
echo " </select>
</div>
</div>
<div class=\"col-xs-12 col-lg-5\" style=\"margin-left: 20px; z-index: 1;\">
<div class=\"col-xs-12\"><label class=\"control-label text-center\">";
// line 89
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Estado de la reserva", [], "messages");
echo "</label></div>
<div class=\"col-xs-12\"></div>
<div class=\"col-xs-6 col-lg-2\" style=\"padding-top: -5px; padding-left: 10px\">
<div class=\"checkbox checkbox-switchery switchery-lg switchery-double text-left\" title=\"\">
<label>
";
// line 95
echo " ";
if ((array_key_exists("boolBlocked", $context) && (0 === twig_compare((isset($context["boolBlocked"]) || array_key_exists("boolBlocked", $context) ? $context["boolBlocked"] : (function () { throw new RuntimeError('Variable "boolBlocked" does not exist.', 95, $this->source); })()), true)))) {
// line 96
echo " <input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolBlocked\" name=\"boolStatus[Blocked]\" checked=\"checked\" onchange=\"changeChkLounge();\">
";
} else {
// line 98
echo " <input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolBlocked\" name=\"boolStatus[Blocked]\" onchange=\"changeChkLounge();\">
";
}
// line 100
echo " </label>
<label class=\"control-label text-left\" style=\"padding-top: 10px\">";
// line 101
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Bloqueado", [], "messages");
echo "</label>
</div>
</div>
<div class=\"col-xs-6 col-lg-2\" style=\"padding-top: -5px; padding-left: 10px\">
<div class=\"checkbox checkbox-switchery switchery-lg switchery-double text-left\" title=\"\">
<label>
";
// line 109
echo " ";
if ((array_key_exists("boolConfirmed", $context) && (0 === twig_compare((isset($context["boolConfirmed"]) || array_key_exists("boolConfirmed", $context) ? $context["boolConfirmed"] : (function () { throw new RuntimeError('Variable "boolConfirmed" does not exist.', 109, $this->source); })()), true)))) {
// line 110
echo " <input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolConfirmed\" name=\"boolStatus[Confirmed]\" checked=\"checked\" onchange=\"changeChkLounge();\">
";
} else {
// line 112
echo " <input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolConfirmed\" name=\"boolStatus[Confirmed]\" onchange=\"changeChkLounge();\">
";
}
// line 114
echo " </label>
<label class=\"control-label text-left\" style=\"padding-top: 10px\">";
// line 115
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Confirmado", [], "messages");
echo "</label>
</div>
</div>
<div class=\"col-xs-6 col-lg-2\" style=\"padding-top: -5px; padding-left: 10px\">
<div class=\"checkbox checkbox-switchery switchery-lg switchery-double text-left\" title=\"\">
<label>
";
// line 123
echo " ";
if ((array_key_exists("boolQuoted", $context) && (0 === twig_compare((isset($context["boolQuoted"]) || array_key_exists("boolQuoted", $context) ? $context["boolQuoted"] : (function () { throw new RuntimeError('Variable "boolQuoted" does not exist.', 123, $this->source); })()), true)))) {
// line 124
echo " <input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolQuoted\" name=\"boolStatus[Quoted]\" checked=\"checked\" onchange=\"changeChkLounge();\">
";
} else {
// line 126
echo " <input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolQuoted\" name=\"boolStatus[Quoted]\" onchange=\"changeChkLounge();\">
";
}
// line 128
echo " </label>
<label class=\"control-label text-left\" style=\"padding-top: 10px\">";
// line 129
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Cotizado", [], "messages");
echo "</label>
</div>
</div>
<div class=\"col-xs-6 col-lg-2\" style=\"padding-top: -5px; padding-left: 10px\">
<div class=\"checkbox checkbox-switchery switchery-lg switchery-double text-left\" title=\"\">
<label>
";
// line 137
echo " ";
if ((array_key_exists("boolInvoiced", $context) && (0 === twig_compare((isset($context["boolInvoiced"]) || array_key_exists("boolInvoiced", $context) ? $context["boolInvoiced"] : (function () { throw new RuntimeError('Variable "boolInvoiced" does not exist.', 137, $this->source); })()), true)))) {
// line 138
echo " <input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolInvoiced\" name=\"boolStatus[Invoiced]\" checked=\"checked\" onchange=\"changeChkLounge();\">
";
} else {
// line 140
echo " <input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolInvoiced\" name=\"boolStatus[Invoiced]\" onchange=\"changeChkLounge();\">
";
}
// line 142
echo " </label>
<label class=\"control-label text-left\" style=\"padding-top: 10px\">";
// line 143
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Facturado", [], "messages");
echo "</label>
</div>
</div>
<div class=\"col-xs-6 col-lg-2\" style=\"padding-top: -5px; padding-left: 10px\">
<div class=\"checkbox checkbox-switchery switchery-lg switchery-double text-left\" title=\"\">
<label>
";
// line 151
echo " ";
if ((array_key_exists("boolCancel", $context) && (0 === twig_compare((isset($context["boolCancel"]) || array_key_exists("boolCancel", $context) ? $context["boolCancel"] : (function () { throw new RuntimeError('Variable "boolCancel" does not exist.', 151, $this->source); })()), true)))) {
// line 152
echo " <input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolCancel\" name=\"boolStatus[Cancel]\" checked=\"checked\" onchange=\"changeChkLounge();\">
";
} else {
// line 154
echo " <input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolCancel\" name=\"boolStatus[Cancel]\" onchange=\"changeChkLounge();\">
";
}
// line 156
echo " </label>
<label class=\"control-label text-left\" style=\"padding-top: 10px\">";
// line 157
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Cancelado", [], "messages");
echo "</label>
</div>
</div>
</div>
<div class=\"col-md-12\" style=\"margin-top: 20px\"></div>
<style>
/* Estilo para ajustar la lista dropdown */
.dropdown-menu {
max-height: 200px;
overflow-y: auto;
}
/* Ajustar la apariencia de la lista */
.dropdown-menu label {
padding: 5px 15px;
display: block;
}
/* Estilo adicional para alinear los checkbox con el texto */
.checkbox-inline input {
margin-right: 10px;
}
</style>
<div class=\"col-md-12 col-xs-12\" style=\"padding-left: 40px; padding-right: 40px\">
<div class=\"form-group form-group-material\">
";
// line 186
echo " ";
// line 187
echo " ";
// line 188
echo " <div id=\"multiselect_tags\" class=\"input-group col-sm-12 InputTagsSpinner multi-select-full\" style=\"width: 100%\">
<div class=\"dropdown\" style=\"width: 100%\">
<button class=\"btn btn-default dropdown-toggle\" type=\"button\" id=\"dropdownMenu\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" style=\"width: 100%\">
";
// line 191
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Todas las Salas", [], "messages");
// line 192
echo " <span class=\"caret\"></span>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu\" style=\"width: 100%\">
";
// line 195
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["salas"]) || array_key_exists("salas", $context) ? $context["salas"] : (function () { throw new RuntimeError('Variable "salas" does not exist.', 195, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["sala"]) {
// line 196
echo " <li>
<label class=\"checkbox-inline\">
<input type=\"checkbox\" name=\"tags[tags2][]\" value=\"";
// line 198
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sala"], "id", [], "any", false, false, false, 198), "html", null, true);
echo "\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["sala"], "name", [], "any", false, false, false, 198), "html", null, true);
echo "
</label>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sala'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 202
echo " </ul>
</div>
<input type=\"hidden\" id=\"selected_salas\" name=\"selected_salas\" value=\"\">
</div>
<span class=\"help-block\"></span>
</div>
</div>
<div class=\"col-md-12\" style=\"margin-top: 20px\"></div>
<div class=\"col-md-4\"></div>
<div class=\"col-md-4\">
<div class=\"form-group form-group-material\">
<button type=\"submit\" id=\"forecast_submit\" name=\"forecast_button[send]\" class=\"btn bg-success btn-block btn-lg\">";
// line 214
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Buscar", [], "messages");
echo "</button>
</div>
</div>
</form>
</div>
</div>
</div>
";
// line 223
if ( !twig_test_empty((isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 223, $this->source); })()))) {
// line 224
echo " <div class=\"col-md-12 margen-15\">
<div class=\"panel\">
<div class=\"panel-heading\">
<div class=\"panel-body border-blue\">
<div class=\"col-md-12 col-xs-12\" ><strong class=\"text-info\">
<legend class=\"border-teal-800\">";
// line 229
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Listado de Reservas", [], "messages");
echo "</legend></strong>
";
// line 230
echo twig_escape_filter($this->env, (isset($context["consulta"]) || array_key_exists("consulta", $context) ? $context["consulta"] : (function () { throw new RuntimeError('Variable "consulta" does not exist.', 230, $this->source); })()), "html", null, true);
echo "
<br>
<br>
<br>
</div>
<table id=\"table-client\" class=\"table datatable-sum table-bordered table-hover datatable-highlight\">
<thead>
<tr>
<th>";
// line 238
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Fecha de inicio", [], "messages");
echo "</th>
<th>";
// line 239
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Client", [], "messages");
echo "</th>
<th>";
// line 240
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Título", [], "messages");
echo "</th>
<th>";
// line 241
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Status", [], "messages");
echo "</th>
<th>";
// line 242
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Espacios", [], "messages");
echo "</th>
<th>";
// line 243
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Venta Neta", [], "messages");
echo "</th>
<th>";
// line 244
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Iva", [], "messages");
echo "</th>
<th class=\"text-center\">";
// line 245
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Actions", [], "messages");
echo "</th>
</tr>
</thead>
<tbody>
";
// line 249
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 249, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["resv"]) {
// line 250
echo " <tr>
<td><div class=\"hidden\">";
// line 251
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resv"], "dateStart", [], "any", false, false, false, 251), "Y/m/d"), "html", null, true);
echo "</div>";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resv"], "dateStart", [], "any", false, false, false, 251), "d/m/Y"), "html", null, true);
echo "</td>
<td>";
// line 252
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resv"], "clientName", [], "any", false, false, false, 252), "html", null, true);
echo "</td>
<td>";
// line 253
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resv"], "title", [], "any", false, false, false, 253), "html", null, true);
echo "</td>
<td>";
// line 254
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resv"], "status", [], "any", false, false, false, 254), "html", null, true);
echo "</td>
<td>
";
// line 256
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["resv"], "txtArrayLoungesNames", [], "any", false, false, false, 256));
foreach ($context['_seq'] as $context["key"] => $context["spaceName"]) {
// line 257
echo " ";
if (((1 === twig_compare($context["key"], 21)) && (-1 === twig_compare($context["key"], 30)))) {
// line 258
echo " <span class=\"badge bg-primary-400 heading-text\" style=\"font-size: small\"> ";
echo twig_escape_filter($this->env, $context["spaceName"], "html", null, true);
echo " </span> ";
// line 259
echo " ";
} else {
// line 260
echo " ";
if ((1 === twig_compare($context["key"], 29))) {
// line 261
echo " <span class=\"badge bg-brown-400 heading-text\" style=\"font-size: small\"> ";
echo twig_escape_filter($this->env, $context["spaceName"], "html", null, true);
echo " </span> ";
// line 262
echo " ";
} else {
// line 263
echo " <span class=\"badge badge-success text-center\" style=\"font-size: small\"> ";
echo twig_escape_filter($this->env, $context["spaceName"], "html", null, true);
echo " </span> ";
// line 264
echo " ";
}
// line 265
echo " ";
}
// line 266
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['spaceName'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 267
echo " </td>
<td>";
// line 268
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resv"], "neto", [], "any", false, false, false, 268), 2, ",", "."), "html", null, true);
echo "</td>
<td>";
// line 269
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resv"], "vat", [], "any", false, false, false, 269), 2, ",", "."), "html", null, true);
echo "</td>
<td class=\"text-center\">
<ul class=\"icons-list\">
<li class=\"dropdown\">
<a class=\"btn border-info text-info btn-flat btn-rounded btn-icon btn-lg\" href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">
<i class=\"icon-menu9\"></i>
</a>
<ul class=\"dropdown-menu dropdown-menu-right bg-teal-400\">
<li><a href=\"/reservations-greenpatio/editsimple/";
// line 277
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resv"], "reservationId", [], "any", false, false, false, 277), "html", null, true);
echo "\"><i class=\"icon-eye pull-right\"></i> ";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Ver Reserva", [], "messages");
echo "</a></li>
</ul>
</li>
</ul>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['resv'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 284
echo " </tbody>
<tfoot>
<tr>
<th colspan=\"5\" class=\"text-right\">Previsión de Venta en tabla: </th>
<th colspan=\"1\"></th>
<th colspan=\"1\"></th>
<th colspan=\"1\"></th>
</tr>
</tfoot>
</table>
<form name=\"ExcelForecast\" method=\"post\" action=\"/reservations-greenpatio/xlsstatistics/\" class=\"form-horizontal\" autocomplete=\"off\">
<input id=\"xlsDateStartReq\" name=\"xls[dateStartReq]\" class=\"hidden\" value=\"";
// line 297
echo twig_escape_filter($this->env, (isset($context["dateStartReq"]) || array_key_exists("dateStartReq", $context) ? $context["dateStartReq"] : (function () { throw new RuntimeError('Variable "dateStartReq" does not exist.', 297, $this->source); })()), "html", null, true);
echo "\">
<input id=\"xlsDateEndReq\" name=\"xls[dateEndReq]\" class=\"hidden\" value=\"";
// line 298
echo twig_escape_filter($this->env, (isset($context["dateEndReq"]) || array_key_exists("dateEndReq", $context) ? $context["dateEndReq"] : (function () { throw new RuntimeError('Variable "dateEndReq" does not exist.', 298, $this->source); })()), "html", null, true);
echo "\">
<input id=\"xlsClientId\" name=\"xls[clientId]\" class=\"hidden\" value=\"";
// line 299
echo twig_escape_filter($this->env, (isset($context["clientId"]) || array_key_exists("clientId", $context) ? $context["clientId"] : (function () { throw new RuntimeError('Variable "clientId" does not exist.', 299, $this->source); })()), "html", null, true);
echo "\">
<input id=\"xlsBoolBlocked\" name=\"xls[boolBlocked]\" class=\"hidden\" value=\"";
// line 300
echo twig_escape_filter($this->env, (isset($context["boolBlocked"]) || array_key_exists("boolBlocked", $context) ? $context["boolBlocked"] : (function () { throw new RuntimeError('Variable "boolBlocked" does not exist.', 300, $this->source); })()), "html", null, true);
echo "\">
<input id=\"xlsBoolConfirmed\" name=\"xls[boolConfirmed]\" class=\"hidden\" value=\"";
// line 301
echo twig_escape_filter($this->env, (isset($context["boolConfirmed"]) || array_key_exists("boolConfirmed", $context) ? $context["boolConfirmed"] : (function () { throw new RuntimeError('Variable "boolConfirmed" does not exist.', 301, $this->source); })()), "html", null, true);
echo "\">
<input id=\"xlsBoolQuoted\" name=\"xls[boolQuoted]\" class=\"hidden\" value=\"";
// line 302
echo twig_escape_filter($this->env, (isset($context["boolQuoted"]) || array_key_exists("boolQuoted", $context) ? $context["boolQuoted"] : (function () { throw new RuntimeError('Variable "boolQuoted" does not exist.', 302, $this->source); })()), "html", null, true);
echo "\">
<input id=\"xlsBoolInvoiced\" name=\"xls[boolInvoiced]\" class=\"hidden\" value=\"";
// line 303
echo twig_escape_filter($this->env, (isset($context["boolInvoiced"]) || array_key_exists("boolInvoiced", $context) ? $context["boolInvoiced"] : (function () { throw new RuntimeError('Variable "boolInvoiced" does not exist.', 303, $this->source); })()), "html", null, true);
echo "\">
<input id=\"xlsBoolCancel\" name=\"xls[boolCancel]\" class=\"hidden\" value=\"";
// line 304
echo twig_escape_filter($this->env, (isset($context["boolCancel"]) || array_key_exists("boolCancel", $context) ? $context["boolCancel"] : (function () { throw new RuntimeError('Variable "boolCancel" does not exist.', 304, $this->source); })()), "html", null, true);
echo "\">
<input id=\"arraySalasId\" name=\"xls[arraySalasId]\" class=\"hidden\" value=\"";
// line 305
echo twig_escape_filter($this->env, (isset($context["arraySalasId"]) || array_key_exists("arraySalasId", $context) ? $context["arraySalasId"] : (function () { throw new RuntimeError('Variable "arraySalasId" does not exist.', 305, $this->source); })()), "html", null, true);
echo "\">
<input id=\"selectedSalasNames\" name=\"xls[selectedSalasNames]\" class=\"hidden\" value=\"";
// line 306
echo twig_escape_filter($this->env, (isset($context["selectedSalasNames"]) || array_key_exists("selectedSalasNames", $context) ? $context["selectedSalasNames"] : (function () { throw new RuntimeError('Variable "selectedSalasNames" does not exist.', 306, $this->source); })()), "html", null, true);
echo "\">
<div class=\"col-md-10\"></div>
<div class=\"col-md-2\">
<div class=\"form-group form-group-material\">
<button type=\"submit\" id=\"excel_submit\" name=\"excel_button[send]\" class=\"btn bg-info btn-block btn-lg\"><i class=\"icon-file-excel position-right\"></i>";
// line 311
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(" Exportar a Excel", [], "messages");
echo "</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
";
}
// line 320
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 323
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 324
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script type=\"text/javascript\" src=\"";
// line 325
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/plugins/forms/styling/uniform.min.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 326
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/plugins/forms/styling/switch.min.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 327
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/pages/form_checkboxes_radios.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 328
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/plugins/forms/selects/select2.min.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 329
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/pages/greenpatio/list-reservation.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 330
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/plugins/forms/styling/switchery.min.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 331
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/pages/proposal/switchery-proposal.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 332
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/plugins/tables/datatables/datatables.min.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 333
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/plugins/tables/datatables/extensions/responsive.min.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 334
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/pages/greenpatio/datatables_sum_gp_statistics.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\" src=\"";
// line 335
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/pages/datatables_advanced.js"), "html", null, true);
echo "\"></script>
<script>
var checkboxes = document.querySelectorAll('.dropdown-menu input[type=\"checkbox\"]');
var dropdownButton = document.querySelector('#dropdownMenu');
var hiddenInput = document.querySelector('#selected_salas');
checkboxes.forEach(function (checkbox) {
checkbox.addEventListener('change', updateSelections); // Event for PC
checkbox.addEventListener('click', updateSelections); // Add click for mobile
checkbox.addEventListener('touchstart', updateSelections); // Add touchstart for mobile
});
function updateSelections() {
var selected = [];
checkboxes.forEach(function (checkbox) {
if (checkbox.checked) {
selected.push(checkbox.parentElement.textContent.trim());
}
});
dropdownButton.textContent = selected.length > 0 ? selected.join(', ') : 'Todas las Salas';
hiddenInput.value = selected.join(',');
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "MDS/GreenPatioBundle/reservations/list-statistics.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 801 => 335, 797 => 334, 793 => 333, 789 => 332, 785 => 331, 781 => 330, 777 => 329, 773 => 328, 769 => 327, 765 => 326, 761 => 325, 756 => 324, 746 => 323, 735 => 320, 723 => 311, 715 => 306, 711 => 305, 707 => 304, 703 => 303, 699 => 302, 695 => 301, 691 => 300, 687 => 299, 683 => 298, 679 => 297, 664 => 284, 649 => 277, 638 => 269, 634 => 268, 631 => 267, 625 => 266, 622 => 265, 619 => 264, 615 => 263, 612 => 262, 608 => 261, 605 => 260, 602 => 259, 598 => 258, 595 => 257, 591 => 256, 586 => 254, 582 => 253, 578 => 252, 572 => 251, 569 => 250, 565 => 249, 558 => 245, 554 => 244, 550 => 243, 546 => 242, 542 => 241, 538 => 240, 534 => 239, 530 => 238, 519 => 230, 515 => 229, 508 => 224, 506 => 223, 494 => 214, 480 => 202, 468 => 198, 464 => 196, 460 => 195, 455 => 192, 453 => 191, 448 => 188, 446 => 187, 444 => 186, 413 => 157, 410 => 156, 406 => 154, 402 => 152, 399 => 151, 389 => 143, 386 => 142, 382 => 140, 378 => 138, 375 => 137, 365 => 129, 362 => 128, 358 => 126, 354 => 124, 351 => 123, 341 => 115, 338 => 114, 334 => 112, 330 => 110, 327 => 109, 317 => 101, 314 => 100, 310 => 98, 306 => 96, 303 => 95, 295 => 89, 288 => 84, 282 => 83, 274 => 81, 266 => 79, 263 => 78, 259 => 77, 255 => 76, 249 => 73, 244 => 70, 238 => 68, 234 => 66, 231 => 65, 227 => 63, 222 => 60, 216 => 58, 212 => 56, 209 => 55, 205 => 53, 197 => 48, 190 => 43, 181 => 41, 177 => 40, 170 => 36, 166 => 35, 162 => 34, 158 => 33, 155 => 32, 147 => 27, 141 => 24, 137 => 23, 134 => 22, 132 => 21, 125 => 16, 115 => 15, 102 => 11, 99 => 10, 89 => 9, 74 => 5, 71 => 4, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'MDS/GreenPatioBundle/base-reservations.html.twig' %}
{% block pagetitleinterno %}
<div class=\"page-title\">
<h4><i class=\"icon-list position-left\"></i> <span class=\"text-semibold\">{% trans %}Green Patio{% endtrans %}</span> - {% trans %}Estadísticas{% endtrans %}</h4>
</div>
{% endblock %}
{% block breadcrumbs %}
<ul class=\"breadcrumb\">
<li><a href=\"/loungeadmin/list\"><i class=\"icon-home2 position-left\"></i>{% trans %}Home{% endtrans %}</a></li>
</ul>
{% endblock %}
{% block contentReservation %}
<div class=\"row settings-page\" id=\"client-client-subpage\">
<div class=\"col-sm-12\">
<div class=\"page-header\">
<div class=\"col-sm-12 text-right\">
{% if dateStartReq is not empty and dateEndReq is not empty %}
<form name=\"PrintForecast\" method=\"post\" target=\"_blank\" action=\"/pdf/greenpatioforecast/\" class=\"form-horizontal\" autocomplete=\"off\">
<input type=\"hidden\" id=\"dateStartReq\" name=\"forecast[date_start]\" class=\"form-control hidden\" value=\"{{ dateStartReq }}\" />
<input type=\"hidden\" id=\"dateEndReq\" name=\"forecast[date_end]\" class=\"form-control hidden\" value=\"{{ dateEndReq }}\" />
<div class=\"col-md-6\">
<div class=\"form-group form-group-material\">
<button type=\"submit\" id=\"forecast_submit\" name=\"forecast_button[send]\" class=\"btn bg-black btn-info btn-lg\">{% trans %}Previsión de Ventas en PDF{% endtrans %}</button>
</div>
</div>
</form>
{% endif %}
<a href=\"/reservations-greenpatio/listloungedetails\" class=\"btn btn-info btn-gl\">{% trans %}List Lounge{% endtrans %} <i class=\"icon-list position-right\"></i></a>
<a href=\"/reservations-greenpatio/listperiod\" class=\"btn btn-success btn-gl\">{% trans %}List Period{% endtrans %} <i class=\"icon-list position-right\"></i></a>
<a href=\"/reservations-greenpatio/listgpprices\" class=\"btn btn-info btn-gl\">{% trans %}List Price{% endtrans %} <i class=\"icon-list position-right\"></i></a>
<a href=\"/reservations-greenpatio/list\" class=\"btn btn-warning btn-gl\">{% trans %}Reservation List{% endtrans %} <i class=\"icon-book position-right\"></i></a>
</div>
</div>
</div>
{% for flashMessage in app.session.flashbag.get('mensajeclient') %}
<div class=\"hidden alertFlashMensaje\" data-mensaje=\"{{ flashMessage }}\"></div>
{% endfor %}
<div class=\"col-sm-12 margen-15\">
<div class=\"panel\">
<div class=\"panel-body\">
<div class=\"col-md-12\" ><strong class=\"text-info\">
<legend class=\"border-teal-800\">{% trans %}Consulta de Reservas{% endtrans %}</legend></strong>
</div>
<form name=\"ViewForecast\" method=\"post\" action=\"/reservations-greenpatio/responseliststatistics/\" class=\"form-horizontal\" autocomplete=\"off\">
<div class=\"col-md-2\" style=\"margin-left: 20px\">
<label class=\"control-label\" for=\"forecast_date_start_title\">{% trans %}Fecha de inicio{% endtrans %}: </label>
{#<input type=\"date\" id=\"forecast_date_start\" name=\"forecast[date_start]\" class=\"form-control\">#}
{% if dateStartReq is null %}
<input type=\"date\" id=\"forecast_date_start\" name=\"forecast[date_start]\" class=\"form-control\">
{% else %}
<input type=\"date\" id=\"forecast_date_start\" name=\"forecast[date_start]\" class=\"form-control\" value=\"{{ dateStartReq|date(\"Y-m-d\") }}\">
{% endif %}
</div>
<div class=\"col-md-2\" style=\"margin-left: 20px\">
<label class=\"control-label\" for=\"forecast_date_end_title\">{% trans %}Fecha de fin{% endtrans %}: </label>
{#<input type=\"date\" id=\"forecast_date_start\" name=\"forecast[date_end]\" class=\"form-control\">#}
{% if dateEndReq is null %}
<input type=\"date\" id=\"forecast_date_end\" name=\"forecast[date_end]\" class=\"form-control\">
{% else %}
<input type=\"date\" id=\"forecast_date_end\" name=\"forecast[date_end]\" class=\"form-control\" value=\"{{ dateEndReq|date(\"Y-m-d\") }}\">
{% endif %}
</div>
<div class=\"col-md-2\" style=\"margin-left: 20px\">
<div class=\"col-md-6\"><label class=\"control-label text-left\">{% trans %}Client{% endtrans %}</label></div>
<div class=\"col-md-12\">
<select id=\"client\" name=\"client\" class=\"form-control\">
<option value=\"\">{% trans %}Select a client{% endtrans %}</option>
{% for client in clients %}
{% if client.Id == clientId %}
<option value=\"{{ client.id }}\" selected=\"selected\">{{ client.name|capitalize }} </option>
{% else %}
<option value=\"{{ client.id }}\">{{ client.name|capitalize }} </option>
{% endif %}
{% endfor %}
</select>
</div>
</div>
<div class=\"col-xs-12 col-lg-5\" style=\"margin-left: 20px; z-index: 1;\">
<div class=\"col-xs-12\"><label class=\"control-label text-center\">{% trans %}Estado de la reserva{% endtrans %}</label></div>
<div class=\"col-xs-12\"></div>
<div class=\"col-xs-6 col-lg-2\" style=\"padding-top: -5px; padding-left: 10px\">
<div class=\"checkbox checkbox-switchery switchery-lg switchery-double text-left\" title=\"\">
<label>
{#<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolBlocked\" name=\"boolStatus[Blocked]\" checked=\"checked\" onchange=\"changeChkLounge();\">#}
{% if boolBlocked is defined and boolBlocked == true %}
<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolBlocked\" name=\"boolStatus[Blocked]\" checked=\"checked\" onchange=\"changeChkLounge();\">
{% else %}
<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolBlocked\" name=\"boolStatus[Blocked]\" onchange=\"changeChkLounge();\">
{% endif %}
</label>
<label class=\"control-label text-left\" style=\"padding-top: 10px\">{% trans %}Bloqueado{% endtrans %}</label>
</div>
</div>
<div class=\"col-xs-6 col-lg-2\" style=\"padding-top: -5px; padding-left: 10px\">
<div class=\"checkbox checkbox-switchery switchery-lg switchery-double text-left\" title=\"\">
<label>
{#<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolConfirmed\" name=\"boolStatus[Confirmed]\" checked=\"checked\" onchange=\"changeChkLounge();\">#}
{% if boolConfirmed is defined and boolConfirmed == true %}
<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolConfirmed\" name=\"boolStatus[Confirmed]\" checked=\"checked\" onchange=\"changeChkLounge();\">
{% else %}
<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolConfirmed\" name=\"boolStatus[Confirmed]\" onchange=\"changeChkLounge();\">
{% endif %}
</label>
<label class=\"control-label text-left\" style=\"padding-top: 10px\">{% trans %}Confirmado{% endtrans %}</label>
</div>
</div>
<div class=\"col-xs-6 col-lg-2\" style=\"padding-top: -5px; padding-left: 10px\">
<div class=\"checkbox checkbox-switchery switchery-lg switchery-double text-left\" title=\"\">
<label>
{#<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolQuoted\" name=\"boolStatus[Quoted]\" checked=\"checked\" onchange=\"changeChkLounge();\">#}
{% if boolQuoted is defined and boolQuoted == true %}
<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolQuoted\" name=\"boolStatus[Quoted]\" checked=\"checked\" onchange=\"changeChkLounge();\">
{% else %}
<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolQuoted\" name=\"boolStatus[Quoted]\" onchange=\"changeChkLounge();\">
{% endif %}
</label>
<label class=\"control-label text-left\" style=\"padding-top: 10px\">{% trans %}Cotizado{% endtrans %}</label>
</div>
</div>
<div class=\"col-xs-6 col-lg-2\" style=\"padding-top: -5px; padding-left: 10px\">
<div class=\"checkbox checkbox-switchery switchery-lg switchery-double text-left\" title=\"\">
<label>
{#<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolInvoiced\" name=\"boolStatus[Invoiced]\" checked=\"checked\" onchange=\"changeChkLounge();\">#}
{% if boolInvoiced is defined and boolInvoiced == true %}
<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolInvoiced\" name=\"boolStatus[Invoiced]\" checked=\"checked\" onchange=\"changeChkLounge();\">
{% else %}
<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolInvoiced\" name=\"boolStatus[Invoiced]\" onchange=\"changeChkLounge();\">
{% endif %}
</label>
<label class=\"control-label text-left\" style=\"padding-top: 10px\">{% trans %}Facturado{% endtrans %}</label>
</div>
</div>
<div class=\"col-xs-6 col-lg-2\" style=\"padding-top: -5px; padding-left: 10px\">
<div class=\"checkbox checkbox-switchery switchery-lg switchery-double text-left\" title=\"\">
<label>
{#<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolInvoiced\" name=\"boolStatus[Cancel]\" checked=\"checked\" onchange=\"changeChkLounge();\">#}
{% if boolCancel is defined and boolCancel == true %}
<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolCancel\" name=\"boolStatus[Cancel]\" checked=\"checked\" onchange=\"changeChkLounge();\">
{% else %}
<input type=\"checkbox\" class=\"switchery-info boolDelete\" id=\"boolCancel\" name=\"boolStatus[Cancel]\" onchange=\"changeChkLounge();\">
{% endif %}
</label>
<label class=\"control-label text-left\" style=\"padding-top: 10px\">{% trans %}Cancelado{% endtrans %}</label>
</div>
</div>
</div>
<div class=\"col-md-12\" style=\"margin-top: 20px\"></div>
<style>
/* Estilo para ajustar la lista dropdown */
.dropdown-menu {
max-height: 200px;
overflow-y: auto;
}
/* Ajustar la apariencia de la lista */
.dropdown-menu label {
padding: 5px 15px;
display: block;
}
/* Estilo adicional para alinear los checkbox con el texto */
.checkbox-inline input {
margin-right: 10px;
}
</style>
<div class=\"col-md-12 col-xs-12\" style=\"padding-left: 40px; padding-right: 40px\">
<div class=\"form-group form-group-material\">
{#<label class=\"control-label is-visible\">#}
{#<label for=\"supplier_tags2\" class=\"control-label is-visible required\">{% trans %}Tags{% endtrans %}</label>#}
{#</label>#}
<div id=\"multiselect_tags\" class=\"input-group col-sm-12 InputTagsSpinner multi-select-full\" style=\"width: 100%\">
<div class=\"dropdown\" style=\"width: 100%\">
<button class=\"btn btn-default dropdown-toggle\" type=\"button\" id=\"dropdownMenu\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\" style=\"width: 100%\">
{% trans %}Todas las Salas{% endtrans %}
<span class=\"caret\"></span>
</button>
<ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenu\" style=\"width: 100%\">
{% for sala in salas %}
<li>
<label class=\"checkbox-inline\">
<input type=\"checkbox\" name=\"tags[tags2][]\" value=\"{{ sala.id }}\"> {{ sala.name }}
</label>
</li>
{% endfor %}
</ul>
</div>
<input type=\"hidden\" id=\"selected_salas\" name=\"selected_salas\" value=\"\">
</div>
<span class=\"help-block\"></span>
</div>
</div>
<div class=\"col-md-12\" style=\"margin-top: 20px\"></div>
<div class=\"col-md-4\"></div>
<div class=\"col-md-4\">
<div class=\"form-group form-group-material\">
<button type=\"submit\" id=\"forecast_submit\" name=\"forecast_button[send]\" class=\"btn bg-success btn-block btn-lg\">{% trans %}Buscar{% endtrans %}</button>
</div>
</div>
</form>
</div>
</div>
</div>
{% if data is not empty %}
<div class=\"col-md-12 margen-15\">
<div class=\"panel\">
<div class=\"panel-heading\">
<div class=\"panel-body border-blue\">
<div class=\"col-md-12 col-xs-12\" ><strong class=\"text-info\">
<legend class=\"border-teal-800\">{% trans %}Listado de Reservas{% endtrans %}</legend></strong>
{{ consulta }}
<br>
<br>
<br>
</div>
<table id=\"table-client\" class=\"table datatable-sum table-bordered table-hover datatable-highlight\">
<thead>
<tr>
<th>{% trans %}Fecha de inicio{% endtrans %}</th>
<th>{% trans %}Client{% endtrans %}</th>
<th>{% trans %}Título{% endtrans %}</th>
<th>{% trans %}Status{% endtrans %}</th>
<th>{% trans %}Espacios{% endtrans %}</th>
<th>{% trans %}Venta Neta{% endtrans %}</th>
<th>{% trans %}Iva{% endtrans %}</th>
<th class=\"text-center\">{% trans %}Actions{% endtrans %}</th>
</tr>
</thead>
<tbody>
{% for resv in data %}
<tr>
<td><div class=\"hidden\">{{ resv.dateStart|date(\"Y/m/d\") }}</div>{{ resv.dateStart|date('d/m/Y')}}</td>
<td>{{ resv.clientName }}</td>
<td>{{ resv.title }}</td>
<td>{{ resv.status }}</td>
<td>
{% for key, spaceName in resv.txtArrayLoungesNames %}
{% if key > 21 and key < 30 %}
<span class=\"badge bg-primary-400 heading-text\" style=\"font-size: small\"> {{ spaceName }} </span> {# CVR #}
{% else %}
{% if key > 29 %}
<span class=\"badge bg-brown-400 heading-text\" style=\"font-size: small\"> {{ spaceName }} </span> {# BLV #}
{% else %}
<span class=\"badge badge-success text-center\" style=\"font-size: small\"> {{ spaceName }} </span> {# GP #}
{% endif %}
{% endif %}
{% endfor %}
</td>
<td>{{ resv.neto|number_format(2, ',', '.')}}</td>
<td>{{ resv.vat|number_format(2, ',', '.')}}</td>
<td class=\"text-center\">
<ul class=\"icons-list\">
<li class=\"dropdown\">
<a class=\"btn border-info text-info btn-flat btn-rounded btn-icon btn-lg\" href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">
<i class=\"icon-menu9\"></i>
</a>
<ul class=\"dropdown-menu dropdown-menu-right bg-teal-400\">
<li><a href=\"/reservations-greenpatio/editsimple/{{ resv.reservationId }}\"><i class=\"icon-eye pull-right\"></i> {% trans %}Ver Reserva{% endtrans %}</a></li>
</ul>
</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<th colspan=\"5\" class=\"text-right\">Previsión de Venta en tabla: </th>
<th colspan=\"1\"></th>
<th colspan=\"1\"></th>
<th colspan=\"1\"></th>
</tr>
</tfoot>
</table>
<form name=\"ExcelForecast\" method=\"post\" action=\"/reservations-greenpatio/xlsstatistics/\" class=\"form-horizontal\" autocomplete=\"off\">
<input id=\"xlsDateStartReq\" name=\"xls[dateStartReq]\" class=\"hidden\" value=\"{{ dateStartReq }}\">
<input id=\"xlsDateEndReq\" name=\"xls[dateEndReq]\" class=\"hidden\" value=\"{{ dateEndReq }}\">
<input id=\"xlsClientId\" name=\"xls[clientId]\" class=\"hidden\" value=\"{{ clientId }}\">
<input id=\"xlsBoolBlocked\" name=\"xls[boolBlocked]\" class=\"hidden\" value=\"{{ boolBlocked }}\">
<input id=\"xlsBoolConfirmed\" name=\"xls[boolConfirmed]\" class=\"hidden\" value=\"{{ boolConfirmed }}\">
<input id=\"xlsBoolQuoted\" name=\"xls[boolQuoted]\" class=\"hidden\" value=\"{{ boolQuoted }}\">
<input id=\"xlsBoolInvoiced\" name=\"xls[boolInvoiced]\" class=\"hidden\" value=\"{{ boolInvoiced }}\">
<input id=\"xlsBoolCancel\" name=\"xls[boolCancel]\" class=\"hidden\" value=\"{{ boolCancel }}\">
<input id=\"arraySalasId\" name=\"xls[arraySalasId]\" class=\"hidden\" value=\"{{ arraySalasId }}\">
<input id=\"selectedSalasNames\" name=\"xls[selectedSalasNames]\" class=\"hidden\" value=\"{{ selectedSalasNames }}\">
<div class=\"col-md-10\"></div>
<div class=\"col-md-2\">
<div class=\"form-group form-group-material\">
<button type=\"submit\" id=\"excel_submit\" name=\"excel_button[send]\" class=\"btn bg-info btn-block btn-lg\"><i class=\"icon-file-excel position-right\"></i>{% trans %} Exportar a Excel{% endtrans %}</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type=\"text/javascript\" src=\"{{ asset('assets/js/plugins/forms/styling/uniform.min.js') }}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('assets/js/plugins/forms/styling/switch.min.js') }}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('assets/js/pages/form_checkboxes_radios.js') }}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('assets/js/plugins/forms/selects/select2.min.js') }}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('assets/js/pages/greenpatio/list-reservation.js') }}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('assets/js/plugins/forms/styling/switchery.min.js') }}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('assets/js/pages/proposal/switchery-proposal.js') }}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('assets/js/plugins/tables/datatables/datatables.min.js') }}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('assets/js/plugins/tables/datatables/extensions/responsive.min.js') }}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('assets/js/pages/greenpatio/datatables_sum_gp_statistics.js') }}\"></script>
<script type=\"text/javascript\" src=\"{{ asset('assets/js/pages/datatables_advanced.js') }}\"></script>
<script>
var checkboxes = document.querySelectorAll('.dropdown-menu input[type=\"checkbox\"]');
var dropdownButton = document.querySelector('#dropdownMenu');
var hiddenInput = document.querySelector('#selected_salas');
checkboxes.forEach(function (checkbox) {
checkbox.addEventListener('change', updateSelections); // Event for PC
checkbox.addEventListener('click', updateSelections); // Add click for mobile
checkbox.addEventListener('touchstart', updateSelections); // Add touchstart for mobile
});
function updateSelections() {
var selected = [];
checkboxes.forEach(function (checkbox) {
if (checkbox.checked) {
selected.push(checkbox.parentElement.textContent.trim());
}
});
dropdownButton.textContent = selected.length > 0 ? selected.join(', ') : 'Todas las Salas';
hiddenInput.value = selected.join(',');
}
</script>
{% endblock %}
", "MDS/GreenPatioBundle/reservations/list-statistics.html.twig", "/var/www/vhosts/inout.mante.solutions/httpdocs/templates/MDS/GreenPatioBundle/reservations/list-statistics.html.twig");
}
}