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

{% block stylesheets %}
    {{ parent() }}
    <!-- <link rel="stylesheet" href="{{ asset('choosen/docsupport/style.css') }}"> -->
    <link rel="stylesheet" href="{{ asset('choosen/docsupport/prism.css') }}">
    <link rel="stylesheet" href="{{ asset('choosen/chosen.css') }}">
{% endblock %}

{% block body %}

    {#<div class="row">
        <div class="col-lg-12">
            <div class="main-card mb-3 card">
                <div class="card-body">
                    <h5 class="card-title mb-2">
                        rechercher 
                    </h5>
                    <div class="table-responsive-sm">
                        {{ form_start(form) }}

                            <div class="position-relative row form-group">
                                {{ form_errors(form.nom) }}
                                <div class="col-sm-7">
                                    {{ form_widget(form.nom, {'attr': {'class': 'form-control', 'placeholder':'Mot cle a rechercher' }}) }}
                                </div>
                                <div class="col-sm-2">
                                    <input type="submit" value="Filtrer" class="btn btn-outline-primary">
                                </div>
                            </div>
                        {{ form_end(form) }}
                    </div>
                </div>
            </div>
        </div>
    </div>#}
    <div class="row">
            <div class="col-lg-12">
                <div class="main-card mb-3 card">
                    <div class="card-body">
                        <h5 class="card-title mb-2">
                            Historique de RDV
                        </h5>
                        <div class="table-responsive-sm">

                            <table class="table">
                                <thead>
                                <tr>
                                    <th> Date RDV. </th>
                                    <th> Patients </th>
                                   
                                    <th> &nbsp; </th>
                                </tr>
                                </thead>
                                <tbody>
                                    {% for rdv in rdvArray %}
                                        <tr>
                                            <td> {{ rdv.createdAt|date('d/m/Y') }} {{ rdv.createdAt|date('H:i:s') }} </td>
                                            <td> {{ rdv.patient }} </td>
                                            <td></td>
                                        </tr>
                                    {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>

{% endblock %}

{% block javascripts %}

{{ parent() }}

<script src="{{ asset('choosen/docsupport/jquery-3.2.1.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('choosen/chosen.jquery.js') }}" type="text/javascript"></script>
<script src="{{ asset('choosen/docsupport/prism.js') }}" type="text/javascript" charset="utf-8"></script>
<script src="{{ asset('choosen/docsupport/init.js') }}" type="text/javascript" charset="utf-8"></script>


{% endblock %}