<?php if(count($medicamentos)): ?>
  <a class="list-group-item">
    <p class="list-group-item-heading">Lista de Medicamentos</p>
    <div class="row formulario-horizontal">
      <div class="col-xs-12">
        <table class="table table-striped table-bordered table-hover table-condensed">
          <thead>
            <tr>
              <th>CUM</th>
              <th>Código</th>
              <th>Nombre del medicamento</th>
              <th>Cantidad</th>
              <th>Posología</th>
            </tr>
          </thead>

          <tbody>
            <?php foreach($medicamentos as $medicamento): ?>
              <tr>
                <td><?php echo e($medicamento->cum); ?></td>
                <td><?php echo e($medicamento->cod); ?></td>
                <td><?php echo e($medicamento->nombre); ?></td>
                <td><?php echo e($medicamento->cantidad); ?></td>
                <td><?php echo e($medicamento->posologia); ?></td>
              </tr>            
            <?php endforeach; ?>
          </tbody>
        </table>
      </div>
    </div>
  </a>
<?php endif; ?>
