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

{% block title %}Payment{% endblock %}

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

    <table class="table">
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ payment.id }}</td>
            </tr>
            <tr>
                <th>Operator</th>
                <td>{{ payment.operator }}</td>
            </tr>
            <tr>
                <th>Amount</th>
                <td>{{ payment.amount }}</td>
            </tr>
            <tr>
                <th>Number</th>
                <td>{{ payment.number }}</td>
            </tr>
            <tr>
                <th>Reason</th>
                <td>{{ payment.reason }}</td>
            </tr>
            <tr>
                <th>OperationType</th>
                <td>{{ payment.operationType }}</td>
            </tr>
            <tr>
                <th>DateCreated</th>
                <td>{{ payment.dateCreated ? payment.dateCreated|date('Y-m-d H:i:s') : '' }}</td>
            </tr>
            <tr>
                <th>ApiResponse</th>
                <td>{{ payment.apiResponse ? payment.apiResponse|json_encode : '' }}</td>
            </tr>
        </tbody>
    </table>

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

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

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