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

{% block title %}Transaction{% endblock %}

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

    <table class="table">
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ transaction.id }}</td>
            </tr>
            <tr>
                <th>TitulaireCompte</th>
                <td>{{ transaction.titulaireCompte }}</td>
            </tr>
            <tr>
                <th>Nom</th>
                <td>{{ transaction.nom }}</td>
            </tr>
            <tr>
                <th>Prenom</th>
                <td>{{ transaction.prenom }}</td>
            </tr>
            <tr>
                <th>DateNaissance</th>
                <td>{{ transaction.dateNaissance ? transaction.dateNaissance|date('Y-m-d') : '' }}</td>
            </tr>
            <tr>
                <th>Telephone</th>
                <td>{{ transaction.telephone }}</td>
            </tr>
            <tr>
                <th>TypeDocumentIdentification</th>
                <td>{{ transaction.typeDocumentIdentification }}</td>
            </tr>
            <tr>
                <th>IsDocumentIdentification</th>
                <td>{{ transaction.isDocumentIdentification ? 'Yes' : 'No' }}</td>
            </tr>
            <tr>
                <th>NumeroDocumentIdentification</th>
                <td>{{ transaction.numeroDocumentIdentification }}</td>
            </tr>
            <tr>
                <th>ValiditeDocumentIdentification</th>
                <td>{{ transaction.validiteDocumentIdentification ? transaction.validiteDocumentIdentification|date('Y-m-d') : '' }}</td>
            </tr>
            <tr>
                <th>ElementOperation</th>
                <td>{{ transaction.elementOperation }}</td>
            </tr>
            <tr>
                <th>IsTelephoneValidator</th>
                <td>{{ transaction.isTelephoneValidator ? 'Yes' : 'No' }}</td>
            </tr>
            <tr>
                <th>TypeOperation</th>
                <td>{{ transaction.typeOperation }}</td>
            </tr>
            <tr>
                <th>Civility</th>
                <td>{{ transaction.civility }}</td>
            </tr>
            <tr>
                <th>FirstName</th>
                <td>{{ transaction.firstName }}</td>
            </tr>
            <tr>
                <th>Surname</th>
                <td>{{ transaction.surname }}</td>
            </tr>
            <tr>
                <th>DateBirth</th>
                <td>{{ transaction.dateBirth ? transaction.dateBirth|date('Y-m-d') : '' }}</td>
            </tr>
            <tr>
                <th>Phone</th>
                <td>{{ transaction.phone }}</td>
            </tr>
            <tr>
                <th>Phone2</th>
                <td>{{ transaction.phone2 }}</td>
            </tr>
            <tr>
                <th>IsPhone</th>
                <td>{{ transaction.isPhone ? 'Yes' : 'No' }}</td>
            </tr>
            <tr>
                <th>IsIdentificationdocument</th>
                <td>{{ transaction.isIdentificationdocument ? 'Yes' : 'No' }}</td>
            </tr>
            <tr>
                <th>TypeOfIdentificationDocument</th>
                <td>{{ transaction.typeOfIdentificationDocument }}</td>
            </tr>
            <tr>
                <th>IdentificationDocumentNumber</th>
                <td>{{ transaction.identificationDocumentNumber }}</td>
            </tr>
            <tr>
                <th>IdentificationDocumentValidity</th>
                <td>{{ transaction.identificationDocumentValidity ? transaction.identificationDocumentValidity|date('Y-m-d') : '' }}</td>
            </tr>
            <tr>
                <th>TypeOfOperation</th>
                <td>{{ transaction.typeOfOperation }}</td>
            </tr>
            <tr>
                <th>DomiciliationInstitution</th>
                <td>{{ transaction.domiciliationInstitution }}</td>
            </tr>
            <tr>
                <th>AccountType</th>
                <td>{{ transaction.accountType }}</td>
            </tr>
            <tr>
                <th>AccountAction</th>
                <td>{{ transaction.accountAction }}</td>
            </tr>
            <tr>
                <th>Amount</th>
                <td>{{ transaction.amount }}</td>
            </tr>
            <tr>
                <th>AccountProprietor</th>
                <td>{{ transaction.accountProprietor }}</td>
            </tr>
            <tr>
                <th>AccountNumber</th>
                <td>{{ transaction.accountNumber }}</td>
            </tr>
            <tr>
                <th>CardType</th>
                <td>{{ transaction.cardType }}</td>
            </tr>
            <tr>
                <th>CardAction</th>
                <td>{{ transaction.cardAction }}</td>
            </tr>
            <tr>
                <th>CardProprietor</th>
                <td>{{ transaction.cardProprietor }}</td>
            </tr>
            <tr>
                <th>CardNumber</th>
                <td>{{ transaction.cardNumber }}</td>
            </tr>
            <tr>
                <th>Currency</th>
                <td>{{ transaction.currency }}</td>
            </tr>
            <tr>
                <th>Status</th>
                <td>{{ transaction.status }}</td>
            </tr>
            <tr>
                <th>DateCreated</th>
                <td>{{ transaction.dateCreated ? transaction.dateCreated|date('Y-m-d H:i:s') : '' }}</td>
            </tr>
            <tr>
                <th>UserBank</th>
                <td>{{ transaction.userBank }}</td>
            </tr>
            <tr>
                <th>UserAgency</th>
                <td>{{ transaction.userAgency }}</td>
            </tr>
        </tbody>
    </table>

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

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

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