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

{% block title %}Appointment{% endblock %}

{% block body %}
    <h1>Appointment</h1>

    <table class="table">
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ appointment.id }}</td>
            </tr>
            <tr>
                <th>Civility</th>
                <td>{{ appointment.civility }}</td>
            </tr>
            <tr>
                <th>Name</th>
                <td>{{ appointment.name }}</td>
            </tr>
            <tr>
                <th>Surname</th>
                <td>{{ appointment.surname }}</td>
            </tr>
            <tr>
                <th>DateOfBirth</th>
                <td>{{ appointment.dateOfBirth ? appointment.dateOfBirth|date('Y-m-d') : '' }}</td>
            </tr>
            <tr>
                <th>Phone</th>
                <td>{{ appointment.phone }}</td>
            </tr>
            <tr>
                <th>Fonction</th>
                <td>{{ appointment.fonction }}</td>
            </tr>
            <tr>
                <th>PaymentMeans</th>
                <td>{{ appointment.paymentMeans }}</td>
            </tr>
            <tr>
                <th>PaymentNumber</th>
                <td>{{ appointment.paymentNumber }}</td>
            </tr>
            <tr>
                <th>PaymentReference</th>
                <td>{{ appointment.paymentReference }}</td>
            </tr>
            <tr>
                <th>PaymentStatus</th>
                <td>{{ appointment.paymentStatus }}</td>
            </tr>
            <tr>
                <th>DateCreated</th>
                <td>{{ appointment.dateCreated ? appointment.dateCreated|date('Y-m-d H:i:s') : '' }}</td>
            </tr>
            <tr>
                <th>DateTreated</th>
                <td>{{ appointment.dateTreated ? appointment.dateTreated|date('Y-m-d H:i:s') : '' }}</td>
            </tr>
            <tr>
                <th>Status</th>
                <td>{{ appointment.status }}</td>
            </tr>
        </tbody>
    </table>

    <a href="{{ path('app_appointment_index') }}">back to list</a>

    <a href="{{ path('app_appointment_edit', {'id': appointment.id}) }}">edit</a>

    {{ include('appointment/_delete_form.html.twig') }}
{% endblock %}
