Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
716cf56cb2.url-de-test.ws
/
htdocs
/
templates
/
Back
/
Booking
/
//srv/data/web/vhosts/716cf56cb2.url-de-test.ws/htdocs/templates/Back/Booking/search.html.twig
{% extends "Back/layout.html.twig" %} {% block content %} <div class="row my-5"> <div class="col-sm-12"> <div id="searchbookingBack"> <h1>Gérez vos réservations</h1> <div class="dropdown mb-4"> <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false"> Trier </button> <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1"> <li> <a class="dropdown-item btn btn-info" href="{{ path('app_back_search_booking') }}?order=ASC"> <i class="fa-solid fa-arrow-up-wide-short"></i> Trier du plus ancien au plus récent </a> </li> <li> <a class="dropdown-item btn btn-info" href="{{ path('app_back_search_booking') }}?order=DESC"> <i class="fa-solid fa-arrow-down-short-wide"></i> Trier du plus récent au plus ancien </a> </li> </ul> </div> <table class="table table-hover"> <thead> <tr> <th scope="col">Logement</th> <th scope="col">Prix total</th> <th scope="col">Acompte</th> <th scope="col">Reste à payer</th> <th scope="col">Début</th> <th scope="col">Fin</th> <th scope="col">Nom du client</th> <th scope="col">Téléphone</th> <th scope="col">Nb Adultes</th> <th scope="col">Nb Enfants</th> <th scope="col">Mode de paiement</th> <th scope="col">Action</th> </tr> </thead> <tbody> {% for booking in bookings %} {% set tableClass = loop.index is even ? 'table-primary' : 'table-default' %} {% set canceled = booking.isCancel ? 'table-danger' : '' %} <tr class="{{ tableClass }} {{ canceled }}"> <td scope="row">{{ booking.logementName }}</td> <td scope="row">{{ booking.totalPrice|amount }}</td> <td scope="row" class="{{ booking.statusAdvance == 'PAYE' ? 'text-success' : 'text-danger' }}"> <b> {{ booking.advance|amount }} <br> {{ booking.statusAdvance }} </b> </td> <td scope="row" class="{{ booking.statusRest == 'PAYE' ? 'text-success' : 'text-danger' }}"> <b> {{ booking.rest|amount }} <br> {{ booking.statusRest }} </b> </td> <td scope="row">{{ booking.checkin|date('d-m-Y') }}</td> <td scope="row">{{ booking.checkout|date('d-m-Y') }}</td> <td scope="row">{{ booking.userName }}</td> <td scope="row">{{ booking.userPhone }}</td> <td scope="row">{{ booking.nbAdultes }}</td> <td scope="row">{{ booking.nbEnfants }}</td> <td scope="row">{{ booking.fundingSource }}</td> <td scope="row"> <div class="dropdown"> <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false"> Actions </button{{booking.isCancel?'disabled':''}}> <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1"> <li> <a href="{{ path('app_back_edit_booking', {'id': booking.id}) }}" class="dropdown-item btn btn-warning"> <i class="fa-solid fa-pen-to-square"></i> Modifier </a> </li> {% if booking.statusRest == "EN ATTENTE" %} <li> <a href="#" data-bs-toggle="modal" data-bs-target="#staticBackdrop{{booking.id}}" data-booking-id="{{booking.id}}" class="dropdown-item btn btn-danger delete"> <i class="fa-solid fa-trash"></i> Annuler </a> </li> {% endif %} </ul> </div> </td> <td scope="row"></td> </tr> <!-- Modal --> <div class="modal fade" id="staticBackdrop{{booking.id}}" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel{{booking.id}}" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel{{booking.id}}">Annuler</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> Vous allez Annuler cette réservation </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> <a href="{{ path('app_back_cancel_booking', {'id': booking.id}) }}" class="btn btn-danger">Annuler</a> </div> </div> </div> </div> {% endfor %} </tbody> </table> </div> </div> </div> {% endblock %}