<!-- ********************************************************************* -->
<!-- **************** Obrigatório para o painel funcionar **************** -->
<!-- ********************************************************************* -->
<?php
    require_once('../../pp3.php');
    /*
      $chamados[$i]['idc']
      $chamados[$i]['tempo']
      $chamados[$i]['tempo_cancelado']
      $chamados[$i]['tempo_atendido']
      $chamados[$i]['tempo_chamada']
      $chamados[$i]['cidadao']
      $chamados[$i]['cpf']
      $chamados[$i]['cns']
      $chamados[$i]['profissional']
      $chamados[$i]['pri_clas_risco']
      $chamados[$i]['pec_clas_risco']
      $chamados[$i]['des_clas_risco']
      $chamados[$i]['cor_clas_risco']
      $chamados[$i]['prof_cpf']
      $chamados[$i]['prof_cns']
      $chamados[$i]['cnes']
      $chamados[$i]['dt_nascimento']
      $chamados[$i]['estagio']
      $chamados[$i]['senha']
      $chamados[$i]['ibge']
      $chamados[$i]['origem']
      $chamados[$i]['ctc']
      $chamados[$i]['txt_final']
      $chamados[$i]['m_estagio']
      $chamados[$i]['m_cor']
      $chamados[$i]['sala']
    */
?>
<!-- ********************************************************************* -->
<!-- ********************************************************************* -->
<!-- ********************************************************************* -->

<table class="table">
  <thead>
      <tr>
          <th>Já chamados</th>
          <th>Sala</th>
          <th>Senha</th>
      </tr>
  </thead>
  <tbody>
<?php
for ($i=0;$i<count($chamados);$i++){
  echo "
    <tr>
      <td>
          <div class=\"d-flex align-items-center\">
              <div class=\"avatar bg-light-".$chamados[$i]['cor_clas_risco']." me-1\">
                  <div class=\"avatar-content\">
                      <i data-feather=\"monitor\" class=\"font-medium-3\"></i>
                  </div>
              </div>
              <h1 class=\"fw-bolder\">".$chamados[$i]['cidadao']."</h1>
          </div>
      </td>
      <td class=\"text-nowrap\">
          <div class=\"d-flex flex-column\">
              <span class=\"fw-bolder h2 mb-25\">".$chamados[$i]['sala']."</span>
              <span class=\"badge rounded-pill bg-".$chamados[$i]['m_cor']."\">(".$chamados[$i]['ctc'].") ".$chamados[$i]['m_estagio']."</span>
          </div>
      </td>
      <td><h1 class=\"size1\"># ".$chamados[$i]['senha']."</h1></td>
    </tr>
  ";
}

?>
    </tbody>
</table>

<script>
    $(function () {
        if (feather) {
            feather.replace({
                width: 14,
                height: 14
            });
        }
    })
</script>