<style>
    .table,
    .td,
    .th {
        border: 1px solid black;
        text-align: left;
    }

    .table {
        border-collapse: collapse;
        width: 100%;
    }

    .th,
    .td {
        padding: 5px;
    }
</style>

<?php

use Core\Helpers\Moneda; ?>

<div style="display:block; width: 100%;">
    <table width="100%" border="0">
        <tr>
            <th style="width: 15%; text-align: left">Nota de entrega:</th>
            <td style="width: 60%; text-align: left"><?= $factura ?></td>
            <th style="text-align: right">Fecha:</th>
            <td style="text-align: right"><?= date('d-m-Y', strtotime($fecha)) ?></td>
        </tr>
        
    </table>
</div>

<div style="display:block; width: 100%; padding:15px"></div>

<div style="display:block; width: 100%;">
    <table class="table">
        <thead>
            <tr>
                <th class="th" style="text-align: left">Ref. + Descripcion</th>
                <th class="th" style="text-align: right">Cant.</th>
                
            </tr>
        </thead>
        <tbody>
            <?php foreach ($articulos as $row) : ?>
                <tr>
                    <td class="td" style="text-align: left"><strong><?= $row['cmpnart_procodigo'] ?></strong> <?= $row['cmpnart_propnombre'] ?></td>
                    <td class="td" style="text-align: right"><?= $row['cmpnart_procantidad'] ?></td>
                   
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>

<p><strong>Observaciones:</strong></p>
<p style="text-align: justify;"><?= strtoupper($observaciones) ?></p>
