<!-- Modal -->
<div id="modalListPayments" class="modal fade left" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="myModalLabel"><?php echo $_translator->_getTranslation('Lista de pagos');?></h3>
        </div> 
        <div id="flashmessenger-listPayments"></div>
        <div class="modal-body">  
            <div class='col-lg-12 col-md-12 col-sm-12 m-t-3'>
                <table id="tblPayments" class="table table-condensed table-striped table-hover">
                    <thead>
                        <th class='text-center'><?php echo $_translator->_getTranslation('Venta')?></th>
                        <th class='text-right'><?php echo $_translator->_getTranslation('Monto')?></th>
                        <th class='text-center'><?php echo $_translator->_getTranslation('status')?></th>
                        <th class='text-center'><?php echo $_translator->_getTranslation('Accion')?></th>
                    </thead>
                    <tbody>
                    <?php
                    if($_listPayments){
                        foreach($_listPayments as $payment){?>
                        <tr>
                            <td class='text-center'><?php echo $payment['id'] ?></td>
                            <td class='text-right'><?php echo number_format($payment['total_venta'],2); ?></td>
                            <td class='text-center'><?php echo $payment['statusName'] ?></td>
                            <td class='text-center'><a class='btn btn-md btn-default' onclick='printTicketVenta(<?php echo $payment['id'] ?>);'><i class='fa fa-print'></i></a></td>
                        </tr>
                        <?php
                        }
                    }?>
                    </tbody>
                </table>
            </div> 
            <div class='clear'></div>
        </div>
        <div class="modal-footer">    
            <div class='col-lg-3 col-md-3 col-sm-12 pull-right'>
                <input type="button" class='btn btn-lg btn-default pull-right' onclick="$('#modalListPayments').modal('hide')" value="<?php echo $_translator->_getTranslation('Cerrar');?>" />                      
            </div>            
        </div>
    </div>
    </div>  
</div>