<?php
if ($_POST['identrada'] <> 'null') {
    $identrada = $_POST['identrada'];
    require '../../conexion.php';
    $det = consultas::get_datos("SELECT * from v_servicios_ordent_detalle where id_ordent = $identrada;");
    if(!empty($det)){
    ?>
    <div class="col-col-12 col-sm-12 col-md-12">
        <table class="table">
            <tr>
                <th colspan="3" class="text-center">DETALLES DE ORDEN DE TRABAJO</th>
            </tr>
            <tr>
                <th class="text-left">Descripción</th>
                <th class="text-center">Cantidad</th>
                <th class="text-center">Precio</th>
                <th class="text-center">Subtotal</th>
            </tr>
    <?php foreach ($det as $d) { ?>
                <tr>
                    <td class="text-left"><?= $d['art_descri']; ?></td>
                    <td class="text-center"><?= $d['cantidad']; ?></td>
                    <td class="text-center"><?= $d['precio_unit']; ?></td>
                    <td class="text-center"><?= $d['subtotal']; ?></td>

                </tr>
    <?php } ?>

        </table>
    </div>
<?php }
}
?>