<?php
?>
<!--<div class="col-md-12 col-lg-12">
	<div class="box box-primary">
		<div class="box-header">
            <h3 style="padding:0;margin:0">Todos los pacientes</h3>
		</div>
		<div class="box-body">
			<table id="historialNota" class="table table-sm table-bordered table-striped dt-responsive table-hover table-active">
    			<thead class="thead-dark">
    				<tr>
    					<th>Folio</th>
    					<th>Fecha</th>
    					<th>Importe</th>
                        <th>Paciente</th>
    					<th>Acciones</th>
    				</tr>				
    			</thead>
    			<tbody>
    			</tbody>
    		</table>
		</div>
	</div>
</div>-->

    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title" id="tituloModal1">Historial de nota <?=$folioNota?></h3>
                <!--<button type="button" class="close" data-dismiss="modal" aria-label="close">
                  <span aria-hidden="true">&times;</span>
                </button>-->
            </div>
            <div class="modal-body">
                <table style="width: 100%" id="listHistorialNota" class="table table-bordered table-striped dt-responsive table-hover table-active">
                    <thead class="thead-dark">
                        <tr>
                            <th>Fecha</th>
                            <th>Folio</th>
                            <th>Motivo</th>
                            <th>Saldo Anterior</th>
                            <th>Tipo</th>
                            <th>Importe</th>
                            <th>Saldo actual</th>
                        </tr>
                    </thead>
                    <tbody>
                    	<?php
                    	foreach ($list as $key => $value) {?>
                    	<tr>
                    		<td><?=$value["fechaAlta"]?></td>
                    		<td><?=$value["idCuenta"]?></td>
                    		<td><?=$value["motivo"]?></td>
                    		<td class="text-right"><?=$value["saldoAnterior"]?></td>
                    		<td><?=$value["tipoMov"]?></td>
                    		<td class="text-right"><?=$value["importe"]?></td>
                    		<td class="text-right"><?=$value["saldoActual"]?></td>
                    	</tr>
                    	<?php
                    	}?>
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
            </div>
        </div>
    </div>
