{% extends 'layouts/authenticated.html.twig' %} {% block page_title %}{{ page_title|default('Reparations') }}{% endblock %} {% block content %}

Reparations

Gestion des reparations d'equipements

{# Stats cards #}
Total
{{ statistics.total|default(0) }}
Demandees
{{ statistics.requested|default(0) }}
Diagnostiquees
{{ statistics.diagnosed|default(0) }}
En reparation
{{ statistics.in_repair|default(0) }}
Reparees
{{ statistics.repaired|default(0) }}
Retournees
{{ statistics.returned|default(0) }}
{# Filtres #}
{# Tableau #} {% if repairs|length > 0 %}
{% for repair in repairs %} {% endfor %}
Reference Equipement Demande par Date Statut Cout estime Actions
{{ repair.reference }}
{{ repair.equipment.name|default('—') }}
{% if repair.requestedBy %} {{ repair.requestedBy.fullName }} {% endif %} {{ repair.requestedAt|date('d/m/Y') }} {% set color = repair.statusBadgeColor %} {{ repair.statusLabel }} {% if repair.isOverdue %} En retard {% endif %} {% if repair.estimatedCost %} {{ repair.estimatedCost|number_format(0, ',', ' ') }} XOF {% else %} {% endif %}
{% if repairs.pageCount is defined and repairs.pageCount > 1 %}
Affichage de {{ repairs.currentItemCount }} sur {{ repairs.totalItemCount }} resultats
{{ knp_pagination_render(repairs) }}
{% endif %}
{% else %}

Aucune reparation

Aucune reparation ne correspond a vos criteres.

{% endif %}
{% endblock %}