<table class="display table table-bordered table-striped" id="dynamic-table" >
    <thead>
        <tr>
            <th><?php echo e(trans('ui.record.procedure')); ?></th>
            <th><?php echo e(trans('ui.record.agent')); ?></th>
            <th><?php echo e(trans('ui.record.date')); ?></th>
            <th><?php echo e(trans('ui.record.service_time')); ?></th>
            <th><?php echo e(trans('ui.record.services')); ?></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach($registros as $registro): ?>
        <tr>
            <td><?php echo e($registro->tramite->nombre); ?></td>
            <td>
                <ul>
                    <?php foreach($registro->usuarios as $usuario): ?>
                        <li>
                            <?php echo e($usuario->firstname. ' '. $usuario->lastname); ?>

                        </li>
                    <?php endforeach; ?>
                </ul>
            </td>
            <td><?php echo e($registro->date); ?></td>
            <td><?php echo e($registro->service_time); ?></td>
            <td>
                <ul>
                    <?php foreach($registro->servicios as $servicio): ?>
                        <li>
                            <?php echo e($servicio->servicio); ?>

                        </li>
                    <?php endforeach; ?>
                </ul>
            </td>
        </tr>
    <?php endforeach; ?>
    </tbody>
</table>
