{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
{% if ea.crud.currentAction == 'detail' %}
<table class="table table-striped">
<tr>
<th>Estado</th>
<th>Usuario</th>
<th>Fecha y Hora</th>
</tr>
{% for value in field.value %}
<tr>
<td>{{ value.estado }}</td>
<td>{{ value.user }} {% if value.user is null %}BITCUBO-BOT{% endif %}</td>
<td>{{ value.createdAt | date('d-m-Y H:i:s') }}</td>
</tr>
{% endfor %}
</table>
{% else %}
<span class="badge badge-secondary">{{ field.formattedValue }}</span>
{% endif %}