templates/MDS/GreenPatioBundle/reservations/edit-reservations-simple.html.twig line 1

Open in your IDE?
  1. {% extends 'MDS/GreenPatioBundle/base-reservations.html.twig' %}
  2.     {% block pagetitleinterno %}
  3.         <div class="page-title">
  4.             <h4><i class="icon-list position-left"></i> <span class="text-semibold">{% trans %}Green Patio{% endtrans %}</span> - {% trans %}Reservation{% endtrans %}</h4>
  5.         </div>
  6.     {% endblock %}
  7.     {% block breadcrumbs %}
  8.         <ul class="breadcrumb">
  9.             <li><a href="/reservations-greenpatio/list"><i class="icon-home2 position-left"></i>{% trans %}Home{% endtrans %}</a></li>
  10.             <li class="active"><i class="icon-plus-circle2 position-left"></i>{% trans %}Edit Reservations{% endtrans %}</li>
  11.         </ul>
  12.     {% endblock %}
  13. {% block contentReservation %}
  14.     <div class="row settings-page" id="client-client-subpage">
  15.         {% for flashMessage in app.session.flashbag.get('mensajereservation') %}
  16.             <div class="hidden alertFlashMensaje" data-mensaje="{{ flashMessage }}"></div>
  17.         {% endfor %}
  18.         {% for flashMessage in app.session.flashbag.get('mensajereservationerror') %}
  19.             <div class="hidden alertFlashMensajeError" data-mensajeerror="{{ flashMessage }}"></div>
  20.         {% endfor %}
  21.         <div class="col-xs-12 col-md-12" style="padding-top: 0px;">
  22.             <br>
  23.             <div class="col-xs-12">
  24.                 <div class="col-sm-12 text-right">
  25.                     {% if aveFile is defined %}
  26.                         {% if aveFile is not empty %}
  27.                             <a href="/avexpress/fileedit/{{ aveFile.id }}" target="_blank" class="btn btn-cyan btn-gl">{% trans %}Expediente asociado de AvExpress{% endtrans %} <i class="icon-presentation position-right"></i></a>
  28.                         {% endif %}
  29.                     {% endif %}
  30.                     {% if htFile is defined %}
  31.                         {% if htFile is not empty %}
  32.                             <a href="/higotrigo/ht/file/{{ htFile.id }}/edit" target="_blank" class="btn btn-cyan btn-gl">{% trans %}Expediente asociado de Higo&Trigo{% endtrans %} <i class="icon-basket position-right"></i></a>
  33.                         {% endif %}
  34.                     {% endif %}
  35.                     {% if clientId != 0 %}
  36.                         <a href="/reservations-greenpatio/payment/{{ id }}"  class="btn btn-info btn-gl">{% trans %}Pagos y Proformas de Deposito{% endtrans %} <i class="icon-coin-euro position-right"></i></a>
  37.                         <a href="/reservations-greenpatio/selinvoice/{{ id }}" class="btn bg-brown-600 btn-gl" >{% trans %}Cotización{% endtrans %}</a>
  38.                     {% endif %}
  39.                     <a href="/"  class="btn btn-success btn-gl">{% trans %}Calendario de Reservas{% endtrans %} <i class="icon-calendar position-right"></i></a>
  40.                     {% if reserva.client is empty or reserva.clientContact is empty or reserva.pax is empty %}
  41.                         <a href="/reservations-greenpatio/contract/{{ id }}" class="btn btn-success btn-gl" title="Cliente, Contacto y Personas son requeridos" disabled="disabled">{% trans %}Contrato{% endtrans %} <i class="icon-pencil5 position-right"></i></a>
  42.                     {% else %}
  43.                         <a href="/reservations-greenpatio/contract/{{ id }}" class="btn btn-success btn-gl" title="Cliente, Contacto y Personas son requeridos">{% trans %}Contrato{% endtrans %} <i class="icon-pencil5 position-right"></i></a>
  44.                     {% endif %}
  45.                     <a href="{{ path('app_green_patio_gp_reminder_index', { 'id': id}) }}"  class="btn bg-orange-300 btn-gl">{% trans %}Reminders{% endtrans %} <i class="icon-cancel-blog position-right"></i></a>
  46.                     <a href="/reservations-greenpatio/delete/{{ id }}"  class="btn btn-danger btn-gl">{% trans %}Cancelar Reserva{% endtrans %} <i class="icon-cancel-circle2 position-right"></i></a>
  47.                 </div>
  48.                 <div class="col-sm-12 margen-15"></div>
  49.                 <div class="col-sm-12 margen-15">
  50.                     <div class="panel">
  51.                         <div class="panel-body">
  52.                             <form name="mds_greenpatiobundle_revervation" method="post" action="/reservations-greenpatio/update/{{ id }}" class="form-horizontal" role="form" autocomplete="off">
  53.                                 <div class="col-md-12 col-xs-12" align="center"><strong class="text-info">
  54.                                     <legend class="border-teal-800"><h3>{% trans %}DATOS GENERALES ( EXPEDIENTE ){% endtrans %}</h3></legend></strong>
  55.                                 </div>
  56.                             <div class="col-md-12 col-xs-12">
  57.                                 <h4><strong>Green Patio ID # {{ id }}</strong></h4>
  58.                             </div>
  59.                             <div class="col-md-12 col-xs-12">
  60.                                 <div class="col-md-6 col-xs-6 margen-5">
  61.                                     <div class="col-md-6"><label class="control-label text-left">{% trans %}Title{% endtrans %}</label></div>
  62.                                     <div class="col-md-12"><input type="text" class="form-control" name="reservation[title]" id="reservation_title" value="{{ reserva.title }}"></div>
  63.                                 </div>
  64.                                 <div class="col-md-2 col-xs-12 margen-5">
  65.                                     <div class="col-md-6"><label class="control-label text-left">{% trans %}# Id Proposal{% endtrans %}</label></div>
  66.                                     <div class="col-md-12"><input type="text" class="form-control" name="reservation[idProposal]" id="reservation_idProposal" value="{{ reserva.idProposal }}"></div>
  67.                                 </div>
  68.                                 <div class="col-md-2 col-xs-12 margen-5">
  69.                                     {#<div class="col-md-6"><label class="control-label text-left">{% trans %}TOKEN{% endtrans %}</label></div>#}
  70.                                     {#<div class="col-md-12"><input type="text" class="form-control" name="reservation[token]" id="reservation_token" value="{{ reserva.token }}" readonly></div>#}
  71.                                 </div>
  72.                                 <div class="col-md-12 col-xs-12" style="margin-left: -10px; padding-top: 5px; padding-bottom: 5px">
  73.                                     <div class="col-md-2 col-xs-6" style="margin-left: 10px; padding-top: 35px">
  74.                                         <a href="/client/add"  class="btn btn-info btn-gl" target="_blank">{% trans %}Add Client{% endtrans %} <i class="icon-user-plus position-right"></i></a>
  75.                                     </div>
  76.                                     <div class="col-md-2" style="margin-left: -40px; padding-top: 8px">
  77.                                         <div class="col-md-6"><label class="control-label text-left">{% trans %}Client{% endtrans %}</label></div>
  78.                                         <div class="col-md-12">
  79.                                             <select id="reservation_client" name="reservation[client]" class="form-control">
  80.                                                 <option value="">{% trans %}Select a client{% endtrans %}</option>
  81.                                                 {% for client in clients %}
  82.                                                     {% if client.Id == clientId %}
  83.                                                         <option value="{{ client.id }}" selected="selected">{{ client.name|capitalize }} </option>
  84.                                                     {% else %}
  85.                                                         <option value="{{ client.id }}">{{ client.name|capitalize }}  </option>
  86.                                                     {% endif %}
  87.                                                 {% endfor %}
  88.                                             </select>
  89.                                         </div>
  90.                                     </div>
  91.                                     <div class="col-md-3 col-xs-6" >
  92.                                         <div class="form-group">
  93.                                             <label class="control-label is-visible">
  94.                                                 <label for="client_region" class="control-label is-visible">{% trans %}Contacto{% endtrans %}</label>
  95.                                             </label>
  96.                                             <div class="input-group col-lg-10 col-xs-10 InputClientContactSpinner">
  97.                                                 <select class="form-control" name="clientContact" id="client_contact" placeholder="{% trans %}Seleccione un contacto{% endtrans %}">
  98.                                                     <option value="" selected="selected">{% trans %}Seleccione un contacto{% endtrans %}</option>
  99.                                                     {% for contact in clientsContact %}
  100.                                                         {% if contact.id  == reserva.clientContact %}
  101.                                                             <option value="{{ contact.id }}" selected>{{ contact.name }} {{ contact.lastName }} ({{ contact.email }})</option>
  102.                                                         {% else %}
  103.                                                             <option value="{{ contact.id }}">{{ contact.name }} {{ contact.lastName }} ({{ contact.email }})</option>
  104.                                                         {% endif %}
  105.                                                     {% endfor %}
  106.                                                 </select>
  107.                                             </div>
  108.                                             <span class="help-block">{{ form_errors(form.clientContact) }}</span>
  109.                                         </div>
  110.                                     </div>
  111.                                     <div class="col-md-2 col-xs-6" style="margin-left: -30px; padding-top: 0px">
  112.                                         <div class="form-group">
  113.                                             <label class="control-label is-visible">
  114.                                                 <label for="client_region" class="control-label is-visible">{% trans %}Contacto No Registrado{% endtrans %}</label>
  115.                                             </label>
  116.                                             <div class="input-group col-lg-10 col-xs-10">
  117.                                                 <input type="text" class="form-control" id="contactUnregistered" name="contactUnregistered" placeholder="Correo electrónico" value="{{ reserva.contactUnregistered }}">
  118.                                             </div>
  119.                                         </div>
  120.                                     </div>
  121.                                     <div class="col-md-2 col-xs-6" >
  122.                                         <div class="form-group">
  123.                                             <label class="control-label is-visible">
  124.                                                 <label for="client_region" class="control-label is-visible">{% trans %}Nombre No Registrado{% endtrans %}</label>
  125.                                             </label>
  126.                                             <div class="input-group col-lg-10 col-xs-10">
  127.                                                 <input type="text" class="form-control" id="nameContactUnregistered" name="nameContactUnregistered" placeholder="Nombre y apellido" value="{{ reserva.nameContactUnregistered }}">
  128.                                             </div>
  129.                                         </div>
  130.                                     </div>
  131.                                     <div class="col-md-1 col-xs-6" >
  132.                                         <div class="form-group">
  133.                                             <label class="control-label is-visible">
  134.                                                 <label for="client_region" class="control-label is-visible">{% trans %} Teléfono{% endtrans %}</label>
  135.                                             </label>
  136.                                             <div class="input-group col-lg-10 col-xs-10">
  137.                                                 <input type="text" class="form-control" id="phoneContactUnregistered" name="phoneContactUnregistered" placeholder="Teléfono" value="{{ reserva.phoneContactUnregistered }}">
  138.                                             </div>
  139.                                         </div>
  140.                                     </div>
  141.                                 </div>
  142.                                 <div class="col-md-7 col-xs-12 margen-5">
  143.                                     <div class="col-md-3 col-xs-12 margen-5">
  144.                                         <div class="col-md-6"><label class="control-label text-left">{% trans %}Status{% endtrans %}</label></div>
  145.                                         <div class="col-md-12">
  146.                                             <select id="reservation_status" name="reservation[status]" class="form-control">
  147.                                                 <option value="">{% trans %}Select a status{% endtrans %}</option>
  148.                                                 {% if reserva.status == 'Iniciado' %} <option value="Iniciado" selected="selected">INICIADO</option> {% else %} <option value="Iniciado">INICIADO</option> {% endif %}
  149.                                                 {% if reserva.status == 'Bloqueo' %} <option value="Bloqueo" selected="selected">BLOQUEO</option> {% else %} <option value="Bloqueo">BLOQUEO</option> {% endif %}
  150.                                                 {% if reserva.status == 'Confirmed' %}
  151.                                                     <option value="Confirmed" selected="selected">CONFIRMADO *</option>
  152.                                                 {% else %}
  153.                                                     {% if confirmable %} <option value="Confirmed">CONFIRMADO *</option> {% else %} <option value="Confirmed" disabled="disabled">CONFIRMADO (Falta el depósito) *</option> {% endif %}
  154.                                                 {% endif %}
  155.                                                 {% if reserva.status == 'Cotizado' %}
  156.                                                     <option value="Cotizado" selected="selected">COTIZADO</option>
  157.                                                 {% else %}
  158.                                                     {% if cotizable %} <option value="Cotizado">COTIZADO</option> {% else %} <option value="Cotizado" disabled="disabled">COTIZADO (Falta agregar salas)</option> {% endif %}
  159.                                                 {% endif %}
  160.                                                 {% if reserva.status == 'Invoiced' %} <option value="Invoiced" selected="selected">FACTURADO *</option> {% else %} <option value="Invoiced">FACTURADO *</option> {% endif %}
  161.                                                 {% if reserva.status == 'Deleted' %} <option value="Deleted" selected="selected">CANCELADO</option> {% else %} <option value="Deleted">CANCELADO</option> {% endif %}
  162.                                                 {% if reserva.status == 'Pendiente' %} <option value="Pendiente" selected="selected">PENDIENTE</option> {% endif %}
  163.                                             </select>
  164.                                         </div>
  165.                                     </div>
  166.                                     <div class="col-md-5 col-xs-12 margen-5">
  167.                                         <div class="col-md-6"><label class="control-label text-left">{% trans %}Días de bloqueo{% endtrans %}</label></div>
  168.                                         <div class="col-md-12"><input type="text" class="form-control" name="reservation[daysBlock]" id="reservation_daysBlock" value="{{ reserva.daysBlock }}"></div>
  169.                                     </div>
  170.                                     <div class="col-md-4 col-xs-12">
  171.                                         <div class="form-group">
  172.                                             <label class="control-label is-visible">
  173.                                                 <label for="client_region" class="control-label is-visible">{% trans %}Fechas{% endtrans %}</label>
  174.                                             </label>
  175.                                             <div class="input-group col-lg-10 col-xs-10">
  176.                                                 <input type="text" class="form-control" id="days" name="days" placeholder="Especifique los días de bloqueo" value="{{ reserva.days }}">
  177.                                             </div>
  178.                                         </div>
  179.                                     </div>
  180.                                     {% if reserva.status == 'Bloqueo' %}
  181.                                         {% if nextMailAlert  is not null %}
  182.                                             <div class="col-md-3" style="margin-left: 10px">
  183.                                                 <label class="control-label" for="forecast_date_start_title">{% trans %}Fecha de próxima notificación{% endtrans %}: </label>
  184.                                                 <input type="date" id="reservation_date_next_mail_alert" name="reservation[dateNextMailAlert]" class="form-control" value="{{ nextMailAlert|date('Y-m-d') }}">
  185.                                             </div>
  186.                                         {% else %}
  187.                                             <input type="hidden" class="form-control" name="reservation[dateNextMailAlert]" id="reservation_date_next_mail_alert" value="">
  188.                                         {% endif %}
  189.                                     {% else %}
  190.                                         <input type="hidden" class="form-control" name="reservation[dateNextMailAlert]" id="reservation_date_next_mail_alert" value="">
  191.                                     {% endif %}
  192.                                 </div>
  193.                                 <div class="col-md-2 col-xs-6 margen-5">
  194.                                     <div class="col-md-6"><label class="control-label text-left">{% trans %}Catering{% endtrans %}</label></div>
  195.                                     <div class="col-md-12">
  196.                                         {#<input type="text" class="form-control" name="reservation[client]" id="reservation_client" value="{{ reserva.client }}">#}
  197.                                         <select id="reservation_cateringName" name="reservation[cateringName]" class="form-control">
  198.                                             <option value="">{% trans %}Seleccione un catering{% endtrans %}</option>
  199.                                             {% for catering in caterings %}
  200.                                                 {% if reserva.cateringName == catering.company %}
  201.                                                     <option value="{{ catering.company }}" selected="selected">{{ catering.company|capitalize }} </option>
  202.                                                 {% else %}
  203.                                                     <option value="{{ catering.company }}">{{ catering.company|capitalize }}  </option>
  204.                                                 {% endif %}
  205.                                             {% endfor %}
  206.                                         </select>
  207.                                     </div>
  208.                                 </div>
  209.                                 <div class="col-md-1 col-xs-12 margen-5">
  210.                                     <div class="col-md-12"><label class="control-label text-left">{% trans %}Personas total{% endtrans %}</label></div>
  211.                                     <div class="col-md-12"><input type="text" class="form-control" name="reservation[pax]" id="reservation_pax" value="{{ reserva.pax }}"></div>
  212.                                 </div>
  213.                                 <input type="hidden" class="form-control" name="reservation[priority]" id="reservation_priority" value="{{ reserva.priority }}">
  214.                                 <div class="col-md-2 col-xs-12 margen-5">
  215.                                     <div class="col-md-12"><label class="control-label text-left">{% trans %}Deposit{% endtrans %}</label></div>
  216.                                     <div class="col-md-12"><input type="text" class="form-control" name="reservation[deposit]" id="reservation_deposit" value="{{ reserva.deposit }}"></div>
  217.                                 </div>
  218.                                 <div class="col-md-12 col-xs-12 margen-5">
  219.                                     <br>
  220.                                 </div>
  221.                                 <div class="col-md-10 col-xs-12 margen-5">
  222.                                     <div class="col-md-12"><label class="control-label text-left">{% trans %}Description{% endtrans %} - Briefing</label></div>
  223.                                     <div class="col-md-12">
  224.                                         <textarea id="reservation_description" name="reservation[description]" class="form-control summernote" rows="7">{{ reserva.description }}</textarea>
  225.                                         {#<input type="text" class="form-control" name="reservation[deposit]" id="reservation_deposit" value="{{ reserva.deposit }}">#}
  226.                                     </div>
  227.                                 </div>
  228.                                 <input type="hidden" class="form-control" name="reservation[contract]" id="reservation_contract" value="{{ reserva.contract }}">
  229.                                 <div class="col-md-12 col-xs-12" >
  230.                                     <div class="col-md-3 col-xs-12" >
  231.                                     </div>
  232.                                     <div class="col-md-1 col-xs-12" style="margin-left: -50px; padding-top: 5px">
  233.                                     </div>
  234.                                     <div class="col-md-1 col-xs-12" ></div>
  235.                                     <div class="col-md-3 col-xs-12" >
  236.                                     </div>
  237.                                     <div class="col-md-1 col-xs-12" style="margin-left: -20px; padding-top: 5px">
  238.                                     </div>
  239.                                 </div>
  240.                                 <div class="col-md-12 col-xs-12" >
  241.                                     <div class="col-md-4 col-xs-12" >
  242.                                         <div class="col-md-12 col-xs-12" >
  243.                                             <div class="col-md-4 col-xs-12" >
  244.                                             </div>
  245.                                             <div class="col-md-1 col-xs-12" >
  246.                                             </div>
  247.                                         </div>
  248.                                     </div>
  249.                                     <div class="col-md-8 col-xs-12" style="padding-top: 0px; padding-left: 15px;padding-right: 15px">
  250.                                     </div>
  251.                                     <div class="col-md-1 col-xs-12" style="padding-top: 0px; padding-left: 15px;padding-right: 15px"></div>
  252.                                     <div class="col-md-7 col-xs-12" style="padding-top: 0px; padding-left: 15px;padding-right: 15px">
  253.                                     </div>
  254.                                 </div>
  255.                             </div>
  256.                             <div class="col-md-12 col-xs-12">
  257.                                 <div class="col-md-9 col-xs-12"></div>
  258.                                 <div class="col-md-3 col-xs-12">
  259.                                     <h6>({% trans %}Created by Agent{% endtrans %}: {{ createdBy }})</h6>
  260.                                 </div>
  261.                             </div>
  262.                             <div class="col-md-4 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
  263.                             <div class="col-md-4 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
  264.                                 <div class="form-group form-group-material">
  265.                                     <div class="input-group teal">
  266.                                         <span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>
  267.                                         <button type="submit" id="reservation_description_save" name="reservation[save]" class="btn bg-green-600 btn-block">{% trans %}Save{% endtrans %}</button>
  268.                                     </div>
  269.                                 </div>
  270.                             </div>
  271.                             <div class="col-md-4 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
  272.                         </form>
  273.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  274.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  275.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  276.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  277.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  278.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  279.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  280.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  281.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  282.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  283.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  284.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  285.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  286.                             <br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
  287.                             <div class="col-md-12 col-xs-12" align="center">
  288.                                 <strong><h3>{% trans %}RESERVA DE SALAS{% endtrans %}</h3></strong>
  289.                             </div>
  290.                             <div class="col-md-12 col-xs-12" ><strong class="text-info">
  291.                                 <legend class="border-teal-800">{% trans %}Salas{% endtrans %}</legend></strong>
  292.                             </div>
  293.                             <form name="mds_greenpatiobundle_revervation_form2" method="post" action="/reservations-greenpatio/createsimplelounge/{{ id }}" class="form-horizontal" role="form" autocomplete="off">
  294.                                 <div class="col-md-2 col-xs-12">
  295.                                     <div class="col-md-12"><label class="control-label">{% trans %}Salas Precargadas{% endtrans %} *</label></div>
  296.                                     <div class="col-md-12">
  297.                                         <select id="reservation_sala_salasPrecargadas" name="reservation_sala[salaPrecargadas]" class="form-control" required="required">
  298.                                             <option value="">{% trans %}Seleccione una sala{% endtrans %}</option>
  299.                                             {% for loungePre in loungesPre %}
  300.                                                 <option value="{{ loungePre.id }}">{{ loungePre.name|capitalize }}  </option>
  301.                                             {% endfor %}
  302.                                         </select>
  303.                                     </div>
  304.                                 </div>
  305.                                 <div class="col-md-1 col-xs-12 margen-5">
  306.                                     <label class="control-label">{% trans %}Date{% endtrans %}: *</label>
  307.                                     <input type="date" id="reservation_sala_date" name="reservation_sala[dateStart]" value="" class="form-control" required="required">
  308.                                 </div>
  309.                                 <input type="hidden" class="form-control" name="reservation_sala[servicePrice]" id="reservation_sala_price" value="0">
  310.                                 <div class="col-md-1 col-xs-12 margen-5">
  311.                                     <div class="col-md-12"><label class="control-label">{% trans %}Pax{% endtrans %}</label></div>
  312.                                     <div class="col-md-12"><input type="text" class="form-control" name="reservation_sala[pax]" id="reservation_sala_pax" value=""></div>
  313.                                 </div>
  314.                                 <div class="col-md-1 col-xs-12 margen-5">
  315.                                     <div class="col-md-12"><label class="control-label">{% trans %}Inicio{% endtrans %} *</label></div>
  316.                                     <div class="col-md-12"><input type="text" class="form-control" name="reservation_sala[hourStart]" id="reservation_sala_hourStart" value="" placeholder="00:00" required="required"></div>
  317.                                 </div>
  318.                                 <div class="col-md-1 col-xs-12 margen-5">
  319.                                     <div class="col-md-12"><label class="control-label">{% trans %}Fin{% endtrans %} *</label></div>
  320.                                     <div class="col-md-12"><input type="text" class="form-control" name="reservation_sala[hourEnd]" id="reservation_sala_hourEnd" value="" placeholder="00:00" required="required"></div>
  321.                                 </div>
  322.                                 <div class="col-md-1 col-xs-12 margen-5">
  323.                                     <div class="col-md-12"><label class="control-label">{% trans %}Precio{% endtrans %}</label></div>
  324.                                     <div class="col-md-12"><input type="number" step="any" class="form-control" name="reservation_sala[servicePrice]" id="reservation_sala_servicePrice" value=""></div>
  325.                                 </div>
  326.                                 <div class="col-md-1 col-xs-12 margen-5">
  327.                                     <div class="col-md-12"><label class="control-label">{% trans %}# Opción{% endtrans %}</label></div>
  328.                                     <div class="col-md-12"><input type="number" class="form-control" name="reservation_sala[idQuote]" id="reservation_sala_idQuote" value=""></div>
  329.                                 </div>
  330.                                 <div class="col-md-10 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
  331.                                 <div class="col-md-2 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
  332.                                     <div class="form-group form-group-material">
  333.                                         <div class="input-group teal">
  334.                                             <span class="input-group-addon bg-info-800"><i class="icon-plus22"></i></span>
  335.                                             <button type="submit" id="reservation_sala_save" name="reservation_sala[save]" class="btn bg-info-600 btn-block">{% trans %}Add{% endtrans %}</button>
  336.                                         </div>
  337.                                     </div>
  338.                                 </div>
  339.                             </form>
  340.                             <div class="col-md-12 col-xs-12" ><strong class="text-info">
  341.                                 <legend class="border-teal-800">{% trans %}Montaje y Desmontaje (Cargar día a día){% endtrans %}</legend></strong>
  342.                             </div>
  343.                             <form name="mds_greenpatiobundle_revervation_form3" method="post" action="/reservations-greenpatio/createsimpleloungemondes/{{ id }}" class="form-horizontal" role="form" autocomplete="off">
  344.                                 <div class="col-md-2 col-xs-12" >
  345.                                     <div class="col-md-12"><label class="control-label">{% trans %}Salas{% endtrans %} *</label></div>
  346.                                     <div class="col-md-12">
  347.                                         <select id="reservation_sala_mondes" name="reservation_sala_mondes[idLounge]" class="form-control" required="required">
  348.                                             <option value="">{% trans %}Seleccione una sala{% endtrans %}</option>
  349.                                             {% for loungesName in loungesNames %}
  350.                                                 <option value="{{ loungesName.id }}">{{ loungesName.name|capitalize }}  </option>
  351.                                             {% endfor %}
  352.                                         </select>
  353.                                     </div>
  354.                                 </div>
  355.                                 <div class="col-md-1 col-xs-12" >
  356.                                     <label class="control-label">{% trans %}Date{% endtrans %}: *</label>
  357.                                     <input type="date" id="reservation_sala_mondes_date" name="reservation_sala_mondes[dateStart]" value="" class="form-control" required="required">
  358.                                 </div>
  359.                                 <div class="col-md-2 col-xs-12" >
  360.                                     <div class="col-md-12"><label class="control-label">{% trans %}Montaje / Desmontaje{% endtrans %} *</label></div>
  361.                                     <div class="col-md-12">
  362.                                         <select id="reservation_sala_mondes_type" name="reservation_sala_mondes[type]" class="form-control" required="required">
  363.                                             <option value="">{% trans %}Select a type{% endtrans %}</option>
  364.                                                 <option value="Montaje">MONTAJE</option>
  365.                                                 <option value="Desmontaje">DESMONTAJE</option>
  366.                                         </select>
  367.                                     </div>
  368.                                 </div>
  369.                                 <input type="hidden" class="form-control" name="reservation_sala_mondes[servicePrice]" id="reservation_sala_mondes_price" value="0">
  370.                                 <div class="col-md-1 col-xs-12" >
  371.                                     <div class="col-md-12"><label class="control-label">{% trans %}Inicio{% endtrans %} *</label></div>
  372.                                     <div class="col-md-12"><input type="text" class="form-control" name="reservation_sala_mondes[hourStart]" id="reservation_sala_mondes_hourStart" value="" placeholder="00:00" required="required"></div>
  373.                                 </div>
  374.                                 <div class="col-md-1 col-xs-12" >
  375.                                     <div class="col-md-12"><label class="control-label">{% trans %}Fin{% endtrans %} *</label></div>
  376.                                     <div class="col-md-12"><input type="text" class="form-control" name="reservation_sala_mondes[hourEnd]" id="reservation_sala_mondes_hourEnd" value="" placeholder="00:00" required="required"></div>
  377.                                 </div>
  378.                                 <div class="col-md-1 col-xs-12 margen-5">
  379.                                     <div class="col-md-12"><label class="control-label">{% trans %}Precio{% endtrans %}</label></div>
  380.                                     <div class="col-md-12"><input type="number" step="any" class="form-control" name="reservation_sala_mondes[servicePrice]" id="reservation_sala_servicePrice" value=""></div>
  381.                                 </div>
  382.                                 <div class="col-md-1 col-xs-12 margen-5">
  383.                                     <div class="col-md-12"><label class="control-label">{% trans %}# Opción{% endtrans %}</label></div>
  384.                                     <div class="col-md-12"><input type="number" class="form-control" name="reservation_sala_mondes[idQuote]" id="reservation_sala_mondes_idQuote" value=""></div>
  385.                                 </div>
  386.                                 <div class="col-md-10 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
  387.                                 <div class="col-md-2 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
  388.                                     <div class="form-group form-group-material">
  389.                                         <div class="input-group teal">
  390.                                             <span class="input-group-addon bg-info-800"><i class="icon-plus22"></i></span>
  391.                                             <button type="submit" id="reservation_sala_mondes_save" name="reservation_sala_mondes[save]" class="btn bg-info-600 btn-block">{% trans %}Add{% endtrans %}</button>
  392.                                         </div>
  393.                                     </div>
  394.                                 </div>
  395.                             </form>
  396.                         </div>
  397.                     </div>
  398.                     {% if numeroItems > 0 %}
  399.                         <div id="btn_quotes" class="col-sm-12">
  400.                             <div class="panel">
  401.                                 <div class="panel-body">
  402.                                     <div class="col-md-12 col-xs-12" align="center"><strong class="text-info">
  403.                                         <legend class="border-teal-800"><h3>{% trans %}COTIZADO{% endtrans %}</h3></legend></strong>
  404.                                     </div>
  405.                                     <div class="col-md-2"></div>
  406.                                     <div class="col-md-12"></div>
  407.                                     <form name="mds_greenpatiobundle_loungrid" method="post" action="/reservations-greenpatio/updateloungegrid" class="form-horizontal" role="form" autocomplete="off">
  408.                                     <input type="hidden" class="form-control" name="reservationId" id="reservationId" value="{{ id }}">
  409.                                     {% for keyRank, itemRankQuote in arrayLoungesByDay %}
  410.                                         <div class="col-md-12">
  411.                                             <h4>
  412.                                                 <strong style="color: green;">Opción # {{ keyRank }} &nbsp &nbsp</strong>
  413.                                                 <a class="btn btn-success btn-xs" href="/reservations-greenpatio/checkquote/{{ id }}/{{ keyRank }}" onclick="return confirm('¿Deseas eliminar todas las otras cotizaciones?');"><i class="icon-check"></i></a>
  414.                                                 <a class="btn btn-danger btn-xs" href="/reservations-greenpatio/deletequote/{{ id }}/{{ keyRank }}" onclick="return confirm('¿Deseas eliminar la cotización?');"><i class="icon-trash"></i></a>
  415.                                             </h4>
  416.                                         </div>
  417.                                         {% for key, itemDay in itemRankQuote %}
  418.                                             <div class="col-md-12"><br></div>
  419.                                             <div class="col-md-1"><h4>{{ key|slice(6,2) }}/{{ key|slice(4,2) }}/{{ key|slice(0,4) }}</h4></div>
  420.                                             <div class="col-md-2" style="padding-left: 35px">
  421.                                                 <a href="/reservations-greenpatio/duplicateday/{{ id }}/{{ key|slice(6,2) }}-{{ key|slice(4,2) }}-{{ key|slice(0,4) }}/{{ keyRank }}" class="btn btn-outline-warning btn-gl">{% trans %}Duplicar Día{% endtrans %} </a>
  422.                                             </div>
  423.                                             <div class="col-md-12">
  424.                                                 <div class="col-md-2"><label class="control-label text-center">Fecha</label></div>
  425.                                                 <div class="col-md-2"><label class="control-label text-center">Sala</label></div>
  426.                                                 <div class="col-md-2"><label class="control-label text-center">Precio</label></div>
  427.                                                 <div class="col-md-1"><label class="control-label text-center">Personas</label></div>
  428.                                                 <div class="col-md-2"><label class="control-label text-center">Inicio</label></div>
  429.                                                 <div class="col-md-2"><label class="control-label text-center">Fin</label></div>
  430.                                                 <div class="col-md-1"><label class="control-label text-center">Borrar</label></div>
  431.                                             </div>
  432.                                             {% for item in itemDay %}
  433.                                                 <div class="col-md-12 no-padding">
  434.                                                     <div class="col-md-2"><input type="date" class="form-control" name="lounge[{{ item.id }}][{{ key|slice(0,4) }}{{ key|slice(4,2) }}{{ key|slice(6,2) }}][{{ item.loungeName }}][newDate]" id="newDate_{{ item.id }}" value="{{ key|slice(0,4) }}-{{ key|slice(4,2) }}-{{ key|slice(6,2) }}"></div>
  435.                                                     <div class="col-md-2"><input type="text" class="form-control" name="lounge[{{ item.id }}][{{ key|slice(0,4) }}{{ key|slice(4,2) }}{{ key|slice(6,2) }}][{{ item.loungeName }}][name]" id="loungeName_{{ item.id }}" value="{{ item.loungeName }}"></div>
  436.                                                     <div class="col-md-2"><input type="text" class="form-control" name="lounge[{{ item.id }}][{{ key|slice(0,4) }}{{ key|slice(4,2) }}{{ key|slice(6,2) }}][{{ item.loungeName }}][price]" id="price_{{ item.id }}" value="{{ item.servicePrice }}"></div>
  437.                                                     {% if item.type is null %}
  438.                                                         <div class="col-md-1"><input type="text" class="form-control" name="lounge[{{ item.id }}][{{ key|slice(0,4) }}{{ key|slice(4,2) }}{{ key|slice(6,2) }}][{{ item.loungeName }}][pax]" id="pax_{{ item.id }}" value="{{ item.pax }}"></div>
  439.                                                     {% else %}
  440.                                                         <div class="col-md-1"><input type="text" class="form-control" name="lounge[{{ item.id }}][{{ key|slice(0,4) }}{{ key|slice(4,2) }}{{ key|slice(6,2) }}][{{ item.loungeName }}][type]" id="type_{{ item.type }}" value="{{ item.type }}"></div>
  441.                                                     {% endif %}
  442.                                                     <div class="col-md-2"><input type="text" class="form-control" name="lounge[{{ item.id }}][{{ key|slice(0,4) }}{{ key|slice(4,2) }}{{ key|slice(6,2) }}][{{ item.loungeName }}][dateHourMinStart]" id="start_{{ item.id }}" value="{{ item.dateStart|date('H:i') }}"></div>
  443.                                                     <div class="col-md-2"><input type="text" class="form-control" name="lounge[{{ item.id }}][{{ key|slice(0,4) }}{{ key|slice(4,2) }}{{ key|slice(6,2) }}][{{ item.loungeName }}][dateHourMinEnd]" id="end_{{ item.id }}" value="{{ item.dateEnd|date('H:i') }}"></div>
  444.                                                     <div class="col-sm-1">
  445.                                                         {% if item.id != 0 %}
  446.                                                             <a target="_self" class="btn bg-danger-300 btn-block icon-trash padding-3" href="/reservations-greenpatio/deleteitemsimple/{{ item.id }}/{{ key|slice(6,2) }}-{{ key|slice(4,2) }}-{{ key|slice(0,4) }}" title="Eliminar este elemento"></a>
  447.                                                         {% else %}
  448.                                                             <a target="_self" class="btn bg-danger-300 btn-block icon-trash padding-3" href="/reservations-greenpatio/edit/{{ id }}" title="Antes debe guardar el expediente"></a>
  449.                                                         {% endif %}
  450.                                                     </div>
  451.                                                 </div>
  452.                                             {% endfor %}
  453.                                         {% endfor %}
  454.                                         {% if not loop.last %} <div class="col-md-12"><br><hr><br></div> {% endif %}
  455.                                     {% endfor %}
  456.                                         <div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
  457.                                         <div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
  458.                                             <div class="form-group form-group-material">
  459.                                                 <div class="input-group teal">
  460.                                                     <span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>
  461.                                                     <button type="submit" id="mds_greenpatiobundle_reservation_save" name="mds_greenpatiobundle_reservation[save]" class="btn bg-green-600 btn-block">Guardar Cotizaciones</button>
  462.                                                 </div>
  463.                                             </div>
  464.                                         </div>
  465.                                         <div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
  466.                                     </form>
  467.                                     <form name="mds_greenpatiobundle_addquote" method="post" action="/reservations-greenpatio/duplicatequote" class="form-horizontal" role="form" autocomplete="off">
  468.                                         <input type="hidden" class="form-control" name="addquote[reservationId]" id="reservationId" value="{{ id }}">
  469.                                         <div class="col-md-12"></div>
  470.                                         <div class="col-md-12"><br><br><br><br></div>
  471.                                         <div class="col-md-12">
  472.                                             <div class="col-md-5"></div>
  473.                                             <div class="col-md-3">
  474.                                                 <select id="reservation_sala_salasPrecargadas" name="addquote[salaPrecargadas]" class="form-control" required>
  475.                                                     <option value="">{% trans %}Seleccione una sala{% endtrans %}</option>
  476.                                                     {% for loungePre in loungesPre %}
  477.                                                         <option value="{{ loungePre.id }}">{{ loungePre.name|capitalize }}  </option>
  478.                                                     {% endfor %}
  479.                                                 </select>
  480.                                             </div>
  481.                                             <div class="col-md-1"><input type="number" class="form-control" step="any" name="addquote[salaPrice]" id="addquote_price" placeholder="Precio"></div>
  482.                                             <div class="col-md-1"><input type="number" class="form-control" step="any" name="addquote[idQuote]" id="addquote_idQuote" placeholder="# Opción"></div>
  483.                                             <div class="col-md-1 ml-5">
  484.                                                 <div class="form-group form-group-material">
  485.                                                     <div class="input-group teal">
  486.                                                         <span class="input-group-addon bg-teal-800"><i class="icon-add"></i></span>
  487.                                                         <button type="submit" id="mds_greenpatiobundle_reservation_addquote" name="mds_greenpatiobundle_reservation[save]" class="btn bg-green-600 btn-block">Duplicar Opción</button>
  488.                                                     </div>
  489.                                                 </div>
  490.                                             </div>
  491.                                         </div>
  492.                                     </form>
  493.                                 </div>
  494.                             </div>
  495.                         </div>
  496.                     {% endif %}
  497.                     <div class="col-sm-12">
  498.                         <div class="panel">
  499.                             <div class="panel-body text-center">
  500.                                 <div class="col-sm-12 ">
  501.                                     <div class="col-sm-4"><b class="text-success">{% trans %}Sale Client Global{% endtrans %} (Salas)</b><br><b> {{ totales_global_con_iva|number_format(2, '.', ',') }} €</b></div>
  502.                                     <div class="col-sm-4"><b class="text-success">{% trans %}IVA{% endtrans %} (Salas)</b><br><b> {{  totales_global_iva|number_format(2, '.', ',') }} €</b></div>
  503.                                     <div class="col-sm-4"><b class="text-success">{% trans %}Sale No Vat{% endtrans %} (Salas)</b><br><b> {{ totales_global_neto|number_format(2, '.', ',') }} €</b></div>
  504.                                 </div>
  505.                             </div>
  506.                         </div>
  507.                     </div>
  508.                     {# Con <div id="btn_srv" usamos el _fragment para el salto al insertar un servicio #}
  509.                     <div id="btn_srv" class="col-sm-12">
  510.                         <div class="panel">
  511.                             <div class="panel-body text-center">
  512.                                 <div class="col-sm-12 ">
  513.                                     <div class="col-sm-12 no-padding">
  514.                                         <div class="panel">
  515.                                             <div class="panel-heading bg-success-800">
  516.                                                 <h6 class="panel-title"><strong>{% trans %}Add Services to Reservation{% endtrans %}</strong><a class="heading-elements-toggle"><i class="icon-more"></i></a></h6>
  517.                                             </div>
  518.                                             <div class="panel-body">
  519.                                                 <div class="col-sm-12 no-padding">
  520.                                                     <div class="col-xs-4 margen-10">
  521.                                                         <div class="col-xs-4 margen-10">
  522.                                                             <form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/3/{{ id }}">
  523.                                                                 <input type="image" src="/assets/images/icon/avs_verde.png" alt="Login"  href="/" height="60" width="80" title="{% trans %}Audiovisuales{% endtrans %}">
  524.                                                             </form>
  525.                                                         </div>
  526.                                                         <div class="col-xs-4 margen-10">
  527.                                                             <form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/17/{{ id }}">
  528.                                                                 <input type="image" src="/assets/images/icon/cop_verde.png" alt="Login"  href="/" height="60" width="80" title="{% trans %}Personal de Seguridad{% endtrans %}">
  529.                                                             </form>
  530.                                                         </div>
  531.                                                         <div class="col-xs-4 margen-10">
  532.                                                             <form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/18/{{ id }}">
  533.                                                                 <input type="image" src="/assets/images/icon/wifi_hoja.png" alt="Login"  href="/" height="60" width="80" title="{% trans %}WiFi{% endtrans %}">
  534.                                                             </form>
  535.                                                         </div>
  536.                                                     </div>
  537.                                                     <div class="col-xs-4 margen-10">
  538.                                                         <div class="col-xs-4 margen-10">
  539.                                                             <form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/15/{{ id }}">
  540.                                                                 <input type="image" src="/assets/images/icon/asistant_verde.png" alt="Login"  href="/" height="60" width="80" title="{% trans %}Proyect Manager ( Asistencia ){% endtrans %}">
  541.                                                             </form>
  542.                                                         </div>
  543.                                                         <div class="col-xs-4 margen-10">
  544.                                                             <form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/11/{{ id }}">
  545.                                                                 <input type="image" src="/assets/images/icon/fork_green.png" alt="Login"  href="/" height="60" width="80" title="{% trans %}F&B ( Catering ){% endtrans %}">
  546.                                                             </form>
  547.                                                         </div>
  548.                                                         <div class="col-xs-4 margen-10">
  549.                                                             <form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/21/{{ id }}">
  550.                                                                 <input type="image" src="/assets/images/icon/clean_verde.png" alt="Login"  href="/" height="60" width="80" title="{% trans %}Limpieza & Mantenimiento{% endtrans %}">
  551.                                                             </form>
  552.                                                         </div>
  553.                                                     </div>
  554.                                                     <div class="col-xs-4 margen-10">
  555.                                                         <div class="col-xs-4 margen-10">
  556.                                                             <form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/20/{{ id }}">
  557.                                                                 <input type="image" src="/assets/images/icon/parking_verde.jpg" alt="Login"  href="/" height="60" width="80" title="{% trans %}Parking{% endtrans %}">
  558.                                                             </form>
  559.                                                         </div>
  560.                                                         <div class="col-xs-4 margen-10">
  561.                                                             <form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/19/{{ id }}">
  562.                                                                 <input type="image" src="/assets/images/icon/silla_verde.png" alt="Login"  href="/" height="60" width="80" title="{% trans %}Mobiliario & Decoracion{% endtrans %}">
  563.                                                             </form>
  564.                                                         </div>
  565.                                                         <div class="col-xs-4 margen-10">
  566.                                                             <form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/12/{{ id }}">
  567.                                                                 <input type="image" src="/assets/images/icon/otros_verde.png" alt="Login"  href="/" height="60" width="80" title="{% trans %}Otros{% endtrans %}">
  568.                                                             </form>
  569.                                                         </div>
  570.                                                     </div>
  571.                                                 </div>
  572.                                             </div>
  573.                                         </div>
  574.                                     </div>
  575.                                     {% if services is not empty %}
  576.                                         <form name="mds_greenpatiobundle_servicegrid" method="post" action="/reservations-greenpatio/updateservicegrid/{{ id }}" class="form-horizontal" role="form" autocomplete="off">
  577.                                             <div class="col-sm-12 margen-15" style="padding-left: 0px; padding-right: 0px">
  578.                                                 <div class="panel">
  579.                                                     <div class="panel-body">
  580.                                                         <div class="col-md-12 col-xs-12" ><strong class="text-info text-left">
  581.                                                             <legend class="border-teal-800">{% trans %}Services{% endtrans %}</legend></strong>
  582.                                                         </div>
  583.                                                     </div>
  584.                                                     {% for service in services %}
  585.                                                         {% set loopIndex = loop.index %}
  586.                                                         {% if service.currency is empty %}
  587.                                                             {% set currency = 'Euro' %}
  588.                                                         {% else %}
  589.                                                             {% set currency = service.currency %}
  590.                                                         {% endif %}
  591.                                                         {% set contcolor = service.contcolor %}
  592.                                                         {% set error_commission = '' %}
  593.                                                         {% if service.commission is empty or service.commission =='0' %}
  594.                                                             {% set error_commission = 'has-error' %}
  595.                                                         {% endif %}
  596.                                                         {% set error_over  = '' %}
  597.                                                         {% if service.over  is empty or service.over =='0' %}
  598.                                                             {% set error_over = 'has-error' %}
  599.                                                         {% endif %}
  600.                                                         {% set error_iva  = '' %}
  601.                                                         {% if service.iva  is empty or service.iva =='0' %}
  602.                                                             {% set error_iva = 'has-error' %}
  603.                                                         {% endif %}
  604.                                                         {% if service.opCommission is empty %}
  605.                                                             {% set option_opcommission = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
  606.                                                         {% else %}
  607.                                                             {% if service.opCommission == '0' %}
  608.                                                                 {% set option_opcommission  = '<option value="0" selected="selected">-</option><option value="1">+</option>' %}
  609.                                                             {% elseif service.opCommission == '1' %}
  610.                                                                 {% set option_opcommission  = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
  611.                                                             {% endif %}
  612.                                                         {% endif %}
  613.                                                         {% if service.opOver is empty %}
  614.                                                             {% set option_opover = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
  615.                                                         {% else %}
  616.                                                             {% if service.opOver == '0' %}
  617.                                                                 {% set option_opover = '<option value="0" selected="selected">-</option><option value="1">+</option>' %}
  618.                                                             {% elseif service.opOver == '1' %}
  619.                                                                 {% set option_opover  = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
  620.                                                             {% endif %}
  621.                                                         {% endif %}
  622.                                                         {% if service.opIva is empty %}
  623.                                                             {% set option_opiva = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
  624.                                                         {% else %}
  625.                                                             {% if service.opIva == '0' %}
  626.                                                                 {% set option_opiva  = '<option value="0" selected="selected">-</option><option value="1">+</option>' %}
  627.                                                             {% elseif service.opIva == '1' %}
  628.                                                                 {% set option_opiva = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
  629.                                                             {% endif %}
  630.                                                         {% endif %}
  631.                                                         {% set fondo_color  = 'white' %}
  632.                                                         {% if service.serviceId == '0'  and  service.serviceCatId != "16"%}
  633.                                                             {% set message_presentation  = 'This service has no presentation because it has not been added to the supplier as a service'|trans %}
  634.                                                             {% set name_presentation  = 'Service without presentation'|trans %}
  635.                                                             {% set boton_presentation  = 'Save Service in Supplier'|trans %}
  636.                                                             {% set no_presentacion_tip  = '<span data-popup="tooltip-custom" title="' ~ message_presentation  ~'"><span class="label text-danger-800"><b>' ~ name_presentation  ~':</b></span></span>' %}
  637.                                                             {% set no_presentacion  = '
  638.                                                                                         <div class="panel-footer">
  639.                                                                                             <span class="label text-danger-800"><b>' ~ name_presentation  ~':</b></span>
  640.                                                                                             <span class="label text-grey-800"><i class"text-grey">' ~ message_presentation ~'.</i> |</span>
  641.                                                                                             <a class="text-teal boton_services_supplier_proposal" href="/supplier/services/fromproposal/' ~ service.serviceCatName|lower ~ '/add/' ~ service.id ~ '">' ~ boton_presentation ~ '</a></i>
  642.                                                                                         </div>' %}
  643.                                                         {% else %}
  644.                                                             {% set message_presentation  = '' %}
  645.                                                             {% set name_presentation  = '' %}
  646.                                                             {% set no_presentacion_tip  = '' %}
  647.                                                             {% set no_presentacion  = '' %}
  648.                                                         {% endif %}
  649.                                                         {% if service.serviceCatId =="1" %}
  650.                                                             {% set name_days_night  = "Nights" %}
  651.                                                         {% else %}
  652.                                                             {% set name_days_night  = "Days" %}
  653.                                                         {% endif %}
  654.                                                         {% if service.serviceCatId =="1" %}
  655.                                                             {% set name_days_night  = "Nights" %}
  656.                                                         {% else %}
  657.                                                             {% set name_days_night  = "Days" %}
  658.                                                         {% endif %}
  659.                                                         {% set additional = '' %}
  660.                                                         <div id="{{ service.id }}" class="panel panel-flat border-left-lg border-left-{{ contcolor }} {{ fondo_color }} panel-collapsed">
  661.                                                             <div class="panel-heading">
  662.                                                                 <div class="panel-title text-left">
  663.                                                                     <b class="text-{{ contcolor }}">{% trans %}Service{% endtrans %}: {% if not (service.serviceCatName|trans == 'Menú') %} {{ service.serviceCatName|trans }} {% else %} Catering {% endif %} {% if (service.name is not null) %} - {{ service.name }}{% endif %}</b>
  664.                                                                     {% autoescape %}{{ additional|raw }}{% endautoescape %}
  665.                                                                 </div>
  666.                                                                 <div class="heading-elements">
  667.                                                                     <ul class="icons-list">
  668.                                                                         <li><a data-action="collapse"></a></li>
  669.                                                                     </ul>
  670.                                                                 </div>
  671.                                                             </div>
  672.                                                             {% if not (service.serviceCatId == 15) %}
  673.                                                                 <div class="panel-body">
  674.                                                                 <div class="form-group">
  675.                                                                 <div class="col-sm-11">
  676.                                                                     <div class="col-sm-12">
  677.                                                                         {% if not (service.serviceCatId == 15) %}
  678.                                                                             <div class="col-sm-3" style="padding-bottom: 10px; padding-left: 0px; ">
  679.                                                                                 <label class="control-label" for="services_opcommission">{% trans %}Supplier{% endtrans %}:</label>
  680.                                                                                 <div class="form-group form-group-material">
  681.                                                                                     <select id="services_supplier" name="services[{{ service.id }}][supplier]" class="form-control" style="padding:0px;text-align-last: center;">
  682.                                                                                         <option value="0">{% trans %}Select a Supplier{% endtrans %}</option>
  683.                                                                                         {% for supplier in listSupplier %}
  684.                                                                                             {% if supplier.id == service.supplierId %}
  685.                                                                                                 <option value="{{ supplier.id }}" selected="selected">{{ supplier.company }}</option>
  686.                                                                                             {% else %}
  687.                                                                                                 <option value="{{ supplier.id }}">{{ supplier.company }}</option>
  688.                                                                                             {% endif %}
  689.                                                                                         {% endfor %}
  690.                                                                                     </select>
  691.                                                                                 </div>
  692.                                                                             </div>
  693.                                                                         {% endif %}
  694.                                                                         {% if service.serviceCatId == 15 %}
  695.                                                                             <div class="col-sm-2" style="padding-bottom: 10px; padding-left: 0px; ">
  696.                                                                                 <label class="control-label" for="services_agent">{% trans %}Agente{% endtrans %}:</label>
  697.                                                                                 <div class="form-group form-group-material">
  698.                                                                                     <select id="services_agent" name="services[{{ service.id }}][agent]" class="form-control" style="padding:0px;text-align-last: center;">
  699.                                                                                         <option value="0">{% trans %}Selecciona un agente{% endtrans %}</option>
  700.                                                                                         {% for user in allUsersActive %}
  701.                                                                                             {% if (service.assistantId is not empty) and (user.id == service.assistantId or ((user.id * (-1)) == service.assistantId)) %}
  702.                                                                                                 {% if user.role == 'Freelance' %}
  703.                                                                                                     <option value="{{ user.team }}" selected="selected">{{ user.name }} {{ user.lastname }}</option>
  704.                                                                                                 {% else %}
  705.                                                                                                     <option value="{{ user.id }}" selected="selected">{{ user.name }} {{ user.lastname }}</option>
  706.                                                                                                 {% endif %}
  707.                                                                                             {% else %}
  708.                                                                                                 {#      FreeLance no registrado en el sistema       #}
  709.                                                                                                 {% if user.role == 'Freelance' %}
  710.                                                                                                     <option value="{{ user.team }}">{{ user.name }} {{ user.lastname }}</option>
  711.                                                                                                 {% else %}
  712.                                                                                                     <option value="{{ user.id }}">{{ user.name }} {{ user.lastname }}</option>
  713.                                                                                                 {% endif %}
  714.                                                                                             {% endif %}
  715.                                                                                         {% endfor %}
  716.                                                                                     </select>
  717.                                                                                 </div>
  718.                                                                             </div>
  719.                                                                         {% endif %}
  720.                                                                     </div>
  721.                                                                     <div class="col-sm-3">
  722.                                                                         <label class="control-label" for="services_name">{% trans %}Name{% endtrans %}: </label>
  723.                                                                         <input type="text" id="services_name_{{ service.id }}" name="services[{{ service.id }}][name]"  value="{{ service.name }}" class="form-control">
  724.                                                                     </div>
  725.                                                                     <div class="col-md-2 col-xs-12">
  726.                                                                         <label class="control-label" for="services_price">
  727.                                                                             <span data-popup="tooltip-custom" title="{% trans %}Price with VAT or without VAT{% endtrans %}">
  728.                                                                                 <b class="text-{{ contcolor }}">{% trans %}Price{% endtrans %}</b>:
  729.                                                                             </span>
  730.                                                                         </label>
  731.                                                                         <input type="text" id="services_price_{{ service.id }}" name="services[{{ service.id }}][price]" value="{{ service.price }}" class="form-control bg-{{ contcolor }}-300">
  732.                                                                     </div>
  733.                                                                     {% if not (service.serviceCatId == 15) %}
  734.                                                                         <div class="col-md-1 col-xs-6">
  735.                                                                             <label class="control-label" for="services_units">{% trans %}Units{% endtrans %}: </label>
  736.                                                                             <input type="number" id="services_units_{{ service.id }}" name="services[{{ service.id }}][units]" value="{{ service.units }}" class="form-control">
  737.                                                                         </div>
  738.                                                                         <div class="col-md-1 col-xs-12">
  739.                                                                             <label class="control-label" for="services_pax">{% trans %}Pax{% endtrans %}: </label>
  740.                                                                             <input type="number" id="services_pax_{{ service.id }}" name="services[{{ service.id }}][pax]" value="{{ service.pax }}" class="form-control">
  741.                                                                         </div>
  742.                                                                     {% endif %}
  743.                                                                     <div class="col-md-5 col-xs-12">
  744.                                                                         {% autoescape %}
  745.                                                                             <div class="col-md-2 col-xs-6  no-padding-right">
  746.                                                                                 <label class="control-label" for="services_opcommission" >-/+: </label>
  747.                                                                                 <div class="form-group form-group-material">
  748.                                                                                     <select id="services_opcommission_{{ service.id }}" name="services[{{ service.id }}][opCommission]" class="form-control" style="padding:0px;text-align-last: center;">
  749.                                                                                         {{ option_opcommission|raw }}
  750.                                                                                     </select>
  751.                                                                                 </div>
  752.                                                                             </div>
  753.                                                                             <div class="col-md-2 col-xs-6  no-padding-left">
  754.                                                                                 <label class="control-label" for="services_commission">{% trans %}Commission{% endtrans %}: </label>
  755.                                                                                 <div class="form-group form-group-material {{ error_commission }}">
  756.                                                                                     <input type="text" id="services_commission_{{ service.id }}" name="services[{{ service.id }}][commission]" value="{{ service.commission }}" class="form-control">
  757.                                                                                 </div>
  758.                                                                             </div>
  759.                                                                             <div class="col-md-2 col-xs-6  no-padding-right">
  760.                                                                                 <label class="control-label" for="services_opover">-/+: </label>
  761.                                                                                 <div class="form-group form-group-material">
  762.                                                                                     <select id="services_opover_{{ service.id }}" name="services[{{ service.id }}][opOver]" class="form-control" style="padding:0px;text-align-last: center;">
  763.                                                                                         {{ option_opover|raw }}
  764.                                                                                     </select>
  765.                                                                                 </div>
  766.                                                                             </div>
  767.                                                                             <div class="col-md-2 col-xs-6  no-padding-left">
  768.                                                                                 <label class="control-label" for="services_over">{% trans %}Over{% endtrans %}: </label>
  769.                                                                                 <div class="form-group form-group-material {{ error_over }}">
  770.                                                                                     <input type="text" id="services_over_{{ service.id }}" name="services[{{ service.id }}][over]" value="{{ service.over }}" class="form-control">
  771.                                                                                 </div>
  772.                                                                             </div>
  773.                                                                             <div class="col-md-2 col-xs-6  no-padding-right">
  774.                                                                                 <label class="control-label" for="services_opiva">-/+: </label>
  775.                                                                                 <div class="form-group form-group-material">
  776.                                                                                     <select id="services_opiva_{{ service.id }}" name="services[{{ service.id }}][opIva]" class="form-control" style="padding:0px;text-align-last: center;">
  777.                                                                                         {{ option_opiva|raw }}
  778.                                                                                     </select>
  779.                                                                                 </div>
  780.                                                                             </div>
  781.                                                                             {% if service.iva is not empty %}
  782.                                                                                 {% set ivaService = service.iva %}
  783.                                                                             {% else %}
  784.                                                                                 {% set ivaService = 0 %}
  785.                                                                             {% endif %}
  786.                                                                         {% if not (service.serviceCatId == 15) %}
  787.                                                                             <div class="col-md-2 col-xs-6  no-padding-left">
  788.                                                                                 <label class="control-label" for="services_iva">{% trans %}Iva{% endtrans %}: </label>
  789.                                                                                 <div class="form-group form-group-material {{ error_iva }}">
  790.                                                                                     <input type="text" id="services_iva_{{ service.id }}" name="services[{{ service.id }}][iva]" value="{{ ivaService }}" class="form-control">
  791.                                                                                 </div>
  792.                                                                             </div>
  793.                                                                         {% endif %}
  794.                                                                         {% endautoescape %}
  795.                                                                     </div>
  796.                                                                     <div class="col-sm-9 margen-10">
  797.                                                                         <div class="col-sm-2 col-xs-6">
  798.                                                                             <label class="control-label" for="services_currency">{% trans %}Currency{% endtrans %}: </label>
  799.                                                                             <input type="text" id="services_currency_{{ service.id }}" name="services[{{ service.id }}][currency]" value="{{ currency }}" class="form-control">
  800.                                                                         </div>
  801.                                                                         <div class="col-sm-2 no-padding">
  802.                                                                             <label class="control-label" for="services_hour"><i class="icon-watch2"></i> {% trans %}Star{% endtrans %}: </label>
  803.                                                                             <input type="time" id="services_start_{{ service.id }}" name="services[{{ service.id }}][start]" value="{{ service.dateInAt|date('H:i') }}" class="form-control">
  804.                                                                         </div>
  805.                                                                         <div class="col-sm-3">
  806.                                                                             <label class="control-label" for="services_dateInAt">{% trans %}Date In{% endtrans %}: </label>
  807.                                                                             <input type="date" id="services_dateInAt_{{ service.id }}" name="services[{{ service.id }}][dateInAt]" value="{{ service.dateInAt|date('Y-m-d') }}" class="form-control">
  808.                                                                         </div>
  809.                                                                         <div class="col-sm-3">
  810.                                                                             <label class="control-label" for="services_dateOutAt">{% trans %}Date Out{% endtrans %}: </label>
  811.                                                                             <input type="date" id="services_dateOutAt_{{ service.id }}" name="services[{{ service.id }}][dateOutAt]" value="{{ service.dateOutAt|date('Y-m-d') }}" class="form-control">
  812.                                                                         </div>
  813.                                                                         <div class="col-sm-2 no-padding">
  814.                                                                             <label class="control-label" for="services_hour"><i class="icon-watch2"></i> {% trans %}End{% endtrans %}: </label>
  815.                                                                             <input type="time" id="services_hour_{{ service.id }}" name="services[{{ service.id }}][end]" value="{{ service.dateOutAt|date('H:i') }}" class="form-control">
  816.                                                                         </div>
  817.                                                                     </div>
  818.                                                                     <div class="col-md-3" style="padding-top: 35px;">
  819.                                                                         <div class="checkbox-switchery text-left switchery-sm">
  820.                                                                             <label >
  821.                                                                                 {% if service.toinvoice is empty %}
  822.                                                                                     <input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="0"/>
  823.                                                                                 {% else %}
  824.                                                                                     {% if service.toinvoice %}
  825.                                                                                         <input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="1" checked/>
  826.                                                                                     {% else %}
  827.                                                                                         <input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="0"/>
  828.                                                                                     {% endif %}
  829.                                                                                 {% endif %}
  830.                                                                                 {% trans %}Aparece en factura{% endtrans %}
  831.                                                                             </label>
  832.                                                                         </div>
  833.                                                                     </div>
  834.                                                                 </div>
  835.                                                                 <div class="col-sm-1 margen-5">
  836.                                                                     <div class="col-md-12 col-xs-12">
  837.                                                                     </div>
  838.                                                                     <div class="col-md-12 col-xs-12" style="padding-top: 15px; padding-left: 0px">
  839.                                                                         <div class="checkbox checkbox-switchery switchery-lg switchery-double text-center" title="Eliminar este item">
  840.                                                                             {#<input type="checkbox" class="switchery-info boolDelete" id="services_delete_{{ service.id }}" name="services_{{ service.id }}[boolDelete]" value="1">#}
  841.                                                                             <a target="_self" class="btn bg-danger-300 btn-block icon-trash padding-3" href="/reservations-greenpatio/deleteitemservice/{{ service.id }}/{{ id }}" title="Eliminar este elemento"></a>
  842.                                                                         </div>
  843.                                                                     </div>
  844.                                                                 </div>
  845.                                                             </div>
  846.                                                             </div>
  847.                                                             {% else %}
  848.                                                                 {# ---------------- ASISTENCIA  ---------------- #}
  849.                                                                 <div class="panel-body">
  850.                                                                     <div class="form-group">
  851.                                                                         <div class="col-sm-11">
  852.                                                                             <div class="col-sm-2" style="padding-bottom: 10px; padding-left: 0px; ">
  853.                                                                                 <label class="control-label" for="services_agent">{% trans %}Agente{% endtrans %}:</label>
  854.                                                                                 <div class="form-group form-group-material">
  855.                                                                                     <select id="services_agent" name="services[{{ service.id }}][agent]" class="form-control" style="padding:0px;text-align-last: center;">
  856.                                                                                         <option value="0">{% trans %}Selecciona un agente{% endtrans %}</option>
  857.                                                                                         {% for user in allUsersActive %}
  858.                                                                                             {% if (service.assistantId is not empty) and (user.id == service.assistantId or ((user.id * (-1)) == service.assistantId)) %}
  859.                                                                                                 {% if user.role == 'Freelance' %}
  860.                                                                                                     <option value="{{ user.team }}" selected="selected">{{ user.name }} {{ user.lastname }}</option>
  861.                                                                                                 {% else %}
  862.                                                                                                     <option value="{{ user.id }}" selected="selected">{{ user.name }} {{ user.lastname }}</option>
  863.                                                                                                 {% endif %}
  864.                                                                                             {% else %}
  865.                                                                                                 {#      FreeLance no registrado en el sistema       #}
  866.                                                                                                 {% if user.role == 'Freelance' %}
  867.                                                                                                     <option value="{{ user.team }}">{{ user.name }} {{ user.lastname }}</option>
  868.                                                                                                 {% else %}
  869.                                                                                                     <option value="{{ user.id }}">{{ user.name }} {{ user.lastname }}</option>
  870.                                                                                                 {% endif %}
  871.                                                                                             {% endif %}
  872.                                                                                         {% endfor %}
  873.                                                                                     </select>
  874.                                                                                 </div>
  875.                                                                             </div>
  876.                                                                             <div class="col-sm-2">
  877.                                                                                 <label class="control-label" for="services_name">{% trans %}Name{% endtrans %}: </label>
  878.                                                                                 <input type="text" id="services_name_{{ service.id }}" name="services[{{ service.id }}][name]"  value="{{ service.name }}" class="form-control">
  879.                                                                             </div>
  880.                                                                             <div class="col-md-2 col-xs-12">
  881.                                                                                 <label class="control-label" for="services_price">
  882.                                                                             <span data-popup="tooltip-custom" title="{% trans %}Price with VAT or without VAT{% endtrans %}">
  883.                                                                                 <b class="text-{{ contcolor }}">{% trans %}Price{% endtrans %}</b>:
  884.                                                                             </span>
  885.                                                                                 </label>
  886.                                                                                 <input type="text" id="services_price_{{ service.id }}" name="services[{{ service.id }}][price]" value="{{ service.price }}" class="form-control bg-{{ contcolor }}-300">
  887.                                                                             </div>
  888.                                                                             <input type="hidden" id="services_supplier" name="services[{{ service.id }}][supplier]" value="0" class="form-control">
  889.                                                                             <input type="hidden" id="services_opiva_{{ service.id }}" name="services[{{ service.id }}][opIva]" value="1" class="form-control">
  890.                                                                             <input type="hidden" id="services_iva_{{ service.id }}" name="services[{{ service.id }}][iva]" value="21" class="form-control">
  891.                                                                             <input type="hidden" id="services_currency_{{ service.id }}" name="services[{{ service.id }}][currency]" value="{{ currency }}" class="form-control">
  892.                                                                             <input type="hidden" id="services_units_{{ service.id }}" name="services[{{ service.id }}][units]" value="{{ service.units }}" class="form-control">
  893.                                                                             <input type="hidden" id="services_pax_{{ service.id }}" name="services[{{ service.id }}][pax]" value="{{ service.pax }}" class="form-control">
  894.                                                                             <br>
  895.                                                                             <div class="col-md-5 col-xs-12">
  896.                                                                                 {% autoescape %}
  897.                                                                                     <div class="col-md-2 col-xs-6  no-padding-right">
  898.                                                                                         <label class="control-label" for="services_opcommission" >-/+: </label>
  899.                                                                                         <div class="form-group form-group-material">
  900.                                                                                             <select id="services_opcommission_{{ service.id }}" name="services[{{ service.id }}][opCommission]" class="form-control" style="padding:0px;text-align-last: center;">
  901.                                                                                                 {{ option_opcommission|raw }}
  902.                                                                                             </select>
  903.                                                                                         </div>
  904.                                                                                     </div>
  905.                                                                                     <div class="col-md-2 col-xs-6  no-padding-left">
  906.                                                                                         <label class="control-label" for="services_commission">{% trans %}Commission{% endtrans %}: </label>
  907.                                                                                         <div class="form-group form-group-material {{ error_commission }}">
  908.                                                                                             <input type="text" id="services_commission_{{ service.id }}" name="services[{{ service.id }}][commission]" value="{{ service.commission }}" class="form-control">
  909.                                                                                         </div>
  910.                                                                                     </div>
  911.                                                                                     <div class="col-md-2 col-xs-6  no-padding-right">
  912.                                                                                         <label class="control-label" for="services_opover">-/+: </label>
  913.                                                                                         <div class="form-group form-group-material">
  914.                                                                                             <select id="services_opover_{{ service.id }}" name="services[{{ service.id }}][opOver]" class="form-control" style="padding:0px;text-align-last: center;">
  915.                                                                                                 {{ option_opover|raw }}
  916.                                                                                             </select>
  917.                                                                                         </div>
  918.                                                                                     </div>
  919.                                                                                     <div class="col-md-2 col-xs-6  no-padding-left">
  920.                                                                                         <label class="control-label" for="services_over">{% trans %}Over{% endtrans %}: </label>
  921.                                                                                         <div class="form-group form-group-material {{ error_over }}">
  922.                                                                                             <input type="text" id="services_over_{{ service.id }}" name="services[{{ service.id }}][over]" value="{{ service.over }}" class="form-control">
  923.                                                                                         </div>
  924.                                                                                     </div>
  925.                                                                                     {% if not (service.serviceCatId == 15) %}
  926.                                                                                         <div class="col-md-2 col-xs-6  no-padding-right">
  927.                                                                                             <label class="control-label" for="services_opiva">-/+: </label>
  928.                                                                                             <div class="form-group form-group-material">
  929.                                                                                                 <select id="services_opiva_{{ service.id }}" name="services[{{ service.id }}][opIva]" class="form-control" style="padding:0px;text-align-last: center;">
  930.                                                                                                     {{ option_opiva|raw }}
  931.                                                                                                 </select>
  932.                                                                                             </div>
  933.                                                                                         </div>
  934.                                                                                     {% endif %}
  935.                                                                                     {% if service.iva is not empty %}
  936.                                                                                         {% set ivaService = service.iva %}
  937.                                                                                     {% else %}
  938.                                                                                         {% set ivaService = 0 %}
  939.                                                                                     {% endif %}
  940.                                                                                     {% if not (service.serviceCatId == 15) %}
  941.                                                                                         <div class="col-md-2 col-xs-6  no-padding-left">
  942.                                                                                             <label class="control-label" for="services_iva">{% trans %}Iva{% endtrans %}: </label>
  943.                                                                                             <div class="form-group form-group-material {{ error_iva }}">
  944.                                                                                                 <input type="text" id="services_iva_{{ service.id }}" name="services[{{ service.id }}][iva]" value="{{ ivaService }}" class="form-control">
  945.                                                                                             </div>
  946.                                                                                         </div>
  947.                                                                                     {% endif %}
  948.                                                                                 {% endautoescape %}
  949.                                                                             </div>
  950.                                                                             <div class="col-sm-8 margen-10">
  951.                                                                                 <div class="col-sm-2 no-padding">
  952.                                                                                     <label class="control-label" for="services_hour"><i class="icon-watch2"></i> {% trans %}Star{% endtrans %}: </label>
  953.                                                                                     <input type="time" id="services_start_{{ service.id }}" name="services[{{ service.id }}][start]" value="{{ service.dateInAt|date('H:i') }}" class="form-control">
  954.                                                                                 </div>
  955.                                                                                 <div class="col-sm-4">
  956.                                                                                     <label class="control-label" for="services_dateInAt">{% trans %}Date In{% endtrans %}: </label>
  957.                                                                                     <input type="date" id="services_dateInAt_{{ service.id }}" name="services[{{ service.id }}][dateInAt]" value="{{ service.dateInAt|date('Y-m-d') }}" class="form-control">
  958.                                                                                 </div>
  959.                                                                                 <div class="col-sm-4">
  960.                                                                                     <label class="control-label" for="services_dateOutAt">{% trans %}Date Out{% endtrans %}: </label>
  961.                                                                                     <input type="date" id="services_dateOutAt_{{ service.id }}" name="services[{{ service.id }}][dateOutAt]" value="{{ service.dateOutAt|date('Y-m-d') }}" class="form-control">
  962.                                                                                 </div>
  963.                                                                                 <div class="col-sm-2 no-padding">
  964.                                                                                     <label class="control-label" for="services_hour"><i class="icon-watch2"></i> {% trans %}End{% endtrans %}: </label>
  965.                                                                                     <input type="time" id="services_hour_{{ service.id }}" name="services[{{ service.id }}][end]" value="{{ service.dateOutAt|date('H:i') }}" class="form-control">
  966.                                                                                 </div>
  967.                                                                             </div>
  968.                                                                             <div class="col-md-4" style="padding-top: 35px;">
  969.                                                                                 <div class="checkbox-switchery text-left switchery-sm">
  970.                                                                                     <label >
  971.                                                                                         {% if service.toinvoice is empty %}
  972.                                                                                             <input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="0"/>
  973.                                                                                         {% else %}
  974.                                                                                             {% if service.toinvoice %}
  975.                                                                                                 <input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="1" checked/>
  976.                                                                                             {% else %}
  977.                                                                                                 <input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="0"/>
  978.                                                                                             {% endif %}
  979.                                                                                         {% endif %}
  980.                                                                                         {% trans %}Aparece en factura{% endtrans %}
  981.                                                                                     </label>
  982.                                                                                 </div>
  983.                                                                             </div>
  984.                                                                         </div>
  985.                                                                         <div class="col-sm-1 margen-5">
  986.                                                                             <div class="col-md-12 col-xs-12">
  987.                                                                             </div>
  988.                                                                             <div class="col-md-12 col-xs-12" style="padding-top: 15px; padding-left: 0px">
  989.                                                                                 <div class="checkbox checkbox-switchery switchery-lg switchery-double text-center" title="Eliminar este item">
  990.                                                                                     <a target="_self" class="btn bg-danger-300 btn-block icon-trash padding-3" href="/reservations-greenpatio/deleteitemservice/{{ service.id }}/{{ id }}" title="Eliminar este elemento"></a>
  991.                                                                                 </div>
  992.                                                                             </div>
  993.                                                                         </div>
  994.                                                                     </div>
  995.                                                                 </div>
  996.                                                             {% endif %}
  997.                                                         </div>
  998.                                                     {% endfor %}
  999.                                                 </div>
  1000.                                             </div>
  1001.                                             <div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
  1002.                                             <div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
  1003.                                                 <div class="form-group form-group-material">
  1004.                                                     <div class="input-group teal">
  1005.                                                         <span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>
  1006.                                                         <button type="submit" id="mds_greenpatiobundle_servicegrid_save" name="mds_greenpatiobundle_servicegrid[save]" class="btn bg-green-600 btn-block">Guardar Servicios</button>
  1007.                                                     </div>
  1008.                                                 </div>
  1009.                                             </div>
  1010.                                             <div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
  1011.                                         </form>
  1012.                                     {% endif %}
  1013.                                 </div>
  1014.                             </div>
  1015.                         </div>
  1016.                     </div>
  1017.                     <div class="col-sm-12">
  1018.                         <div class="panel">
  1019.                             <div class="panel-body text-center">
  1020.                                 <div class="col-sm-12 ">
  1021.                                     <div class="col-sm-4"><b class="text-success">{% trans %}Sale Client Global{% endtrans %} (Servicios)</b><br><b> {{ totales_global_servicios_con_iva|number_format(2, '.', ',') }} €</b></div>
  1022.                                     <div class="col-sm-4"><b class="text-success">{% trans %}IVA{% endtrans %} (Servicios)</b><br><b> {{  totales_global_servicios_iva|number_format(2, '.', ',') }} €</b></div>
  1023.                                     <div class="col-sm-4"><b class="text-success">{% trans %}Sale No Vat{% endtrans %} (Servicios)</b><br><b> {{ totales_global_servicios_neto|number_format(2, '.', ',') }} €</b></div>
  1024.                                 </div>
  1025.                             </div>
  1026.                         </div>
  1027.                     </div>
  1028.                     <div class="col-sm-12">
  1029.                         <div class="panel">
  1030.                             <div class="panel-body text-center">
  1031.                                 <div class="col-sm-12 ">
  1032.                                     <div class="col-sm-6">
  1033.                                         <b class="text-success">{% trans %}Beneficio{% endtrans %}</b>
  1034.                                         <br>
  1035.                                         <b> {{ benefit|number_format(2, '.', ',') }} €</b>
  1036.                                     </div>
  1037.                                     <div class="col-sm-6"><b class="text-success">{% trans %}Beneficio (%){% endtrans %}</b><br><b> {{ percBenefit|number_format(2, '.', ',') }} %</b></div>
  1038.                                     <br><br><br>
  1039.                                     <div class="col-sm-12"><b class="text-success">{% trans %}Resumen de Beneficio{% endtrans %}</b>
  1040.                                         {% for lounge in payedLounges %}
  1041.                                             <br><b>{{ lounge.loungeName }} + {{ lounge.servicePrice|number_format(2, '.', ',') }} €</b>
  1042.                                         {% endfor %}
  1043.                                         {% for service in payedServices %}
  1044.                                             <br><b>{{ service.name }} + {{ service.price|number_format(2, '.', ',') }} €</b>
  1045.                                         {% endfor %}
  1046.                                         {% for service in unPayedServices %}
  1047.                                             {#Se verifica el check de toinvoice por si el servicio se facturara a futuro#}
  1048.                                             {% if service.toinvoice %}
  1049.                                                 <br><b>{{ service.name }} + {{ service.price|number_format(2, '.', ',') }} €</b>
  1050.                                             {% else %}
  1051.                                                 <br><b>{{ service.name }} - {{ service.price|number_format(2, '.', ',') }} €</b>
  1052.                                             {% endif %}
  1053.                                         {% endfor %}
  1054.                                     </div>
  1055.                                 </div>
  1056.                             </div>
  1057.                         </div>
  1058.                     </div>
  1059.                     <div class="col-sm-12">
  1060.                         <div class="panel">
  1061.                             <div class="panel-body">
  1062.                                 <div class="col-md-12 col-xs-12" ><strong class="text-info">
  1063.                                     <legend class="border-teal-800">{% trans %}FACTURACION{% endtrans %}</legend></strong>
  1064.                                 </div>
  1065.                                 <div class="col-sm-12 text-center">
  1066.                                     <div class="col-sm-12">
  1067.                                         <div class="col-sm-1"><b>No.</b></div>
  1068.                                         <div class="col-sm-2"><b>Fecha de Facturación</b></div>
  1069.                                         <div class="col-sm-3"><b>Cliente</b></div>
  1070.                                         <div class="col-sm-1"><b>Neto</b></div>
  1071.                                         <div class="col-sm-1"><b>Iva</b></div>
  1072.                                         <div class="col-sm-1"><b>Total</b></div>
  1073.                                         <div class="col-sm-2"><b>Balance Restante</b></div>
  1074.                                         <div class="col-sm-1"><b>Acciones</b></div>
  1075.                                     </div>
  1076.                                     <div class="col-sm-12">
  1077.                                         <hr>
  1078.                                     </div>
  1079.                                     {% set totalBalance = 0 %}
  1080.                                     {% for factura in facturas %}
  1081.                                         {% set totalBalance = totalBalance + factura.balance %}
  1082.                                         <div class="col-sm-12 margen-10">
  1083.                                             <div class="col-sm-1">
  1084.                                                 {% if factura.type == 'Invoice' %}
  1085.                                                     {% if factura.clientType == 'Supplier' %}
  1086.                                                         <p style="color:orange">{% if invoicedLine == 'CVR' %}C{% endif %}{{ factura.id }}</p>
  1087.                                                     {% else %}
  1088.                                                         {% if invoicedLine == 'CVR' %}C{% endif %}{{ factura.id }}
  1089.                                                     {% endif %}
  1090.                                                 {% else %}
  1091.                                                     {% if factura.type == 'Invoice Deposit' %}
  1092.                                                         {#Factura de deposito#}
  1093.                                                         <p style="color:green">{{ factura.id }}</p>
  1094.                                                     {% else %}
  1095.                                                         {#Factura rectificativa#}
  1096.                                                         <p style="color:red"> {% if invoicedLine == 'CVR' %}RC{{ factura.id }} (C{{ factura.invoiceToRec }}){% else %}R{{ factura.id }} ({{ factura.invoiceToRec }}){% endif %}</p>
  1097.                                                     {% endif %}
  1098.                                                 {% endif %}
  1099.                                             </div>
  1100.                                             <div class="col-sm-2">
  1101.                                                 {% if factura.type == 'Invoice' %}
  1102.                                                     {% if factura.clientType == 'Supplier' %}
  1103.                                                         <p style="color:orange">{{ factura.dateAt|date("d/m/Y") }}</p>
  1104.                                                     {% else %}
  1105.                                                         {{ factura.dateAt|date("d/m/Y") }}
  1106.                                                     {% endif %}
  1107.                                                 {% else %}
  1108.                                                     {% if factura.type == 'Invoice Deposit' %}
  1109.                                                         {#Factura de deposito#}
  1110.                                                         <p style="color:green">{{ factura.dateAt|date("d/m/Y") }}</p>
  1111.                                                     {% else %}
  1112.                                                         {#Factura rectificativa#}
  1113.                                                         <p style="color:red">{{ factura.dateAt|date("d/m/Y") }}</p>
  1114.                                                     {% endif %}
  1115.                                                 {% endif %}
  1116.                                             </div>
  1117.                                             <div class="col-sm-3">
  1118.                                                 {% if factura.type == 'Invoice' %}
  1119.                                                     {% if factura.clientType == 'Supplier' %}
  1120.                                                         <p style="color:orange">{{ factura.clientName }}</p>
  1121.                                                     {% else %}
  1122.                                                         {{ factura.prefix }}
  1123.                                                     {% endif %}
  1124.                                                 {% else %}
  1125.                                                     {% if factura.type == 'Invoice Deposit' %}
  1126.                                                         {#Factura de deposito#}
  1127.                                                         <p style="color:green">{{ factura.prefix }}</p>
  1128.                                                     {% else %}
  1129.                                                         {#Factura rectificativa#}
  1130.                                                         <p style="color:red">{{ factura.prefix }}</p>
  1131.                                                     {% endif %}
  1132.                                                 {% endif %}
  1133.                                             </div>
  1134.                                             <div class="col-sm-1">
  1135.                                                 {% if factura.type == 'Invoice' %}
  1136.                                                     {% if factura.clientType == 'Supplier' %}
  1137.                                                         <p style="color:orange">{{ factura.totalNet|number_format(2, '.', ',') }}</p>
  1138.                                                     {% else %}
  1139.                                                         {{ factura.totalNet|number_format(2, '.', ',') }}
  1140.                                                     {% endif %}
  1141.                                                 {% else %}
  1142.                                                     {% if factura.type == 'Invoice Deposit' %}
  1143.                                                         {#Factura de deposito#}
  1144.                                                         <p style="color:green">{{ factura.totalNet|number_format(2, '.', ',') }}</p>
  1145.                                                     {% else %}
  1146.                                                         {% if factura.type == 'Invoice Deposit Rec' %}
  1147.                                                             {#Factura rectificativa de deposito#}
  1148.                                                             <p style="color:red">{{ factura.totalNet|number_format(2, '.', ',') }}</p>
  1149.                                                         {% else %}
  1150.                                                             {#Factura rectificativa#}
  1151.                                                             <p style="color:red">{{ factura.totalNet|number_format(2, '.', ',') }}</p>
  1152.                                                         {% endif %}
  1153.                                                     {% endif %}
  1154.                                                 {% endif %}
  1155.                                             </div>
  1156.                                             <div class="col-sm-1">
  1157.                                                 {% if factura.type == 'Invoice' %}
  1158.                                                     {% if factura.clientType == 'Supplier' %}
  1159.                                                         <p style="color:orange">{{ factura.vat|number_format(2, '.', ',') }}</p>
  1160.                                                     {% else %}
  1161.                                                         {{ factura.vat|number_format(2, '.', ',') }}
  1162.                                                     {% endif %}
  1163.                                                 {% else %}
  1164.                                                     {% if factura.type == 'Invoice Deposit' %}
  1165.                                                         {#Factura de deposito#}
  1166.                                                         <p style="color:green">{{ factura.vat|number_format(2, '.', ',') }}</p>
  1167.                                                     {% else %}
  1168.                                                         {% if factura.type == 'Invoice Deposit Rec' %}
  1169.                                                             {#Factura rectificativa de deposito#}
  1170.                                                             <p style="color:red">{{ factura.vat|number_format(2, '.', ',') }}</p>
  1171.                                                         {% else %}
  1172.                                                             {#Factura rectificativa#}
  1173.                                                             <p style="color:red">{{ factura.vat|number_format(2, '.', ',') }}</p>
  1174.                                                         {% endif %}
  1175.                                                     {% endif %}
  1176.                                                 {% endif %}
  1177.                                             </div>
  1178.                                             <div class="col-sm-1">
  1179.                                                 {% if factura.type == 'Invoice' %}
  1180.                                                     {% if factura.clientType == 'Supplier' %}
  1181.                                                         <p style="color:orange">{{ factura.total|number_format(2, '.', ',') }}</p>
  1182.                                                     {% else %}
  1183.                                                         {{ factura.total|number_format(2, '.', ',') }}
  1184.                                                     {% endif %}
  1185.                                                 {% else %}
  1186.                                                     {% if factura.type == 'Invoice Deposit' %}
  1187.                                                         {#Factura de deposito#}
  1188.                                                         <p style="color:green">{{ factura.total|number_format(2, '.', ',') }}</p>
  1189.                                                     {% else %}
  1190.                                                         {% if factura.type == 'Invoice Deposit Rec' %}
  1191.                                                             {#Factura rectificativa de deposito#}
  1192.                                                             <p style="color:red">{{ factura.total|number_format(2, '.', ',') }}</p>
  1193.                                                         {% else %}
  1194.                                                             {#Factura rectificativa#}
  1195.                                                             <p style="color:red">{{ factura.total|number_format(2, '.', ',') }}</p>
  1196.                                                         {% endif %}
  1197.                                                     {% endif %}
  1198.                                                 {% endif %}
  1199.                                             </div>
  1200.                                             <div class="col-sm-2">
  1201.                                                 {% if factura.type == 'Invoice' %}
  1202.                                                     {% if factura.clientType == 'Supplier' %}
  1203.                                                         <p style="color:orange">{{ factura.balance|number_format(2, '.', ',') }}</p>
  1204.                                                     {% else %}
  1205.                                                         {{ factura.balance|number_format(2, '.', ',') }}
  1206.                                                     {% endif %}
  1207.                                                 {% else %}
  1208.                                                     {% if factura.type == 'Invoice Deposit' %}
  1209.                                                         {#Factura de deposito#}
  1210.                                                         <p style="color:green">{{ factura.balance|number_format(2, '.', ',') }}</p>
  1211.                                                     {% else %}
  1212.                                                         {#Factura rectificativa#}
  1213.                                                         <p style="color:red">{{ factura.balance|number_format(2, '.', ',') }}</p>
  1214.                                                     {% endif %}
  1215.                                                 {% endif %}
  1216.                                             </div>
  1217.                                             <div class="col-sm-1">
  1218.                                                 {% if factura.type == 'Invoice' %}
  1219.                                                     {% if invoicedLine == 'CVR' %}
  1220.                                                         <a class="btn btn-success btn-xs" href="/reservations-greenpatio/cvr/reservations/invoice/viewnew/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
  1221.                                                     {% else %}
  1222.                                                         <a class="btn btn-success btn-xs" href="/reservations-greenpatio/reservations/invoice/viewnew/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
  1223.                                                     {% endif %}
  1224.                                                 {% else %}
  1225.                                                     {% if factura.type == 'Invoice Deposit' %}
  1226.                                                         {#Factura de deposito#}
  1227.                                                         {% if invoicedLine == 'CVR' %}
  1228.                                                             <a class="btn btn-success btn-xs" href="/reservations-greenpatio/cvr/reservations/newinvoicedeposit/viewinvoicedeposit/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
  1229.                                                         {% else %}
  1230.                                                             <a class="btn btn-success btn-xs" href="/reservations-greenpatio/reservations/newinvoicedeposit/viewinvoicedeposit/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
  1231.                                                         {% endif %}
  1232.                                                     {% else %}
  1233.                                                         {% if factura.type == 'Invoice Rec' %}
  1234.                                                             {#Factura rectificativa#}
  1235.                                                             {% if invoicedLine == 'CVR' %}
  1236.                                                                 <a class="btn btn-success btn-xs" href="/reservations-greenpatio/cvr/reservations/invoice/viewrec/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
  1237.                                                             {% else %}
  1238.                                                                 <a class="btn btn-success btn-xs" href="/reservations-greenpatio/reservations/invoice/viewrec/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
  1239.                                                             {% endif %}
  1240.                                                         {% else %}
  1241.                                                             {% if factura.type == 'Invoice Deposit Rec' %}
  1242.                                                                 {#Factura de deposito rectificativa#}
  1243.                                                                 {% if invoicedLine == 'CVR' %}
  1244.                                                                     <a class="btn btn-success btn-xs" href="/reservations-greenpatio/cvr/reservations/newinvoicedeposit/viewinvoicedepositrec/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
  1245.                                                                 {% else %}
  1246.                                                                     <a class="btn btn-success btn-xs" href="/reservations-greenpatio/reservations/newinvoicedeposit/viewinvoicedepositrec/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
  1247.                                                                 {% endif %}
  1248.                                                             {% endif %}
  1249.                                                         {% endif %}
  1250.                                                     {% endif %}
  1251.                                                 {% endif %}
  1252.                                             </div>
  1253.                                         </div>
  1254.                                     {% endfor %}
  1255.                                     {% for item in paymentNotIvoiced %}
  1256.                                         {% if item.invoiceId is empty %}
  1257.                                             {% set totalBalance = totalBalance - item.Amount %}
  1258.                                         {% else %}
  1259.                                             {% set totalBalance = totalBalance - 0 %}
  1260.                                         {% endif %}
  1261.                                         <div class="col-sm-12 margen-10">
  1262.                                             <div class="col-sm-1"></div>
  1263.                                             <div class="col-sm-2">
  1264.                                                 <p style="color:blue">{{ item.DatePayAt|date("d/m/Y") }}</p>
  1265.                                             </div>
  1266.                                             <div class="col-sm-3">
  1267.                                                 <p style="color:blue">{{ item.WayToPay }}</p>
  1268.                                             </div>
  1269.                                             <div class="col-sm-1"></div>
  1270.                                             <div class="col-sm-1"></div>
  1271.                                             <div class="col-sm-1"></div>
  1272.                                             <div class="col-sm-2">
  1273.                                                 {% if item.invoiceId is empty %}
  1274.                                                   <p style="color:blue">-{{ (item.Amount)|number_format(2, '.', ',') }}</p>
  1275.                                                 {% else %}
  1276.                                                   <p style="color:blue">-{{ (item.AmountTotal)|number_format(2, '.', ',') }}</p>
  1277.                                                 {% endif %}
  1278.                                             </div>
  1279.                                             <div class="col-sm-1"></div>
  1280.                                         </div>
  1281.                                     {% endfor %}
  1282.                                     <div class="col-sm-12">
  1283.                                         <hr>
  1284.                                     </div>
  1285.                                     <div class="col-sm-12">
  1286.                                         <div class="col-sm-offset-6 col-sm-1"><b>Neto</b><br>{{ resultados.totalNeto|number_format(2, '.', ',') }}</div>
  1287.                                         <div class="col-sm-1"><b>Iva</b><br>{{ resultados.vat|number_format(2, '.', ',') }}</div>
  1288.                                         <div class="col-sm-1"><b>Total</b><br>{{ resultados.total|number_format(2, '.', ',') }}</div>
  1289.                                         <div class="col-sm-2"><b>Balance Restante</b><br>{{ totalBalance|number_format(2, '.', ',') }}</div>
  1290.                                     </div>
  1291.                                 </div>
  1292.                             </div>
  1293.                         </div>
  1294.                     </div>
  1295.                     {# -------------------------- Depositos -------------------------- #}
  1296.                     <div id="btn_dpt" class="col-sm-12">
  1297.                         <div class="panel">
  1298.                             <div class="panel-body">
  1299.                                 <div class="col-md-12 col-xs-12" ><strong class="text-info">
  1300.                                         <legend class="border-teal-800">{% trans %}DEPOSITOS{% endtrans %}</legend></strong>
  1301.                                 </div>
  1302.                                 <form name="mds_greenpatiobundle_revervation_form3" method="post" action="/reservations-greenpatio/createdeposit/{{ id }}" class="form-horizontal" role="form" autocomplete="off">
  1303.                                     <div class="col-md-2 col-xs-12" >
  1304.                                         <label class="control-label">{% trans %}Date{% endtrans %}: *</label>
  1305.                                         <input type="date" id="reservation_deposit_date" name="reservation_deposit[date]" value="" class="form-control" required="required">
  1306.                                     </div>
  1307.                                     <div class="col-md-4 col-xs-12" >
  1308.                                         <div class="col-md-12"><label class="control-label">{% trans %}Descripción{% endtrans %}</label></div>
  1309.                                         <div class="col-md-12">
  1310.                                             <input type="text" class="form-control" name="reservation_deposit[description]" id="reservation_deposit_description" value="" placeholder="Descripción del deposito">
  1311.                                         </div>
  1312.                                     </div>
  1313.                                     <div class="col-md-2 col-xs-12" >
  1314.                                         <div class="col-md-12"><label class="control-label">{% trans %}Monto{% endtrans %} *</label></div>
  1315.                                         <div class="col-md-12">
  1316.                                             <input type="text" class="form-control" name="reservation_deposit[amount]" id="reservation_deposit_amount" value="" placeholder="Descripción del deposito" required="required">
  1317.                                         </div>
  1318.                                     </div>
  1319.                                     <div class="col-md-2 col-xs-12" style="padding-top: 25px">
  1320.                                         <div class="col-md-12">
  1321.                                             <div class="checkbox-switchery switchery-sm">
  1322.                                                 <div class="checkbox checkbox-switchery switchery-lg switchery-double text-left">
  1323.                                                     <input type="checkbox" class="switchery-info boolDelete" id="reservation_deposit_isdone" name="reservation_deposit[isDone]" > PAGADO
  1324.                                                 </div>
  1325.                                             </div>
  1326.                                         </div>
  1327.                                     </div>
  1328.                                     <div class="col-md-2 col-xs-12" style="padding-top: 25px; padding-left: 15px;padding-right: 15px">
  1329.                                         <div class="form-group form-group-material">
  1330.                                             <div class="input-group teal">
  1331.                                                 <span class="input-group-addon bg-info-800"><i class="icon-plus22"></i></span>
  1332.                                                 <button type="submit" id="reservation_deposit_save" name="reservation_deposit[save]" class="btn bg-info-600 btn-block">{% trans %}Add{% endtrans %}</button>
  1333.                                             </div>
  1334.                                         </div>
  1335.                                     </div>
  1336.                                 </form>
  1337.                                 <div class="col-sm-12 text-center"><br><br><br></div>
  1338.                                 <div class="col-sm-12 text-center">
  1339.                                     <div class="col-sm-12">
  1340.                                         <div class="col-sm-2"><b>Fecha del Deposito</b></div>
  1341.                                         <div class="col-sm-5"><b>Descripción</b></div>
  1342.                                         <div class="col-sm-3"><b>Monto</b></div>
  1343.                                         <div class="col-sm-2"><b>Pagado</b></div>
  1344.                                     </div>
  1345.                                     <div class="col-sm-12">
  1346.                                         <hr>
  1347.                                     </div>
  1348.                                     {% for deposito in depositsAll %}
  1349.                                         <div class="col-sm-12 margen-10">
  1350.                                             <div class="col-sm-2">
  1351.                                                 {{ deposito.date|date('d/m/Y') }}
  1352.                                             </div>
  1353.                                             <div class="col-sm-5">
  1354.                                                 {{ deposito.description }}
  1355.                                             </div>
  1356.                                             <div class="col-sm-3">
  1357.                                                 {{ deposito.amount }}
  1358.                                             </div>
  1359.                                             <div class="col-sm-2">
  1360.                                                 {% if deposito.isDone %}
  1361.                                                     <i class="icon-checkmark"></i>
  1362.                                                 {% else %}
  1363.                                                     <form name="reservation_deposit_isdone_pending" method="post" action="/reservations-greenpatio/depositupdate/{{ deposito.id }}" class="form-horizontal" role="form" autocomplete="off">
  1364.                                                     <div class="col-sm-9">
  1365.                                                         <div class="checkbox-switchery switchery-sm">
  1366.                                                             <div class="checkbox checkbox-switchery switchery-lg switchery-double text-left">
  1367.                                                                 <input type="checkbox" class="switchery-info boolDelete" id="reservation_deposit_isdone_pending" name="reservation_deposit_isdone_pending[isDone]" > PAGADO
  1368.                                                             </div>
  1369.                                                         </div>
  1370.                                                     </div>
  1371.                                                     <div class="col-sm-3 col-xs-12" style="padding-top: -10px; padding-left: 15px;padding-right: 15px">
  1372.                                                         <div class="form-group form-group-material">
  1373.                                                             <div class="input-group teal">
  1374.                                                                 {#<span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>#}
  1375.                                                                 <button type="submit" id="reservation_deposit_isdone_pending_save" name="reservation_deposit_isdone_pending[save]" class="btn bg-green-600 btn-block"><i class="icon-floppy-disk"></i></button>
  1376.                                                             </div>
  1377.                                                         </div>
  1378.                                                     </div>
  1379.                                                 </form>
  1380.                                                 {% endif %}
  1381.                                             </div>
  1382.                                         </div>
  1383.                                     {% endfor %}
  1384.                                     <div class="col-sm-12">
  1385.                                         <hr>
  1386.                                     </div>
  1387.                                 </div>
  1388.                             </div>
  1389.                         </div>
  1390.                     </div>
  1391.                     {# -------------------------- Facturas de Depositos -------------------------- #}
  1392.                     <div class="col-sm-12">
  1393.                         <div class="panel">
  1394.                             <div class="panel-body">
  1395.                                 <div class="col-md-12 col-xs-12" ><strong class="text-info">
  1396.                                     <legend class="border-teal-800">{% trans %}Payments{% endtrans %}</legend></strong>
  1397.                                 </div>
  1398.                                 <div class="col-sm-12 text-center">
  1399.                                     <div class="col-sm-12">
  1400.                                         {#<div class="col-sm-1"><b>No.</b></div>#}
  1401.                                         <div class="col-sm-3"><b>Expediente</b></div>
  1402.                                         <div class="col-sm-3"><b>Fecha de Pago</b></div>
  1403.                                         <div class="col-sm-3"><b>Forma de Pago</b></div>
  1404.                                         <div class="col-sm-3"><b>Monto</b></div>
  1405.                                     </div>
  1406.                                     <div class="col-sm-12">
  1407.                                         <hr>
  1408.                                     </div>
  1409.                                     {% for payment in paymentsAll %}
  1410.                                         <div class="col-sm-12 margen-10">
  1411.                                             {#<div class="col-sm-1">{{ payment.id }}</div>#}
  1412.                                             <div class="col-sm-3">{{ payment.reservationId }}</div>
  1413.                                             <div class="col-sm-3">{{ payment.datePayAt|date('d/m/Y') }}</div>
  1414.                                             <div class="col-sm-3">{{ payment.wayToPay }}</div>
  1415.                                             <div class="col-sm-3">{{ payment.amount|number_format(2, '.', ',') }}</div>
  1416.                                         </div>
  1417.                                     {% endfor %}
  1418.                                 </div>
  1419.                             </div>
  1420.                         </div>
  1421.                     </div>
  1422.                 </div>
  1423.             </div>
  1424.         </div>
  1425.     </div>
  1426.     <div class="col-sm-12 text-center">
  1427.         <div class="panel bg-danger-300" style="padding-top: 10px; padding-bottom: 0px;  bottom: 0; position: fixed; width: 80%">
  1428.             <div class="col-sm-4"><b>{% trans %}Sale Client Global{% endtrans %}</b><br><b> {{ sumatoria_totales_global_con_iva|number_format(2, '.', ',') }} € </b></div>
  1429.             <div class="col-sm-4"><b>{% trans %}IVA{% endtrans %}</b><br><b> {{  sumatoria_totales_global_iva|number_format(2, '.', ',') }} €</b></div>
  1430.             <div class="col-sm-4"><b>{% trans %}Sale No Vat{% endtrans %}</b><br><b> {{ sumatoria_totales_global_neto|number_format(2, '.', ',') }} €</b></div>
  1431.         </div>
  1432.     </div>
  1433. {% endblock %}
  1434. {% block javascripts %}
  1435.     {{ parent() }}
  1436.     <script type="text/javascript" src="{{ asset('assets/js/plugins/editors/summernote/summernote.min.js') }}"></script>
  1437.     <script type="text/javascript" src="{{ asset('assets/js/plugins/croppie/croppie.js') }}"></script>
  1438.     <script type="text/javascript" src="{{ asset('assets/js/plugins/forms/styling/switchery.min.js') }}"></script>
  1439.     <script type="text/javascript" src="{{ asset('assets/js/plugins/loaders/blockui.min.js') }}"></script>
  1440.     <script type="text/javascript" src="{{ asset('assets/js/plugins/forms/selects/select2.min.js') }}"></script>
  1441.     <script type="text/javascript" src="{{ asset('assets/js/pages/greenpatio/add-simple-reservation.js') }}"></script>
  1442.     <script type="text/javascript" src="{{ asset('assets/js/pages/datetime.js') }}"></script>
  1443.     <script type="text/javascript" src="{{ asset('assets/js/pages/greenpatio/switchery-services.js') }}"></script>
  1444. {% endblock %}