<table class="display table table-striped table-bordered table-responsive-x">
  <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">Nome</th>
      <th scope="col">Email</th>
      <th scope="col">Data de entrada</th>
      <th scope="col">Último Atendimento</th>
      <th scope="col">Origem</th>
      <th scope="col">Status</th>
      <th scope="col">Ações</th>
    </tr>
  </thead>
  <tbody class="tb-result">
    <?php foreach($historicos as $hist){ ?>    
        <tr>
          <th scope="row"><?php e($hist->id_fila); ?></th>
          <td><?php e($hist->nome) ?></td>
          <td><?php e($hist->email) ?></td>
          <td><?php e(converte_datahora($hist->datetime_captura,1)) ?></td>
          <td><?php e(converte_datahora($hist->date_time,1)) ?></td>
          <td><?php e($hist->captura) ?></td>
          <td><?php e($hist->status_formatado) ?></td>
          <td><a class="btn btn-sm btn-primary mr-1" href="<?php e(base_url('atendimento/incorporadoras/atendimento/'.$hist->uri_atend)) ?>" target="_blank" data-original-title="Atendimento rápido"><i class="icon-plus"></i></a>
          </td>
        </tr>
    <?php } ?>
</table>