<style>

</style>

<table cellpadding='0' cellspacing='0' style='margin-bottom:0px;width:100%;'>
    <tr>
        <td width='20%'>
            <img src="<?php echo base_url . 'Assets/img/logo-factura.png'; ?>" alt="" width='152'>
        </td>

        <td width='80%' style='font-size:4.5mm;text-align:right;'>
                <strong>
                    RECIBO DE PAGO<br/>
                    <?=$data['abono']["rec_numero"]?><br/>
                    <?=$data['abono']["fecha_abono"]?>
                </strong>
        </td>
    </tr>
</table>

<table cellpadding='0' cellspacing='0' style='margin-top:4mm;width:100%;border:1px solid #000;padding:1mm;'>
    <tr>
        <td width='100%' style='font-size:3.5mm;'>
                    RECIBIMOS DE:<br/>
                    <strong>
                        <?php echo $data['abono']['id_cliente']; ?> - <?php echo $data['abono']['nombre']; ?>
                    </strong>
        </td>
    </tr>
</table>

<table cellpadding='0' cellspacing='0' style='margin-top:1mm;width:100%;padding:1mm;'>
    <tr>
        <td width='100%' style='font-size:4.5mm;'>
                    VALOR:&nbsp;&nbsp;&nbsp;<strong>Q.<?php echo number_format($data['abono']['monto'],2,'.',','); ?></strong>
        </td>
    </tr>
</table>

<table cellpadding='0' cellspacing='0' style='margin-top:1mm;width:100%;'>
    <thead>    
        <tr style='background:#777777;'>
            <th style='text-align:left;font-size:2.2mm;color:#fff;padding:1mm;'># VALE</th>
            <th style='text-align:left;font-size:2.2mm;color:#fff;padding:1mm;'># INTERNO</th>
            <th style='text-align:left;font-size:2.2mm;color:#fff;padding:1mm;'>FECHA</th>
            <th style='text-align:right;font-size:2.2mm;color:#fff;padding:1mm;'>ABONADO</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach($data['abono_detalle'] as $value) { ?>
        <tr>
            <td style='text-align:left;font-size:2.4mm;color:#000;padding:1mm;'><?php echo $value['id_credito']; ?></td>
            <td style='text-align:left;font-size:2.4mm;color:#000;padding:1mm;'><?php echo $value['interno']; ?></td>
            <td style='text-align:left;font-size:2.4mm;color:#000;padding:1mm;'><?php echo $value['fecha']; ?></td>
            <td style='text-align:right;font-size:2.4mm;color:#000;padding:1mm;'>Q.<?php echo number_format($value['abono'], 2); ?></td>
        </tr>
        <?php } ?>

        <?php
            for($i=0; $i<=(18-count($data['abono_detalle'])); $i++) {
                ?>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                <?php
            }
        ?>

    </tbody>    
</table>

<table cellpadding='0' cellspacing='0' style='margin-top:1mm;width:100%;padding:1mm;'>
    <tr>
        <td width='100%' style='font-size:4.5mm;padding-bottom:3mm;'>
                        <strong>VENDEDOR:</strong><br/>
                        <?php echo $data['abono']['id_usuario']; ?>&nbsp;
        </td>
    </tr>
    <tr>
        <td width='100%' style='font-size:4.5mm;padding-bottom:3mm;'>    
                        <strong>FORMA DE PAGO:</strong><br/>
                        <?php echo $data['abono']['metodo']; ?>&nbsp;
        </td>
    </tr>
    <tr>
        <td width='100%' style='font-size:4.5mm;padding-bottom:3mm;'>
                        <strong>BANCO:</strong><br/>
                        <?php echo $data['abono']['banco']; ?>&nbsp;
        </td>
    </tr>
    <tr>
        <td width='100%' style='font-size:4.5mm;padding-bottom:3mm;'>
                        <strong>REFERENCIA:</strong><br/>
                        <?php echo $data['abono']['referencias']; ?>&nbsp;
        </td>
    </tr>
    <tr>
        <td width='100%' style='font-size:4.5mm;padding-bottom:3mm;'>
                        <strong>REFERENCIA:</strong><br/>
                        <?php echo $data['abono']['observaciones']; ?>&nbsp;
        </td>
    </tr>

</table>