<table class="display table table-bordered table-striped" id="dynamic-table" >
    <thead>
        <tr>
            <th>{{ trans('ui.record.procedure') }}</th>
            <th>{{ trans('ui.record.agent') }}</th>
            <th>{{ trans('ui.record.date') }}</th>
            <th>{{ trans('ui.record.service_time') }}</th>
            <th>{{ trans('ui.record.services') }}</th>
        </tr>
    </thead>
    <tbody>
        @foreach($registros as $registro)
        <tr>
            <td>{{ $registro->tramite->nombre}}</td>
            <td>
                <ul>
                    @foreach($registro->usuarios as $usuario)
                        <li>
                            {{ $usuario->firstname. ' '. $usuario->lastname }}
                        </li>
                    @endforeach
                </ul>
            </td>
            <td>{{ $registro->date }}</td>
            <td>{{ $registro->service_time }}</td>
            <td>
                <ul>
                    @foreach($registro->servicios as $servicio)
                        <li>
                            {{ $servicio->servicio }}
                        </li>
                    @endforeach
                </ul>
            </td>
        </tr>
    @endforeach
    </tbody>
</table>
