<form id="mandacorreovende"  >
    <input type="hidden" id="idUsuario" name="idUsuario" value="<?php echo $_SESSION['idUsuario'] ?>">
    <input type="hidden" id="userrol" name="userrol" value="<?php echo $_SESSION['userrol'] ?>">
    <input type="hidden" id="id_oc" name="id_oc" value="<?php echo $idoc ?>">
                 <textarea class="form-control" id="comentarios" maxlength="250"  name="comentarios" rows="3"></textarea>
                 <div class="scroll-container_coment" style="margin-top: 20px;">
                    <div class="modal-body" style="width:100%;">
                        <p  class="text-center"><span>Comentarios</span></p>
                    <?php if($data_coment){ ?>
                        <div id="tablaprincipal" class="col-md-12" >
                            <table class="table table-border" >
                                <thead>
                                    <tr>
                                        <th>Comentario</th>
                                        <th>Usuario</th>
                                        
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php foreach ($data_coment as $comentariosuser) { ?>
                                    <tr>
                                        <td><?php echo htmlentities($comentariosuser->comentario) ?></td>
                                        <td><?php echo htmlentities($comentariosuser->nombre) ?></td>
                                        
                                        
                                    </tr>
                                    <?php } ?>
                                </tbody>

                            </table>

                        </div>
                    <?php  }else{
                        echo '<div class="mb-3 "style="padding:20px;"><h5>No hay comentarios</h5></div>';
                        }
                    ?>
                    </div>
                </div>
                <div class="modal-footer">
                    <?php if($estatus!=='6'){ ?>
                    <button id="botongurdarcoti"  type="button" class="btn btn-primary" onclick="guardar_comentario()">Guardar</button>
                    <?php } ?>
                     <button id="cerrar-modal" type="button" class="btn btn-secondary" onclick="cerrar_comentario()" data-bs-dismiss="modal">Cerrar</button>
                </div>
</form>