{% extends 'base.html.twig' %}

{% block title %}Admin Validation{% endblock %}



{% block content %}

<!-- az-header -->
<div class="az-content">
    <div class="container">
        <div class="az-content-body d-flex flex-column">


            <div class="az-content-breadcrumb">
                <span>Admin</span>
                <span>Enquête</span>
            </div>
            <h2 class="az-content-title">Validation</h2>
         

            {% include 'basic/alert.html.twig' %}

            <p class="mg-b-20">Liste des Enquête a valider par l'admin</p>

        

            <div class="table-responsive">
                <table class="table mg-b-0">
                    <thead>
                        <tr>
                            <th>Id</th>
                            <th>Name</th>
                            <th>Date Create</th>
                            <th>Questions</th>
                            <th>Afficher</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for investigation in investigations %}
                            <tr>
                                <td>{{ investigation.getId() }}</td>
                                <td>{{ investigation.getNameEn() }}</td>
                                <td>{{ investigation.getDateCreate()|date("d/m/Y H:i") }}</td>
                                <td>{{ investigation.getNbrQuestions() }}</td>
                                <td>
                                    <a href=""class="badge  badge-warning text-white" >
                                        Afficher l'enquête
                                    </a>
                                </td>
                                <td>
                                    <a href="{{ path('app_investigation_admin_active', {id:investigation.getId()}) }}" class="">Activer</a>
                                    <a href="#" class="">Réfuser</a>
                                </td>
                                </td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>




        </div>
    </div>
</div>

{% endblock %}