<?php

$count = isset($newContentData['count']) ? intval($newContentData['count']) : 0;

for ($i = 0; $i < $count; $i++) { ?>

    <div class="mb-3">
        <div class="">
            Status: <b><?= $newContentData['item_' . $i . '_status'] ?></b>
        </div>
        <div>
            UDI: <b><?= $newContentData['item_' . $i . '_udi'] ?></b>
        </div>
        <div class="text-secondary pb-2 mb-2">
            <b>Comments: </b><?= $newContentData['item_' . $i . '_comments'] ?>
        </div>
    </div>

<?php }
