<table class="table table-condensed" id="ticket-list">
    <thead>
        <tr>
            <th>Sujet</th>
            <th>Statut</th>
            <th>Dernier message</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    {% for ticket in tickets %}
        <tr>
            <td>{{ ticket.subject }}</td>
            <td>
                {% set value = ticket.status %}
                {% include '@LcShop/backend/default/list-fields/field_ticket_status.html.twig' %}
            </td>
            <td>
                {% set item = ticket %}
                {% include '@LcShop/backend/default/list-fields/field_ticket_last_message.html.twig' %}
            </td>
            <td>
                <a class="btn-sm btn-success" href="{{ path('easyadmin', {id: ticket.id, entity: 'Ticket', action: 'show'}) }}">
                    <i class="fas fa-eye"></i>
                </a>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>

