templates/client/payment/transactions.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %} Mes transactions | {{ parent() }} {% endblock %}
  3. {% block body %}
  4. <section class="flat-header color-bg adm-header">
  5.     <div class="wave-bg wave-bg2"></div>
  6.     <div class="container">
  7.         <div class="dasboard-wrap fl-wrap">
  8.             <div class="dasboard-breadcrumbs breadcrumbs">
  9.                 <a href="{{ url('app_client_home') }}">Accueil</a><a href="#">Mon compte</a><span>Mes transactions</span>
  10.             </div>
  11.             {{ include('base-default/client-account-sidebar-with-menu.html.twig') }}
  12.         </div>
  13.     </div>
  14. </section>
  15. <section class="middle-padding">
  16.     <div class="container">
  17.         <div class="dasboard-wrap fl-wrap">
  18.             <div class="dashboard-content fl-wrap" style="min-height: 268px">
  19.                 <div class="table-responsive">
  20.                     <table class="table">
  21.                         <thead class="table-blue">
  22.                             <tr>
  23.                                 <th>Numéro</th>
  24.                                 <th>Montant</th>
  25.                                 <th>Date</th>
  26.                                 <th>Statut</th>
  27.                                 <th>Description</th>
  28.                                 <th>Facture</th>
  29.                             </tr>
  30.                         </thead>    
  31.                         <tbody> 
  32.                             {% if transactions.totalItemCount > 0 %}     
  33.                                 {% for transaction in transactions %}
  34.                                     <tr>
  35.                                         <td>{{ transaction.transactionNumber }}</td>
  36.                                         <td>{{ transaction.amount | number_format(2, ',', ' ') }} €</td>
  37.                                         <td>{{ transaction.createdAt|date('d/m/Y à H\\hi') }}</td>
  38.                                         <td>
  39.                                             {% if transaction.status == 'succeeded' %}
  40.                                                 <span class="badge rounded-pill badge-light-success">Complétée</span>
  41.                                             {% endif %}
  42.                                         </td>
  43.                                         <td>{{ transaction.description }}</td>
  44.                                         <td>
  45.                                             {% if transaction.transactionType == 'credit' %}
  46.                                                 {% if transaction.invoice %}
  47.                                                     <a href="{{ url('app_client_invoice', {'invoiceNumber': transaction.invoice.invoiceNumber}) }}" class="text-theme-gray text-decoration-underline td-link-facture">{{ transaction.invoice.invoiceNumber }}</a>
  48.                                                 {% endif %}
  49.                                             {% else %}
  50.                                                 -
  51.                                             {% endif %}
  52.                                         </td>
  53.                                     </tr>
  54.                                 {% endfor %}
  55.                             {% else %}
  56.                                 <tr>
  57.                                     <td colspan="4">Aucune transaction trouvée.</td>
  58.                                 </tr>
  59.                             {% endif %}
  60.                         </tbody>
  61.                     </table>
  62.                 </div>
  63.                 <div class="mt-paginator">
  64.                     {{ knp_pagination_render(transactions) }}
  65.                 </div>
  66.             </div>
  67.         </div>
  68.     </div>
  69. </section>
  70. <div class="limit-box fl-wrap"></div>
  71. {% endblock %}