       {% for declaration in declarations %}
            <tr>
                <td>{{ loop.index }}</td>
                <td>
                    {% if declaration.statut == 'scheduled' %}
                        <span class="badge badge-scheduled">Scheduled</span>
                    {% elif declaration.statut == 'rejected' %}
                        <span class="badge badge-rejected">Rejected</span>
                    {% elif declaration.statut == 'pending' %}
                        <span class="badge ba