{% extends 'MDS/GreenPatioBundle/base-reservations.html.twig' %}
{% block pagetitleinterno %}
<div class="page-title">
<h4><i class="icon-list position-left"></i> <span class="text-semibold">{% trans %}Green Patio{% endtrans %}</span> - {% trans %}Reservation{% endtrans %}</h4>
</div>
{% endblock %}
{% block breadcrumbs %}
<ul class="breadcrumb">
<li><a href="/reservations-greenpatio/list"><i class="icon-home2 position-left"></i>{% trans %}Home{% endtrans %}</a></li>
<li class="active"><i class="icon-plus-circle2 position-left"></i>{% trans %}Edit Reservations{% endtrans %}</li>
</ul>
{% endblock %}
{% block contentReservation %}
<div class="row settings-page" id="client-client-subpage">
{% for flashMessage in app.session.flashbag.get('mensajereservation') %}
<div class="hidden alertFlashMensaje" data-mensaje="{{ flashMessage }}"></div>
{% endfor %}
{% for flashMessage in app.session.flashbag.get('mensajereservationerror') %}
<div class="hidden alertFlashMensajeError" data-mensajeerror="{{ flashMessage }}"></div>
{% endfor %}
<div class="col-xs-12 col-md-12" style="padding-top: 0px;">
<br>
<div class="col-xs-12">
<div class="col-sm-12 text-right">
{% if aveFile is defined %}
{% if aveFile is not empty %}
<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>
{% endif %}
{% endif %}
{% if htFile is defined %}
{% if htFile is not empty %}
<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>
{% endif %}
{% endif %}
{% if clientId != 0 %}
<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>
<a href="/reservations-greenpatio/selinvoice/{{ id }}" class="btn bg-brown-600 btn-gl" >{% trans %}Cotización{% endtrans %}</a>
{% endif %}
<a href="/" class="btn btn-success btn-gl">{% trans %}Calendario de Reservas{% endtrans %} <i class="icon-calendar position-right"></i></a>
{% if reserva.client is empty or reserva.clientContact is empty or reserva.pax is empty %}
<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>
{% else %}
<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>
{% endif %}
<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>
<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>
</div>
<div class="col-sm-12 margen-15"></div>
<div class="col-sm-12 margen-15">
<div class="panel">
<div class="panel-body">
<form name="mds_greenpatiobundle_revervation" method="post" action="/reservations-greenpatio/update/{{ id }}" class="form-horizontal" role="form" autocomplete="off">
<div class="col-md-12 col-xs-12" align="center"><strong class="text-info">
<legend class="border-teal-800"><h3>{% trans %}DATOS GENERALES ( EXPEDIENTE ){% endtrans %}</h3></legend></strong>
</div>
<div class="col-md-12 col-xs-12">
<h4><strong>Green Patio ID # {{ id }}</strong></h4>
</div>
<div class="col-md-12 col-xs-12">
<div class="col-md-6 col-xs-6 margen-5">
<div class="col-md-6"><label class="control-label text-left">{% trans %}Title{% endtrans %}</label></div>
<div class="col-md-12"><input type="text" class="form-control" name="reservation[title]" id="reservation_title" value="{{ reserva.title }}"></div>
</div>
<div class="col-md-2 col-xs-12 margen-5">
<div class="col-md-6"><label class="control-label text-left">{% trans %}# Id Proposal{% endtrans %}</label></div>
<div class="col-md-12"><input type="text" class="form-control" name="reservation[idProposal]" id="reservation_idProposal" value="{{ reserva.idProposal }}"></div>
</div>
<div class="col-md-2 col-xs-12 margen-5">
{#<div class="col-md-6"><label class="control-label text-left">{% trans %}TOKEN{% endtrans %}</label></div>#}
{#<div class="col-md-12"><input type="text" class="form-control" name="reservation[token]" id="reservation_token" value="{{ reserva.token }}" readonly></div>#}
</div>
<div class="col-md-12 col-xs-12" style="margin-left: -10px; padding-top: 5px; padding-bottom: 5px">
<div class="col-md-2 col-xs-6" style="margin-left: 10px; padding-top: 35px">
<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>
</div>
<div class="col-md-2" style="margin-left: -40px; padding-top: 8px">
<div class="col-md-6"><label class="control-label text-left">{% trans %}Client{% endtrans %}</label></div>
<div class="col-md-12">
<select id="reservation_client" name="reservation[client]" class="form-control">
<option value="">{% trans %}Select a client{% endtrans %}</option>
{% for client in clients %}
{% if client.Id == clientId %}
<option value="{{ client.id }}" selected="selected">{{ client.name|capitalize }} </option>
{% else %}
<option value="{{ client.id }}">{{ client.name|capitalize }} </option>
{% endif %}
{% endfor %}
</select>
</div>
</div>
<div class="col-md-3 col-xs-6" >
<div class="form-group">
<label class="control-label is-visible">
<label for="client_region" class="control-label is-visible">{% trans %}Contacto{% endtrans %}</label>
</label>
<div class="input-group col-lg-10 col-xs-10 InputClientContactSpinner">
<select class="form-control" name="clientContact" id="client_contact" placeholder="{% trans %}Seleccione un contacto{% endtrans %}">
<option value="" selected="selected">{% trans %}Seleccione un contacto{% endtrans %}</option>
{% for contact in clientsContact %}
{% if contact.id == reserva.clientContact %}
<option value="{{ contact.id }}" selected>{{ contact.name }} {{ contact.lastName }} ({{ contact.email }})</option>
{% else %}
<option value="{{ contact.id }}">{{ contact.name }} {{ contact.lastName }} ({{ contact.email }})</option>
{% endif %}
{% endfor %}
</select>
</div>
<span class="help-block">{{ form_errors(form.clientContact) }}</span>
</div>
</div>
<div class="col-md-2 col-xs-6" style="margin-left: -30px; padding-top: 0px">
<div class="form-group">
<label class="control-label is-visible">
<label for="client_region" class="control-label is-visible">{% trans %}Contacto No Registrado{% endtrans %}</label>
</label>
<div class="input-group col-lg-10 col-xs-10">
<input type="text" class="form-control" id="contactUnregistered" name="contactUnregistered" placeholder="Correo electrónico" value="{{ reserva.contactUnregistered }}">
</div>
</div>
</div>
<div class="col-md-2 col-xs-6" >
<div class="form-group">
<label class="control-label is-visible">
<label for="client_region" class="control-label is-visible">{% trans %}Nombre No Registrado{% endtrans %}</label>
</label>
<div class="input-group col-lg-10 col-xs-10">
<input type="text" class="form-control" id="nameContactUnregistered" name="nameContactUnregistered" placeholder="Nombre y apellido" value="{{ reserva.nameContactUnregistered }}">
</div>
</div>
</div>
<div class="col-md-1 col-xs-6" >
<div class="form-group">
<label class="control-label is-visible">
<label for="client_region" class="control-label is-visible">{% trans %} Teléfono{% endtrans %}</label>
</label>
<div class="input-group col-lg-10 col-xs-10">
<input type="text" class="form-control" id="phoneContactUnregistered" name="phoneContactUnregistered" placeholder="Teléfono" value="{{ reserva.phoneContactUnregistered }}">
</div>
</div>
</div>
</div>
<div class="col-md-7 col-xs-12 margen-5">
<div class="col-md-3 col-xs-12 margen-5">
<div class="col-md-6"><label class="control-label text-left">{% trans %}Status{% endtrans %}</label></div>
<div class="col-md-12">
<select id="reservation_status" name="reservation[status]" class="form-control">
<option value="">{% trans %}Select a status{% endtrans %}</option>
{% if reserva.status == 'Iniciado' %} <option value="Iniciado" selected="selected">INICIADO</option> {% else %} <option value="Iniciado">INICIADO</option> {% endif %}
{% if reserva.status == 'Bloqueo' %} <option value="Bloqueo" selected="selected">BLOQUEO</option> {% else %} <option value="Bloqueo">BLOQUEO</option> {% endif %}
{% if reserva.status == 'Confirmed' %}
<option value="Confirmed" selected="selected">CONFIRMADO *</option>
{% else %}
{% if confirmable %} <option value="Confirmed">CONFIRMADO *</option> {% else %} <option value="Confirmed" disabled="disabled">CONFIRMADO (Falta el depósito) *</option> {% endif %}
{% endif %}
{% if reserva.status == 'Cotizado' %}
<option value="Cotizado" selected="selected">COTIZADO</option>
{% else %}
{% if cotizable %} <option value="Cotizado">COTIZADO</option> {% else %} <option value="Cotizado" disabled="disabled">COTIZADO (Falta agregar salas)</option> {% endif %}
{% endif %}
{% if reserva.status == 'Invoiced' %} <option value="Invoiced" selected="selected">FACTURADO *</option> {% else %} <option value="Invoiced">FACTURADO *</option> {% endif %}
{% if reserva.status == 'Deleted' %} <option value="Deleted" selected="selected">CANCELADO</option> {% else %} <option value="Deleted">CANCELADO</option> {% endif %}
{% if reserva.status == 'Pendiente' %} <option value="Pendiente" selected="selected">PENDIENTE</option> {% endif %}
</select>
</div>
</div>
<div class="col-md-5 col-xs-12 margen-5">
<div class="col-md-6"><label class="control-label text-left">{% trans %}Días de bloqueo{% endtrans %}</label></div>
<div class="col-md-12"><input type="text" class="form-control" name="reservation[daysBlock]" id="reservation_daysBlock" value="{{ reserva.daysBlock }}"></div>
</div>
<div class="col-md-4 col-xs-12">
<div class="form-group">
<label class="control-label is-visible">
<label for="client_region" class="control-label is-visible">{% trans %}Fechas{% endtrans %}</label>
</label>
<div class="input-group col-lg-10 col-xs-10">
<input type="text" class="form-control" id="days" name="days" placeholder="Especifique los días de bloqueo" value="{{ reserva.days }}">
</div>
</div>
</div>
{% if reserva.status == 'Bloqueo' %}
{% if nextMailAlert is not null %}
<div class="col-md-3" style="margin-left: 10px">
<label class="control-label" for="forecast_date_start_title">{% trans %}Fecha de próxima notificación{% endtrans %}: </label>
<input type="date" id="reservation_date_next_mail_alert" name="reservation[dateNextMailAlert]" class="form-control" value="{{ nextMailAlert|date('Y-m-d') }}">
</div>
{% else %}
<input type="hidden" class="form-control" name="reservation[dateNextMailAlert]" id="reservation_date_next_mail_alert" value="">
{% endif %}
{% else %}
<input type="hidden" class="form-control" name="reservation[dateNextMailAlert]" id="reservation_date_next_mail_alert" value="">
{% endif %}
</div>
<div class="col-md-2 col-xs-6 margen-5">
<div class="col-md-6"><label class="control-label text-left">{% trans %}Catering{% endtrans %}</label></div>
<div class="col-md-12">
{#<input type="text" class="form-control" name="reservation[client]" id="reservation_client" value="{{ reserva.client }}">#}
<select id="reservation_cateringName" name="reservation[cateringName]" class="form-control">
<option value="">{% trans %}Seleccione un catering{% endtrans %}</option>
{% for catering in caterings %}
{% if reserva.cateringName == catering.company %}
<option value="{{ catering.company }}" selected="selected">{{ catering.company|capitalize }} </option>
{% else %}
<option value="{{ catering.company }}">{{ catering.company|capitalize }} </option>
{% endif %}
{% endfor %}
</select>
</div>
</div>
<div class="col-md-1 col-xs-12 margen-5">
<div class="col-md-12"><label class="control-label text-left">{% trans %}Personas total{% endtrans %}</label></div>
<div class="col-md-12"><input type="text" class="form-control" name="reservation[pax]" id="reservation_pax" value="{{ reserva.pax }}"></div>
</div>
<input type="hidden" class="form-control" name="reservation[priority]" id="reservation_priority" value="{{ reserva.priority }}">
<div class="col-md-2 col-xs-12 margen-5">
<div class="col-md-12"><label class="control-label text-left">{% trans %}Deposit{% endtrans %}</label></div>
<div class="col-md-12"><input type="text" class="form-control" name="reservation[deposit]" id="reservation_deposit" value="{{ reserva.deposit }}"></div>
</div>
<div class="col-md-12 col-xs-12 margen-5">
<br>
</div>
<div class="col-md-10 col-xs-12 margen-5">
<div class="col-md-12"><label class="control-label text-left">{% trans %}Description{% endtrans %} - Briefing</label></div>
<div class="col-md-12">
<textarea id="reservation_description" name="reservation[description]" class="form-control summernote" rows="7">{{ reserva.description }}</textarea>
{#<input type="text" class="form-control" name="reservation[deposit]" id="reservation_deposit" value="{{ reserva.deposit }}">#}
</div>
</div>
<input type="hidden" class="form-control" name="reservation[contract]" id="reservation_contract" value="{{ reserva.contract }}">
<div class="col-md-12 col-xs-12" >
<div class="col-md-3 col-xs-12" >
</div>
<div class="col-md-1 col-xs-12" style="margin-left: -50px; padding-top: 5px">
</div>
<div class="col-md-1 col-xs-12" ></div>
<div class="col-md-3 col-xs-12" >
</div>
<div class="col-md-1 col-xs-12" style="margin-left: -20px; padding-top: 5px">
</div>
</div>
<div class="col-md-12 col-xs-12" >
<div class="col-md-4 col-xs-12" >
<div class="col-md-12 col-xs-12" >
<div class="col-md-4 col-xs-12" >
</div>
<div class="col-md-1 col-xs-12" >
</div>
</div>
</div>
<div class="col-md-8 col-xs-12" style="padding-top: 0px; padding-left: 15px;padding-right: 15px">
</div>
<div class="col-md-1 col-xs-12" style="padding-top: 0px; padding-left: 15px;padding-right: 15px"></div>
<div class="col-md-7 col-xs-12" style="padding-top: 0px; padding-left: 15px;padding-right: 15px">
</div>
</div>
</div>
<div class="col-md-12 col-xs-12">
<div class="col-md-9 col-xs-12"></div>
<div class="col-md-3 col-xs-12">
<h6>({% trans %}Created by Agent{% endtrans %}: {{ createdBy }})</h6>
</div>
</div>
<div class="col-md-4 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
<div class="col-md-4 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
<div class="form-group form-group-material">
<div class="input-group teal">
<span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>
<button type="submit" id="reservation_description_save" name="reservation[save]" class="btn bg-green-600 btn-block">{% trans %}Save{% endtrans %}</button>
</div>
</div>
</div>
<div class="col-md-4 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
</form>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<br><div class="col-md-12 col-xs-2" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div><br>
<div class="col-md-12 col-xs-12" align="center">
<strong><h3>{% trans %}RESERVA DE SALAS{% endtrans %}</h3></strong>
</div>
<div class="col-md-12 col-xs-12" ><strong class="text-info">
<legend class="border-teal-800">{% trans %}Salas{% endtrans %}</legend></strong>
</div>
<form name="mds_greenpatiobundle_revervation_form2" method="post" action="/reservations-greenpatio/createsimplelounge/{{ id }}" class="form-horizontal" role="form" autocomplete="off">
<div class="col-md-2 col-xs-12">
<div class="col-md-12"><label class="control-label">{% trans %}Salas Precargadas{% endtrans %} *</label></div>
<div class="col-md-12">
<select id="reservation_sala_salasPrecargadas" name="reservation_sala[salaPrecargadas]" class="form-control" required="required">
<option value="">{% trans %}Seleccione una sala{% endtrans %}</option>
{% for loungePre in loungesPre %}
<option value="{{ loungePre.id }}">{{ loungePre.name|capitalize }} </option>
{% endfor %}
</select>
</div>
</div>
<div class="col-md-1 col-xs-12 margen-5">
<label class="control-label">{% trans %}Date{% endtrans %}: *</label>
<input type="date" id="reservation_sala_date" name="reservation_sala[dateStart]" value="" class="form-control" required="required">
</div>
<input type="hidden" class="form-control" name="reservation_sala[servicePrice]" id="reservation_sala_price" value="0">
<div class="col-md-1 col-xs-12 margen-5">
<div class="col-md-12"><label class="control-label">{% trans %}Pax{% endtrans %}</label></div>
<div class="col-md-12"><input type="text" class="form-control" name="reservation_sala[pax]" id="reservation_sala_pax" value=""></div>
</div>
<div class="col-md-1 col-xs-12 margen-5">
<div class="col-md-12"><label class="control-label">{% trans %}Inicio{% endtrans %} *</label></div>
<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>
</div>
<div class="col-md-1 col-xs-12 margen-5">
<div class="col-md-12"><label class="control-label">{% trans %}Fin{% endtrans %} *</label></div>
<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>
</div>
<div class="col-md-1 col-xs-12 margen-5">
<div class="col-md-12"><label class="control-label">{% trans %}Precio{% endtrans %}</label></div>
<div class="col-md-12"><input type="number" step="any" class="form-control" name="reservation_sala[servicePrice]" id="reservation_sala_servicePrice" value=""></div>
</div>
<div class="col-md-1 col-xs-12 margen-5">
<div class="col-md-12"><label class="control-label">{% trans %}# Opción{% endtrans %}</label></div>
<div class="col-md-12"><input type="number" class="form-control" name="reservation_sala[idQuote]" id="reservation_sala_idQuote" value=""></div>
</div>
<div class="col-md-10 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
<div class="col-md-2 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
<div class="form-group form-group-material">
<div class="input-group teal">
<span class="input-group-addon bg-info-800"><i class="icon-plus22"></i></span>
<button type="submit" id="reservation_sala_save" name="reservation_sala[save]" class="btn bg-info-600 btn-block">{% trans %}Add{% endtrans %}</button>
</div>
</div>
</div>
</form>
<div class="col-md-12 col-xs-12" ><strong class="text-info">
<legend class="border-teal-800">{% trans %}Montaje y Desmontaje (Cargar día a día){% endtrans %}</legend></strong>
</div>
<form name="mds_greenpatiobundle_revervation_form3" method="post" action="/reservations-greenpatio/createsimpleloungemondes/{{ id }}" class="form-horizontal" role="form" autocomplete="off">
<div class="col-md-2 col-xs-12" >
<div class="col-md-12"><label class="control-label">{% trans %}Salas{% endtrans %} *</label></div>
<div class="col-md-12">
<select id="reservation_sala_mondes" name="reservation_sala_mondes[idLounge]" class="form-control" required="required">
<option value="">{% trans %}Seleccione una sala{% endtrans %}</option>
{% for loungesName in loungesNames %}
<option value="{{ loungesName.id }}">{{ loungesName.name|capitalize }} </option>
{% endfor %}
</select>
</div>
</div>
<div class="col-md-1 col-xs-12" >
<label class="control-label">{% trans %}Date{% endtrans %}: *</label>
<input type="date" id="reservation_sala_mondes_date" name="reservation_sala_mondes[dateStart]" value="" class="form-control" required="required">
</div>
<div class="col-md-2 col-xs-12" >
<div class="col-md-12"><label class="control-label">{% trans %}Montaje / Desmontaje{% endtrans %} *</label></div>
<div class="col-md-12">
<select id="reservation_sala_mondes_type" name="reservation_sala_mondes[type]" class="form-control" required="required">
<option value="">{% trans %}Select a type{% endtrans %}</option>
<option value="Montaje">MONTAJE</option>
<option value="Desmontaje">DESMONTAJE</option>
</select>
</div>
</div>
<input type="hidden" class="form-control" name="reservation_sala_mondes[servicePrice]" id="reservation_sala_mondes_price" value="0">
<div class="col-md-1 col-xs-12" >
<div class="col-md-12"><label class="control-label">{% trans %}Inicio{% endtrans %} *</label></div>
<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>
</div>
<div class="col-md-1 col-xs-12" >
<div class="col-md-12"><label class="control-label">{% trans %}Fin{% endtrans %} *</label></div>
<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>
</div>
<div class="col-md-1 col-xs-12 margen-5">
<div class="col-md-12"><label class="control-label">{% trans %}Precio{% endtrans %}</label></div>
<div class="col-md-12"><input type="number" step="any" class="form-control" name="reservation_sala_mondes[servicePrice]" id="reservation_sala_servicePrice" value=""></div>
</div>
<div class="col-md-1 col-xs-12 margen-5">
<div class="col-md-12"><label class="control-label">{% trans %}# Opción{% endtrans %}</label></div>
<div class="col-md-12"><input type="number" class="form-control" name="reservation_sala_mondes[idQuote]" id="reservation_sala_mondes_idQuote" value=""></div>
</div>
<div class="col-md-10 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
<div class="col-md-2 col-xs-12" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
<div class="form-group form-group-material">
<div class="input-group teal">
<span class="input-group-addon bg-info-800"><i class="icon-plus22"></i></span>
<button type="submit" id="reservation_sala_mondes_save" name="reservation_sala_mondes[save]" class="btn bg-info-600 btn-block">{% trans %}Add{% endtrans %}</button>
</div>
</div>
</div>
</form>
</div>
</div>
{% if numeroItems > 0 %}
<div id="btn_quotes" class="col-sm-12">
<div class="panel">
<div class="panel-body">
<div class="col-md-12 col-xs-12" align="center"><strong class="text-info">
<legend class="border-teal-800"><h3>{% trans %}COTIZADO{% endtrans %}</h3></legend></strong>
</div>
<div class="col-md-2"></div>
<div class="col-md-12"></div>
<form name="mds_greenpatiobundle_loungrid" method="post" action="/reservations-greenpatio/updateloungegrid" class="form-horizontal" role="form" autocomplete="off">
<input type="hidden" class="form-control" name="reservationId" id="reservationId" value="{{ id }}">
{% for keyRank, itemRankQuote in arrayLoungesByDay %}
<div class="col-md-12">
<h4>
<strong style="color: green;">Opción # {{ keyRank }}    </strong>
<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>
<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>
</h4>
</div>
{% for key, itemDay in itemRankQuote %}
<div class="col-md-12"><br></div>
<div class="col-md-1"><h4>{{ key|slice(6,2) }}/{{ key|slice(4,2) }}/{{ key|slice(0,4) }}</h4></div>
<div class="col-md-2" style="padding-left: 35px">
<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>
</div>
<div class="col-md-12">
<div class="col-md-2"><label class="control-label text-center">Fecha</label></div>
<div class="col-md-2"><label class="control-label text-center">Sala</label></div>
<div class="col-md-2"><label class="control-label text-center">Precio</label></div>
<div class="col-md-1"><label class="control-label text-center">Personas</label></div>
<div class="col-md-2"><label class="control-label text-center">Inicio</label></div>
<div class="col-md-2"><label class="control-label text-center">Fin</label></div>
<div class="col-md-1"><label class="control-label text-center">Borrar</label></div>
</div>
{% for item in itemDay %}
<div class="col-md-12 no-padding">
<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>
<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>
<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>
{% if item.type is null %}
<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>
{% else %}
<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>
{% endif %}
<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>
<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>
<div class="col-sm-1">
{% if item.id != 0 %}
<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>
{% else %}
<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>
{% endif %}
</div>
</div>
{% endfor %}
{% endfor %}
{% if not loop.last %} <div class="col-md-12"><br><hr><br></div> {% endif %}
{% endfor %}
<div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
<div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
<div class="form-group form-group-material">
<div class="input-group teal">
<span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>
<button type="submit" id="mds_greenpatiobundle_reservation_save" name="mds_greenpatiobundle_reservation[save]" class="btn bg-green-600 btn-block">Guardar Cotizaciones</button>
</div>
</div>
</div>
<div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
</form>
<form name="mds_greenpatiobundle_addquote" method="post" action="/reservations-greenpatio/duplicatequote" class="form-horizontal" role="form" autocomplete="off">
<input type="hidden" class="form-control" name="addquote[reservationId]" id="reservationId" value="{{ id }}">
<div class="col-md-12"></div>
<div class="col-md-12"><br><br><br><br></div>
<div class="col-md-12">
<div class="col-md-5"></div>
<div class="col-md-3">
<select id="reservation_sala_salasPrecargadas" name="addquote[salaPrecargadas]" class="form-control" required>
<option value="">{% trans %}Seleccione una sala{% endtrans %}</option>
{% for loungePre in loungesPre %}
<option value="{{ loungePre.id }}">{{ loungePre.name|capitalize }} </option>
{% endfor %}
</select>
</div>
<div class="col-md-1"><input type="number" class="form-control" step="any" name="addquote[salaPrice]" id="addquote_price" placeholder="Precio"></div>
<div class="col-md-1"><input type="number" class="form-control" step="any" name="addquote[idQuote]" id="addquote_idQuote" placeholder="# Opción"></div>
<div class="col-md-1 ml-5">
<div class="form-group form-group-material">
<div class="input-group teal">
<span class="input-group-addon bg-teal-800"><i class="icon-add"></i></span>
<button type="submit" id="mds_greenpatiobundle_reservation_addquote" name="mds_greenpatiobundle_reservation[save]" class="btn bg-green-600 btn-block">Duplicar Opción</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
{% endif %}
<div class="col-sm-12">
<div class="panel">
<div class="panel-body text-center">
<div class="col-sm-12 ">
<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>
<div class="col-sm-4"><b class="text-success">{% trans %}IVA{% endtrans %} (Salas)</b><br><b> {{ totales_global_iva|number_format(2, '.', ',') }} €</b></div>
<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>
</div>
</div>
</div>
</div>
{# Con <div id="btn_srv" usamos el _fragment para el salto al insertar un servicio #}
<div id="btn_srv" class="col-sm-12">
<div class="panel">
<div class="panel-body text-center">
<div class="col-sm-12 ">
<div class="col-sm-12 no-padding">
<div class="panel">
<div class="panel-heading bg-success-800">
<h6 class="panel-title"><strong>{% trans %}Add Services to Reservation{% endtrans %}</strong><a class="heading-elements-toggle"><i class="icon-more"></i></a></h6>
</div>
<div class="panel-body">
<div class="col-sm-12 no-padding">
<div class="col-xs-4 margen-10">
<div class="col-xs-4 margen-10">
<form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/3/{{ id }}">
<input type="image" src="/assets/images/icon/avs_verde.png" alt="Login" href="/" height="60" width="80" title="{% trans %}Audiovisuales{% endtrans %}">
</form>
</div>
<div class="col-xs-4 margen-10">
<form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/17/{{ id }}">
<input type="image" src="/assets/images/icon/cop_verde.png" alt="Login" href="/" height="60" width="80" title="{% trans %}Personal de Seguridad{% endtrans %}">
</form>
</div>
<div class="col-xs-4 margen-10">
<form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/18/{{ id }}">
<input type="image" src="/assets/images/icon/wifi_hoja.png" alt="Login" href="/" height="60" width="80" title="{% trans %}WiFi{% endtrans %}">
</form>
</div>
</div>
<div class="col-xs-4 margen-10">
<div class="col-xs-4 margen-10">
<form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/15/{{ id }}">
<input type="image" src="/assets/images/icon/asistant_verde.png" alt="Login" href="/" height="60" width="80" title="{% trans %}Proyect Manager ( Asistencia ){% endtrans %}">
</form>
</div>
<div class="col-xs-4 margen-10">
<form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/11/{{ id }}">
<input type="image" src="/assets/images/icon/fork_green.png" alt="Login" href="/" height="60" width="80" title="{% trans %}F&B ( Catering ){% endtrans %}">
</form>
</div>
<div class="col-xs-4 margen-10">
<form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/21/{{ id }}">
<input type="image" src="/assets/images/icon/clean_verde.png" alt="Login" href="/" height="60" width="80" title="{% trans %}Limpieza & Mantenimiento{% endtrans %}">
</form>
</div>
</div>
<div class="col-xs-4 margen-10">
<div class="col-xs-4 margen-10">
<form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/20/{{ id }}">
<input type="image" src="/assets/images/icon/parking_verde.jpg" alt="Login" href="/" height="60" width="80" title="{% trans %}Parking{% endtrans %}">
</form>
</div>
<div class="col-xs-4 margen-10">
<form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/19/{{ id }}">
<input type="image" src="/assets/images/icon/silla_verde.png" alt="Login" href="/" height="60" width="80" title="{% trans %}Mobiliario & Decoracion{% endtrans %}">
</form>
</div>
<div class="col-xs-4 margen-10">
<form name="boton_avexpress" method="" action="/reservations-greenpatio/reservations/white/services/add/12/{{ id }}">
<input type="image" src="/assets/images/icon/otros_verde.png" alt="Login" href="/" height="60" width="80" title="{% trans %}Otros{% endtrans %}">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
{% if services is not empty %}
<form name="mds_greenpatiobundle_servicegrid" method="post" action="/reservations-greenpatio/updateservicegrid/{{ id }}" class="form-horizontal" role="form" autocomplete="off">
<div class="col-sm-12 margen-15" style="padding-left: 0px; padding-right: 0px">
<div class="panel">
<div class="panel-body">
<div class="col-md-12 col-xs-12" ><strong class="text-info text-left">
<legend class="border-teal-800">{% trans %}Services{% endtrans %}</legend></strong>
</div>
</div>
{% for service in services %}
{% set loopIndex = loop.index %}
{% if service.currency is empty %}
{% set currency = 'Euro' %}
{% else %}
{% set currency = service.currency %}
{% endif %}
{% set contcolor = service.contcolor %}
{% set error_commission = '' %}
{% if service.commission is empty or service.commission =='0' %}
{% set error_commission = 'has-error' %}
{% endif %}
{% set error_over = '' %}
{% if service.over is empty or service.over =='0' %}
{% set error_over = 'has-error' %}
{% endif %}
{% set error_iva = '' %}
{% if service.iva is empty or service.iva =='0' %}
{% set error_iva = 'has-error' %}
{% endif %}
{% if service.opCommission is empty %}
{% set option_opcommission = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
{% else %}
{% if service.opCommission == '0' %}
{% set option_opcommission = '<option value="0" selected="selected">-</option><option value="1">+</option>' %}
{% elseif service.opCommission == '1' %}
{% set option_opcommission = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
{% endif %}
{% endif %}
{% if service.opOver is empty %}
{% set option_opover = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
{% else %}
{% if service.opOver == '0' %}
{% set option_opover = '<option value="0" selected="selected">-</option><option value="1">+</option>' %}
{% elseif service.opOver == '1' %}
{% set option_opover = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
{% endif %}
{% endif %}
{% if service.opIva is empty %}
{% set option_opiva = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
{% else %}
{% if service.opIva == '0' %}
{% set option_opiva = '<option value="0" selected="selected">-</option><option value="1">+</option>' %}
{% elseif service.opIva == '1' %}
{% set option_opiva = '<option value="1" selected="selected">+</option><option value="0">-</option>' %}
{% endif %}
{% endif %}
{% set fondo_color = 'white' %}
{% if service.serviceId == '0' and service.serviceCatId != "16"%}
{% set message_presentation = 'This service has no presentation because it has not been added to the supplier as a service'|trans %}
{% set name_presentation = 'Service without presentation'|trans %}
{% set boton_presentation = 'Save Service in Supplier'|trans %}
{% set no_presentacion_tip = '<span data-popup="tooltip-custom" title="' ~ message_presentation ~'"><span class="label text-danger-800"><b>' ~ name_presentation ~':</b></span></span>' %}
{% set no_presentacion = '
<div class="panel-footer">
<span class="label text-danger-800"><b>' ~ name_presentation ~':</b></span>
<span class="label text-grey-800"><i class"text-grey">' ~ message_presentation ~'.</i> |</span>
<a class="text-teal boton_services_supplier_proposal" href="/supplier/services/fromproposal/' ~ service.serviceCatName|lower ~ '/add/' ~ service.id ~ '">' ~ boton_presentation ~ '</a></i>
</div>' %}
{% else %}
{% set message_presentation = '' %}
{% set name_presentation = '' %}
{% set no_presentacion_tip = '' %}
{% set no_presentacion = '' %}
{% endif %}
{% if service.serviceCatId =="1" %}
{% set name_days_night = "Nights" %}
{% else %}
{% set name_days_night = "Days" %}
{% endif %}
{% if service.serviceCatId =="1" %}
{% set name_days_night = "Nights" %}
{% else %}
{% set name_days_night = "Days" %}
{% endif %}
{% set additional = '' %}
<div id="{{ service.id }}" class="panel panel-flat border-left-lg border-left-{{ contcolor }} {{ fondo_color }} panel-collapsed">
<div class="panel-heading">
<div class="panel-title text-left">
<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>
{% autoescape %}{{ additional|raw }}{% endautoescape %}
</div>
<div class="heading-elements">
<ul class="icons-list">
<li><a data-action="collapse"></a></li>
</ul>
</div>
</div>
{% if not (service.serviceCatId == 15) %}
<div class="panel-body">
<div class="form-group">
<div class="col-sm-11">
<div class="col-sm-12">
{% if not (service.serviceCatId == 15) %}
<div class="col-sm-3" style="padding-bottom: 10px; padding-left: 0px; ">
<label class="control-label" for="services_opcommission">{% trans %}Supplier{% endtrans %}:</label>
<div class="form-group form-group-material">
<select id="services_supplier" name="services[{{ service.id }}][supplier]" class="form-control" style="padding:0px;text-align-last: center;">
<option value="0">{% trans %}Select a Supplier{% endtrans %}</option>
{% for supplier in listSupplier %}
{% if supplier.id == service.supplierId %}
<option value="{{ supplier.id }}" selected="selected">{{ supplier.company }}</option>
{% else %}
<option value="{{ supplier.id }}">{{ supplier.company }}</option>
{% endif %}
{% endfor %}
</select>
</div>
</div>
{% endif %}
{% if service.serviceCatId == 15 %}
<div class="col-sm-2" style="padding-bottom: 10px; padding-left: 0px; ">
<label class="control-label" for="services_agent">{% trans %}Agente{% endtrans %}:</label>
<div class="form-group form-group-material">
<select id="services_agent" name="services[{{ service.id }}][agent]" class="form-control" style="padding:0px;text-align-last: center;">
<option value="0">{% trans %}Selecciona un agente{% endtrans %}</option>
{% for user in allUsersActive %}
{% if (service.assistantId is not empty) and (user.id == service.assistantId or ((user.id * (-1)) == service.assistantId)) %}
{% if user.role == 'Freelance' %}
<option value="{{ user.team }}" selected="selected">{{ user.name }} {{ user.lastname }}</option>
{% else %}
<option value="{{ user.id }}" selected="selected">{{ user.name }} {{ user.lastname }}</option>
{% endif %}
{% else %}
{# FreeLance no registrado en el sistema #}
{% if user.role == 'Freelance' %}
<option value="{{ user.team }}">{{ user.name }} {{ user.lastname }}</option>
{% else %}
<option value="{{ user.id }}">{{ user.name }} {{ user.lastname }}</option>
{% endif %}
{% endif %}
{% endfor %}
</select>
</div>
</div>
{% endif %}
</div>
<div class="col-sm-3">
<label class="control-label" for="services_name">{% trans %}Name{% endtrans %}: </label>
<input type="text" id="services_name_{{ service.id }}" name="services[{{ service.id }}][name]" value="{{ service.name }}" class="form-control">
</div>
<div class="col-md-2 col-xs-12">
<label class="control-label" for="services_price">
<span data-popup="tooltip-custom" title="{% trans %}Price with VAT or without VAT{% endtrans %}">
<b class="text-{{ contcolor }}">{% trans %}Price{% endtrans %}</b>:
</span>
</label>
<input type="text" id="services_price_{{ service.id }}" name="services[{{ service.id }}][price]" value="{{ service.price }}" class="form-control bg-{{ contcolor }}-300">
</div>
{% if not (service.serviceCatId == 15) %}
<div class="col-md-1 col-xs-6">
<label class="control-label" for="services_units">{% trans %}Units{% endtrans %}: </label>
<input type="number" id="services_units_{{ service.id }}" name="services[{{ service.id }}][units]" value="{{ service.units }}" class="form-control">
</div>
<div class="col-md-1 col-xs-12">
<label class="control-label" for="services_pax">{% trans %}Pax{% endtrans %}: </label>
<input type="number" id="services_pax_{{ service.id }}" name="services[{{ service.id }}][pax]" value="{{ service.pax }}" class="form-control">
</div>
{% endif %}
<div class="col-md-5 col-xs-12">
{% autoescape %}
<div class="col-md-2 col-xs-6 no-padding-right">
<label class="control-label" for="services_opcommission" >-/+: </label>
<div class="form-group form-group-material">
<select id="services_opcommission_{{ service.id }}" name="services[{{ service.id }}][opCommission]" class="form-control" style="padding:0px;text-align-last: center;">
{{ option_opcommission|raw }}
</select>
</div>
</div>
<div class="col-md-2 col-xs-6 no-padding-left">
<label class="control-label" for="services_commission">{% trans %}Commission{% endtrans %}: </label>
<div class="form-group form-group-material {{ error_commission }}">
<input type="text" id="services_commission_{{ service.id }}" name="services[{{ service.id }}][commission]" value="{{ service.commission }}" class="form-control">
</div>
</div>
<div class="col-md-2 col-xs-6 no-padding-right">
<label class="control-label" for="services_opover">-/+: </label>
<div class="form-group form-group-material">
<select id="services_opover_{{ service.id }}" name="services[{{ service.id }}][opOver]" class="form-control" style="padding:0px;text-align-last: center;">
{{ option_opover|raw }}
</select>
</div>
</div>
<div class="col-md-2 col-xs-6 no-padding-left">
<label class="control-label" for="services_over">{% trans %}Over{% endtrans %}: </label>
<div class="form-group form-group-material {{ error_over }}">
<input type="text" id="services_over_{{ service.id }}" name="services[{{ service.id }}][over]" value="{{ service.over }}" class="form-control">
</div>
</div>
<div class="col-md-2 col-xs-6 no-padding-right">
<label class="control-label" for="services_opiva">-/+: </label>
<div class="form-group form-group-material">
<select id="services_opiva_{{ service.id }}" name="services[{{ service.id }}][opIva]" class="form-control" style="padding:0px;text-align-last: center;">
{{ option_opiva|raw }}
</select>
</div>
</div>
{% if service.iva is not empty %}
{% set ivaService = service.iva %}
{% else %}
{% set ivaService = 0 %}
{% endif %}
{% if not (service.serviceCatId == 15) %}
<div class="col-md-2 col-xs-6 no-padding-left">
<label class="control-label" for="services_iva">{% trans %}Iva{% endtrans %}: </label>
<div class="form-group form-group-material {{ error_iva }}">
<input type="text" id="services_iva_{{ service.id }}" name="services[{{ service.id }}][iva]" value="{{ ivaService }}" class="form-control">
</div>
</div>
{% endif %}
{% endautoescape %}
</div>
<div class="col-sm-9 margen-10">
<div class="col-sm-2 col-xs-6">
<label class="control-label" for="services_currency">{% trans %}Currency{% endtrans %}: </label>
<input type="text" id="services_currency_{{ service.id }}" name="services[{{ service.id }}][currency]" value="{{ currency }}" class="form-control">
</div>
<div class="col-sm-2 no-padding">
<label class="control-label" for="services_hour"><i class="icon-watch2"></i> {% trans %}Star{% endtrans %}: </label>
<input type="time" id="services_start_{{ service.id }}" name="services[{{ service.id }}][start]" value="{{ service.dateInAt|date('H:i') }}" class="form-control">
</div>
<div class="col-sm-3">
<label class="control-label" for="services_dateInAt">{% trans %}Date In{% endtrans %}: </label>
<input type="date" id="services_dateInAt_{{ service.id }}" name="services[{{ service.id }}][dateInAt]" value="{{ service.dateInAt|date('Y-m-d') }}" class="form-control">
</div>
<div class="col-sm-3">
<label class="control-label" for="services_dateOutAt">{% trans %}Date Out{% endtrans %}: </label>
<input type="date" id="services_dateOutAt_{{ service.id }}" name="services[{{ service.id }}][dateOutAt]" value="{{ service.dateOutAt|date('Y-m-d') }}" class="form-control">
</div>
<div class="col-sm-2 no-padding">
<label class="control-label" for="services_hour"><i class="icon-watch2"></i> {% trans %}End{% endtrans %}: </label>
<input type="time" id="services_hour_{{ service.id }}" name="services[{{ service.id }}][end]" value="{{ service.dateOutAt|date('H:i') }}" class="form-control">
</div>
</div>
<div class="col-md-3" style="padding-top: 35px;">
<div class="checkbox-switchery text-left switchery-sm">
<label >
{% if service.toinvoice is empty %}
<input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="0"/>
{% else %}
{% if service.toinvoice %}
<input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="1" checked/>
{% else %}
<input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="0"/>
{% endif %}
{% endif %}
{% trans %}Aparece en factura{% endtrans %}
</label>
</div>
</div>
</div>
<div class="col-sm-1 margen-5">
<div class="col-md-12 col-xs-12">
</div>
<div class="col-md-12 col-xs-12" style="padding-top: 15px; padding-left: 0px">
<div class="checkbox checkbox-switchery switchery-lg switchery-double text-center" title="Eliminar este item">
{#<input type="checkbox" class="switchery-info boolDelete" id="services_delete_{{ service.id }}" name="services_{{ service.id }}[boolDelete]" value="1">#}
<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>
</div>
</div>
</div>
</div>
</div>
{% else %}
{# ---------------- ASISTENCIA ---------------- #}
<div class="panel-body">
<div class="form-group">
<div class="col-sm-11">
<div class="col-sm-2" style="padding-bottom: 10px; padding-left: 0px; ">
<label class="control-label" for="services_agent">{% trans %}Agente{% endtrans %}:</label>
<div class="form-group form-group-material">
<select id="services_agent" name="services[{{ service.id }}][agent]" class="form-control" style="padding:0px;text-align-last: center;">
<option value="0">{% trans %}Selecciona un agente{% endtrans %}</option>
{% for user in allUsersActive %}
{% if (service.assistantId is not empty) and (user.id == service.assistantId or ((user.id * (-1)) == service.assistantId)) %}
{% if user.role == 'Freelance' %}
<option value="{{ user.team }}" selected="selected">{{ user.name }} {{ user.lastname }}</option>
{% else %}
<option value="{{ user.id }}" selected="selected">{{ user.name }} {{ user.lastname }}</option>
{% endif %}
{% else %}
{# FreeLance no registrado en el sistema #}
{% if user.role == 'Freelance' %}
<option value="{{ user.team }}">{{ user.name }} {{ user.lastname }}</option>
{% else %}
<option value="{{ user.id }}">{{ user.name }} {{ user.lastname }}</option>
{% endif %}
{% endif %}
{% endfor %}
</select>
</div>
</div>
<div class="col-sm-2">
<label class="control-label" for="services_name">{% trans %}Name{% endtrans %}: </label>
<input type="text" id="services_name_{{ service.id }}" name="services[{{ service.id }}][name]" value="{{ service.name }}" class="form-control">
</div>
<div class="col-md-2 col-xs-12">
<label class="control-label" for="services_price">
<span data-popup="tooltip-custom" title="{% trans %}Price with VAT or without VAT{% endtrans %}">
<b class="text-{{ contcolor }}">{% trans %}Price{% endtrans %}</b>:
</span>
</label>
<input type="text" id="services_price_{{ service.id }}" name="services[{{ service.id }}][price]" value="{{ service.price }}" class="form-control bg-{{ contcolor }}-300">
</div>
<input type="hidden" id="services_supplier" name="services[{{ service.id }}][supplier]" value="0" class="form-control">
<input type="hidden" id="services_opiva_{{ service.id }}" name="services[{{ service.id }}][opIva]" value="1" class="form-control">
<input type="hidden" id="services_iva_{{ service.id }}" name="services[{{ service.id }}][iva]" value="21" class="form-control">
<input type="hidden" id="services_currency_{{ service.id }}" name="services[{{ service.id }}][currency]" value="{{ currency }}" class="form-control">
<input type="hidden" id="services_units_{{ service.id }}" name="services[{{ service.id }}][units]" value="{{ service.units }}" class="form-control">
<input type="hidden" id="services_pax_{{ service.id }}" name="services[{{ service.id }}][pax]" value="{{ service.pax }}" class="form-control">
<br>
<div class="col-md-5 col-xs-12">
{% autoescape %}
<div class="col-md-2 col-xs-6 no-padding-right">
<label class="control-label" for="services_opcommission" >-/+: </label>
<div class="form-group form-group-material">
<select id="services_opcommission_{{ service.id }}" name="services[{{ service.id }}][opCommission]" class="form-control" style="padding:0px;text-align-last: center;">
{{ option_opcommission|raw }}
</select>
</div>
</div>
<div class="col-md-2 col-xs-6 no-padding-left">
<label class="control-label" for="services_commission">{% trans %}Commission{% endtrans %}: </label>
<div class="form-group form-group-material {{ error_commission }}">
<input type="text" id="services_commission_{{ service.id }}" name="services[{{ service.id }}][commission]" value="{{ service.commission }}" class="form-control">
</div>
</div>
<div class="col-md-2 col-xs-6 no-padding-right">
<label class="control-label" for="services_opover">-/+: </label>
<div class="form-group form-group-material">
<select id="services_opover_{{ service.id }}" name="services[{{ service.id }}][opOver]" class="form-control" style="padding:0px;text-align-last: center;">
{{ option_opover|raw }}
</select>
</div>
</div>
<div class="col-md-2 col-xs-6 no-padding-left">
<label class="control-label" for="services_over">{% trans %}Over{% endtrans %}: </label>
<div class="form-group form-group-material {{ error_over }}">
<input type="text" id="services_over_{{ service.id }}" name="services[{{ service.id }}][over]" value="{{ service.over }}" class="form-control">
</div>
</div>
{% if not (service.serviceCatId == 15) %}
<div class="col-md-2 col-xs-6 no-padding-right">
<label class="control-label" for="services_opiva">-/+: </label>
<div class="form-group form-group-material">
<select id="services_opiva_{{ service.id }}" name="services[{{ service.id }}][opIva]" class="form-control" style="padding:0px;text-align-last: center;">
{{ option_opiva|raw }}
</select>
</div>
</div>
{% endif %}
{% if service.iva is not empty %}
{% set ivaService = service.iva %}
{% else %}
{% set ivaService = 0 %}
{% endif %}
{% if not (service.serviceCatId == 15) %}
<div class="col-md-2 col-xs-6 no-padding-left">
<label class="control-label" for="services_iva">{% trans %}Iva{% endtrans %}: </label>
<div class="form-group form-group-material {{ error_iva }}">
<input type="text" id="services_iva_{{ service.id }}" name="services[{{ service.id }}][iva]" value="{{ ivaService }}" class="form-control">
</div>
</div>
{% endif %}
{% endautoescape %}
</div>
<div class="col-sm-8 margen-10">
<div class="col-sm-2 no-padding">
<label class="control-label" for="services_hour"><i class="icon-watch2"></i> {% trans %}Star{% endtrans %}: </label>
<input type="time" id="services_start_{{ service.id }}" name="services[{{ service.id }}][start]" value="{{ service.dateInAt|date('H:i') }}" class="form-control">
</div>
<div class="col-sm-4">
<label class="control-label" for="services_dateInAt">{% trans %}Date In{% endtrans %}: </label>
<input type="date" id="services_dateInAt_{{ service.id }}" name="services[{{ service.id }}][dateInAt]" value="{{ service.dateInAt|date('Y-m-d') }}" class="form-control">
</div>
<div class="col-sm-4">
<label class="control-label" for="services_dateOutAt">{% trans %}Date Out{% endtrans %}: </label>
<input type="date" id="services_dateOutAt_{{ service.id }}" name="services[{{ service.id }}][dateOutAt]" value="{{ service.dateOutAt|date('Y-m-d') }}" class="form-control">
</div>
<div class="col-sm-2 no-padding">
<label class="control-label" for="services_hour"><i class="icon-watch2"></i> {% trans %}End{% endtrans %}: </label>
<input type="time" id="services_hour_{{ service.id }}" name="services[{{ service.id }}][end]" value="{{ service.dateOutAt|date('H:i') }}" class="form-control">
</div>
</div>
<div class="col-md-4" style="padding-top: 35px;">
<div class="checkbox-switchery text-left switchery-sm">
<label >
{% if service.toinvoice is empty %}
<input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="0"/>
{% else %}
{% if service.toinvoice %}
<input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="1" checked/>
{% else %}
<input type="checkbox" id="service_toinvoice_{{ service.id }}" name="services[{{ service.id }}][toinvoice]" class="switchery-info" value="0"/>
{% endif %}
{% endif %}
{% trans %}Aparece en factura{% endtrans %}
</label>
</div>
</div>
</div>
<div class="col-sm-1 margen-5">
<div class="col-md-12 col-xs-12">
</div>
<div class="col-md-12 col-xs-12" style="padding-top: 15px; padding-left: 0px">
<div class="checkbox checkbox-switchery switchery-lg switchery-double text-center" title="Eliminar este item">
<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>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
<div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
<div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px">
<div class="form-group form-group-material">
<div class="input-group teal">
<span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>
<button type="submit" id="mds_greenpatiobundle_servicegrid_save" name="mds_greenpatiobundle_servicegrid[save]" class="btn bg-green-600 btn-block">Guardar Servicios</button>
</div>
</div>
</div>
<div class="col-md-4 margen-20" style="padding-top: 5px; padding-left: 15px;padding-right: 15px"></div>
</form>
{% endif %}
</div>
</div>
</div>
</div>
<div class="col-sm-12">
<div class="panel">
<div class="panel-body text-center">
<div class="col-sm-12 ">
<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>
<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>
<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>
</div>
</div>
</div>
</div>
<div class="col-sm-12">
<div class="panel">
<div class="panel-body text-center">
<div class="col-sm-12 ">
<div class="col-sm-6">
<b class="text-success">{% trans %}Beneficio{% endtrans %}</b>
<br>
<b> {{ benefit|number_format(2, '.', ',') }} €</b>
</div>
<div class="col-sm-6"><b class="text-success">{% trans %}Beneficio (%){% endtrans %}</b><br><b> {{ percBenefit|number_format(2, '.', ',') }} %</b></div>
<br><br><br>
<div class="col-sm-12"><b class="text-success">{% trans %}Resumen de Beneficio{% endtrans %}</b>
{% for lounge in payedLounges %}
<br><b>{{ lounge.loungeName }} + {{ lounge.servicePrice|number_format(2, '.', ',') }} €</b>
{% endfor %}
{% for service in payedServices %}
<br><b>{{ service.name }} + {{ service.price|number_format(2, '.', ',') }} €</b>
{% endfor %}
{% for service in unPayedServices %}
{#Se verifica el check de toinvoice por si el servicio se facturara a futuro#}
{% if service.toinvoice %}
<br><b>{{ service.name }} + {{ service.price|number_format(2, '.', ',') }} €</b>
{% else %}
<br><b>{{ service.name }} - {{ service.price|number_format(2, '.', ',') }} €</b>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-12">
<div class="panel">
<div class="panel-body">
<div class="col-md-12 col-xs-12" ><strong class="text-info">
<legend class="border-teal-800">{% trans %}FACTURACION{% endtrans %}</legend></strong>
</div>
<div class="col-sm-12 text-center">
<div class="col-sm-12">
<div class="col-sm-1"><b>No.</b></div>
<div class="col-sm-2"><b>Fecha de Facturación</b></div>
<div class="col-sm-3"><b>Cliente</b></div>
<div class="col-sm-1"><b>Neto</b></div>
<div class="col-sm-1"><b>Iva</b></div>
<div class="col-sm-1"><b>Total</b></div>
<div class="col-sm-2"><b>Balance Restante</b></div>
<div class="col-sm-1"><b>Acciones</b></div>
</div>
<div class="col-sm-12">
<hr>
</div>
{% set totalBalance = 0 %}
{% for factura in facturas %}
{% set totalBalance = totalBalance + factura.balance %}
<div class="col-sm-12 margen-10">
<div class="col-sm-1">
{% if factura.type == 'Invoice' %}
{% if factura.clientType == 'Supplier' %}
<p style="color:orange">{% if invoicedLine == 'CVR' %}C{% endif %}{{ factura.id }}</p>
{% else %}
{% if invoicedLine == 'CVR' %}C{% endif %}{{ factura.id }}
{% endif %}
{% else %}
{% if factura.type == 'Invoice Deposit' %}
{#Factura de deposito#}
<p style="color:green">{{ factura.id }}</p>
{% else %}
{#Factura rectificativa#}
<p style="color:red"> {% if invoicedLine == 'CVR' %}RC{{ factura.id }} (C{{ factura.invoiceToRec }}){% else %}R{{ factura.id }} ({{ factura.invoiceToRec }}){% endif %}</p>
{% endif %}
{% endif %}
</div>
<div class="col-sm-2">
{% if factura.type == 'Invoice' %}
{% if factura.clientType == 'Supplier' %}
<p style="color:orange">{{ factura.dateAt|date("d/m/Y") }}</p>
{% else %}
{{ factura.dateAt|date("d/m/Y") }}
{% endif %}
{% else %}
{% if factura.type == 'Invoice Deposit' %}
{#Factura de deposito#}
<p style="color:green">{{ factura.dateAt|date("d/m/Y") }}</p>
{% else %}
{#Factura rectificativa#}
<p style="color:red">{{ factura.dateAt|date("d/m/Y") }}</p>
{% endif %}
{% endif %}
</div>
<div class="col-sm-3">
{% if factura.type == 'Invoice' %}
{% if factura.clientType == 'Supplier' %}
<p style="color:orange">{{ factura.clientName }}</p>
{% else %}
{{ factura.prefix }}
{% endif %}
{% else %}
{% if factura.type == 'Invoice Deposit' %}
{#Factura de deposito#}
<p style="color:green">{{ factura.prefix }}</p>
{% else %}
{#Factura rectificativa#}
<p style="color:red">{{ factura.prefix }}</p>
{% endif %}
{% endif %}
</div>
<div class="col-sm-1">
{% if factura.type == 'Invoice' %}
{% if factura.clientType == 'Supplier' %}
<p style="color:orange">{{ factura.totalNet|number_format(2, '.', ',') }}</p>
{% else %}
{{ factura.totalNet|number_format(2, '.', ',') }}
{% endif %}
{% else %}
{% if factura.type == 'Invoice Deposit' %}
{#Factura de deposito#}
<p style="color:green">{{ factura.totalNet|number_format(2, '.', ',') }}</p>
{% else %}
{% if factura.type == 'Invoice Deposit Rec' %}
{#Factura rectificativa de deposito#}
<p style="color:red">{{ factura.totalNet|number_format(2, '.', ',') }}</p>
{% else %}
{#Factura rectificativa#}
<p style="color:red">{{ factura.totalNet|number_format(2, '.', ',') }}</p>
{% endif %}
{% endif %}
{% endif %}
</div>
<div class="col-sm-1">
{% if factura.type == 'Invoice' %}
{% if factura.clientType == 'Supplier' %}
<p style="color:orange">{{ factura.vat|number_format(2, '.', ',') }}</p>
{% else %}
{{ factura.vat|number_format(2, '.', ',') }}
{% endif %}
{% else %}
{% if factura.type == 'Invoice Deposit' %}
{#Factura de deposito#}
<p style="color:green">{{ factura.vat|number_format(2, '.', ',') }}</p>
{% else %}
{% if factura.type == 'Invoice Deposit Rec' %}
{#Factura rectificativa de deposito#}
<p style="color:red">{{ factura.vat|number_format(2, '.', ',') }}</p>
{% else %}
{#Factura rectificativa#}
<p style="color:red">{{ factura.vat|number_format(2, '.', ',') }}</p>
{% endif %}
{% endif %}
{% endif %}
</div>
<div class="col-sm-1">
{% if factura.type == 'Invoice' %}
{% if factura.clientType == 'Supplier' %}
<p style="color:orange">{{ factura.total|number_format(2, '.', ',') }}</p>
{% else %}
{{ factura.total|number_format(2, '.', ',') }}
{% endif %}
{% else %}
{% if factura.type == 'Invoice Deposit' %}
{#Factura de deposito#}
<p style="color:green">{{ factura.total|number_format(2, '.', ',') }}</p>
{% else %}
{% if factura.type == 'Invoice Deposit Rec' %}
{#Factura rectificativa de deposito#}
<p style="color:red">{{ factura.total|number_format(2, '.', ',') }}</p>
{% else %}
{#Factura rectificativa#}
<p style="color:red">{{ factura.total|number_format(2, '.', ',') }}</p>
{% endif %}
{% endif %}
{% endif %}
</div>
<div class="col-sm-2">
{% if factura.type == 'Invoice' %}
{% if factura.clientType == 'Supplier' %}
<p style="color:orange">{{ factura.balance|number_format(2, '.', ',') }}</p>
{% else %}
{{ factura.balance|number_format(2, '.', ',') }}
{% endif %}
{% else %}
{% if factura.type == 'Invoice Deposit' %}
{#Factura de deposito#}
<p style="color:green">{{ factura.balance|number_format(2, '.', ',') }}</p>
{% else %}
{#Factura rectificativa#}
<p style="color:red">{{ factura.balance|number_format(2, '.', ',') }}</p>
{% endif %}
{% endif %}
</div>
<div class="col-sm-1">
{% if factura.type == 'Invoice' %}
{% if invoicedLine == 'CVR' %}
<a class="btn btn-success btn-xs" href="/reservations-greenpatio/cvr/reservations/invoice/viewnew/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
{% else %}
<a class="btn btn-success btn-xs" href="/reservations-greenpatio/reservations/invoice/viewnew/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
{% endif %}
{% else %}
{% if factura.type == 'Invoice Deposit' %}
{#Factura de deposito#}
{% if invoicedLine == 'CVR' %}
<a class="btn btn-success btn-xs" href="/reservations-greenpatio/cvr/reservations/newinvoicedeposit/viewinvoicedeposit/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
{% else %}
<a class="btn btn-success btn-xs" href="/reservations-greenpatio/reservations/newinvoicedeposit/viewinvoicedeposit/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
{% endif %}
{% else %}
{% if factura.type == 'Invoice Rec' %}
{#Factura rectificativa#}
{% if invoicedLine == 'CVR' %}
<a class="btn btn-success btn-xs" href="/reservations-greenpatio/cvr/reservations/invoice/viewrec/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
{% else %}
<a class="btn btn-success btn-xs" href="/reservations-greenpatio/reservations/invoice/viewrec/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
{% endif %}
{% else %}
{% if factura.type == 'Invoice Deposit Rec' %}
{#Factura de deposito rectificativa#}
{% if invoicedLine == 'CVR' %}
<a class="btn btn-success btn-xs" href="/reservations-greenpatio/cvr/reservations/newinvoicedeposit/viewinvoicedepositrec/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
{% else %}
<a class="btn btn-success btn-xs" href="/reservations-greenpatio/reservations/newinvoicedeposit/viewinvoicedepositrec/{{ factura.id }}">{% trans %}Go{% endtrans %}</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</div>
</div>
{% endfor %}
{% for item in paymentNotIvoiced %}
{% if item.invoiceId is empty %}
{% set totalBalance = totalBalance - item.Amount %}
{% else %}
{% set totalBalance = totalBalance - 0 %}
{% endif %}
<div class="col-sm-12 margen-10">
<div class="col-sm-1"></div>
<div class="col-sm-2">
<p style="color:blue">{{ item.DatePayAt|date("d/m/Y") }}</p>
</div>
<div class="col-sm-3">
<p style="color:blue">{{ item.WayToPay }}</p>
</div>
<div class="col-sm-1"></div>
<div class="col-sm-1"></div>
<div class="col-sm-1"></div>
<div class="col-sm-2">
{% if item.invoiceId is empty %}
<p style="color:blue">-{{ (item.Amount)|number_format(2, '.', ',') }}</p>
{% else %}
<p style="color:blue">-{{ (item.AmountTotal)|number_format(2, '.', ',') }}</p>
{% endif %}
</div>
<div class="col-sm-1"></div>
</div>
{% endfor %}
<div class="col-sm-12">
<hr>
</div>
<div class="col-sm-12">
<div class="col-sm-offset-6 col-sm-1"><b>Neto</b><br>{{ resultados.totalNeto|number_format(2, '.', ',') }}</div>
<div class="col-sm-1"><b>Iva</b><br>{{ resultados.vat|number_format(2, '.', ',') }}</div>
<div class="col-sm-1"><b>Total</b><br>{{ resultados.total|number_format(2, '.', ',') }}</div>
<div class="col-sm-2"><b>Balance Restante</b><br>{{ totalBalance|number_format(2, '.', ',') }}</div>
</div>
</div>
</div>
</div>
</div>
{# -------------------------- Depositos -------------------------- #}
<div id="btn_dpt" class="col-sm-12">
<div class="panel">
<div class="panel-body">
<div class="col-md-12 col-xs-12" ><strong class="text-info">
<legend class="border-teal-800">{% trans %}DEPOSITOS{% endtrans %}</legend></strong>
</div>
<form name="mds_greenpatiobundle_revervation_form3" method="post" action="/reservations-greenpatio/createdeposit/{{ id }}" class="form-horizontal" role="form" autocomplete="off">
<div class="col-md-2 col-xs-12" >
<label class="control-label">{% trans %}Date{% endtrans %}: *</label>
<input type="date" id="reservation_deposit_date" name="reservation_deposit[date]" value="" class="form-control" required="required">
</div>
<div class="col-md-4 col-xs-12" >
<div class="col-md-12"><label class="control-label">{% trans %}Descripción{% endtrans %}</label></div>
<div class="col-md-12">
<input type="text" class="form-control" name="reservation_deposit[description]" id="reservation_deposit_description" value="" placeholder="Descripción del deposito">
</div>
</div>
<div class="col-md-2 col-xs-12" >
<div class="col-md-12"><label class="control-label">{% trans %}Monto{% endtrans %} *</label></div>
<div class="col-md-12">
<input type="text" class="form-control" name="reservation_deposit[amount]" id="reservation_deposit_amount" value="" placeholder="Descripción del deposito" required="required">
</div>
</div>
<div class="col-md-2 col-xs-12" style="padding-top: 25px">
<div class="col-md-12">
<div class="checkbox-switchery switchery-sm">
<div class="checkbox checkbox-switchery switchery-lg switchery-double text-left">
<input type="checkbox" class="switchery-info boolDelete" id="reservation_deposit_isdone" name="reservation_deposit[isDone]" > PAGADO
</div>
</div>
</div>
</div>
<div class="col-md-2 col-xs-12" style="padding-top: 25px; padding-left: 15px;padding-right: 15px">
<div class="form-group form-group-material">
<div class="input-group teal">
<span class="input-group-addon bg-info-800"><i class="icon-plus22"></i></span>
<button type="submit" id="reservation_deposit_save" name="reservation_deposit[save]" class="btn bg-info-600 btn-block">{% trans %}Add{% endtrans %}</button>
</div>
</div>
</div>
</form>
<div class="col-sm-12 text-center"><br><br><br></div>
<div class="col-sm-12 text-center">
<div class="col-sm-12">
<div class="col-sm-2"><b>Fecha del Deposito</b></div>
<div class="col-sm-5"><b>Descripción</b></div>
<div class="col-sm-3"><b>Monto</b></div>
<div class="col-sm-2"><b>Pagado</b></div>
</div>
<div class="col-sm-12">
<hr>
</div>
{% for deposito in depositsAll %}
<div class="col-sm-12 margen-10">
<div class="col-sm-2">
{{ deposito.date|date('d/m/Y') }}
</div>
<div class="col-sm-5">
{{ deposito.description }}
</div>
<div class="col-sm-3">
{{ deposito.amount }}
</div>
<div class="col-sm-2">
{% if deposito.isDone %}
<i class="icon-checkmark"></i>
{% else %}
<form name="reservation_deposit_isdone_pending" method="post" action="/reservations-greenpatio/depositupdate/{{ deposito.id }}" class="form-horizontal" role="form" autocomplete="off">
<div class="col-sm-9">
<div class="checkbox-switchery switchery-sm">
<div class="checkbox checkbox-switchery switchery-lg switchery-double text-left">
<input type="checkbox" class="switchery-info boolDelete" id="reservation_deposit_isdone_pending" name="reservation_deposit_isdone_pending[isDone]" > PAGADO
</div>
</div>
</div>
<div class="col-sm-3 col-xs-12" style="padding-top: -10px; padding-left: 15px;padding-right: 15px">
<div class="form-group form-group-material">
<div class="input-group teal">
{#<span class="input-group-addon bg-teal-800"><i class="icon-floppy-disk"></i></span>#}
<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>
</div>
</div>
</div>
</form>
{% endif %}
</div>
</div>
{% endfor %}
<div class="col-sm-12">
<hr>
</div>
</div>
</div>
</div>
</div>
{# -------------------------- Facturas de Depositos -------------------------- #}
<div class="col-sm-12">
<div class="panel">
<div class="panel-body">
<div class="col-md-12 col-xs-12" ><strong class="text-info">
<legend class="border-teal-800">{% trans %}Payments{% endtrans %}</legend></strong>
</div>
<div class="col-sm-12 text-center">
<div class="col-sm-12">
{#<div class="col-sm-1"><b>No.</b></div>#}
<div class="col-sm-3"><b>Expediente</b></div>
<div class="col-sm-3"><b>Fecha de Pago</b></div>
<div class="col-sm-3"><b>Forma de Pago</b></div>
<div class="col-sm-3"><b>Monto</b></div>
</div>
<div class="col-sm-12">
<hr>
</div>
{% for payment in paymentsAll %}
<div class="col-sm-12 margen-10">
{#<div class="col-sm-1">{{ payment.id }}</div>#}
<div class="col-sm-3">{{ payment.reservationId }}</div>
<div class="col-sm-3">{{ payment.datePayAt|date('d/m/Y') }}</div>
<div class="col-sm-3">{{ payment.wayToPay }}</div>
<div class="col-sm-3">{{ payment.amount|number_format(2, '.', ',') }}</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-12 text-center">
<div class="panel bg-danger-300" style="padding-top: 10px; padding-bottom: 0px; bottom: 0; position: fixed; width: 80%">
<div class="col-sm-4"><b>{% trans %}Sale Client Global{% endtrans %}</b><br><b> {{ sumatoria_totales_global_con_iva|number_format(2, '.', ',') }} € </b></div>
<div class="col-sm-4"><b>{% trans %}IVA{% endtrans %}</b><br><b> {{ sumatoria_totales_global_iva|number_format(2, '.', ',') }} €</b></div>
<div class="col-sm-4"><b>{% trans %}Sale No Vat{% endtrans %}</b><br><b> {{ sumatoria_totales_global_neto|number_format(2, '.', ',') }} €</b></div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript" src="{{ asset('assets/js/plugins/editors/summernote/summernote.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/plugins/croppie/croppie.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/plugins/forms/styling/switchery.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/plugins/loaders/blockui.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/plugins/forms/selects/select2.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/pages/greenpatio/add-simple-reservation.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/pages/datetime.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/pages/greenpatio/switchery-services.js') }}"></script>
{% endblock %}