<?php
    $i = 1;
    foreach($po_per_product as $value){ 
?>
            <tr>
                <td class="text-center"><?= $i; ?></td>
                <td><?= $value['nama_product']; ?></td>
                <td class="text-center align-middle">
                    <div class="progress mb-0" style="height:7px">
                        <div class="progress-bar mb-0" role="progressbar" style="width: <?= $value['presentase'] ?>%" aria-valuenow="<?= $value['presentase'] ?>" aria-valuemin="0" aria-valuemax="100"></div>
                    </div>
                </td>
                <td class="text-center pr-0 pl-0">
                    <span class="badge badge-primary"><?= $value['presentase'] ?> %</span>
                </td>
            </tr>
<?php
        $i++;
    } 
?>