<?php

$items = isset($newContentData['items']) ? json_decode($newContentData['items']) : [];

foreach ($items as $item) {
    if($item->included) {
?>
    <div class="mb-2">
        <div class="">
            <b><?= $item->title ?></b>
            /
            <?= $item->icd ?>
            /
            <?= $item->coa ?>
        </div>
        <div class="ml-2">
            <div><span class="text-secondary">Prognosis:</span> <?= $item->prognosis ?></div>
            <div><span class="text-secondary">Goal:</span> <?= $item->goal ?></div>
            <div><span class="text-secondary">Plan:</span> <?= $item->plan ?></div>
        </div>
    </div>
<?php
    }
}
