<?php

use App\Models\Page;

$page = Page::where('note_id', $note->id)->where('category', 'CHIEF_COMPLAINT')->first();

$contentData = [
    'value'=>''
];
if($page && $page->data){
    $contentData = json_decode($page->data, true);
}

?>

<?php if(!$page): ?>
    <div>No CC data</div>
<?php else: ?>
    <div class="d-flex">
        <div><?php echo $contentData['value'] ?></div>
    </div>
<?php endif; ?>

