<div class="container-fluid">
  <div class="row">
    <div class="col-3">
      &nbsp;
    </div>
    <div class="col-9">
      <div class="d-flex align-items-center justify-content-evenly">
          <select class="form-select form-select-sm mx-2" name="new_acte" id="new_acte">
            <option value="0">nouvel acte</option>
            <?php foreach ($tab_actes as $key => $acte): ?>
              <option value="<?=$acte['id'];?>"><?=$acte['libel'];?></option>
            <?php endforeach; ?>
          </select>
          <b>X</b>
          <input type="text" class="form-control form-control-sm mx-2 text-center" name="new_nb_acte" id="new_nb_acte" value="1" style="width:40px;">
          <button type="button" class="btn btn-sm btn-primary icon-plus mx-2" onclick="javascript:newPrescriptionActe();"></button>
        </div>
    </div>
  </div>
  <?php if ($actes): ?>
    <div class="row">
      <div class="col">
        <table class="table">
          <thead>
            <tr>
              <th>Nombre</th>
              <th>Acte</th>
            </tr>
          </thead>
          <tbody>
            <?php foreach ($actes as $key => $acte): ?>
              <tr>
                <td><?=$acte['nb_acte'];?></td>
                <td><?=$acte['acte']['libel'];?></td>
              </tr>
            <?php endforeach; ?>
          </tbody>
        </table>
      </div>
    </div>
  <?php else: ?>
    <div class="row">
      <div class="col p-0">
        <p>Aucun acte médicale...</p>
      </div>
    </div>
  <?php endif; ?>
</div>
