@php $catMeta = app(\App\Http\Controllers\Backend\CasesController::class)->categoryPanelMeta($bill, $category); $noteHtml = \App\Support\RichTextSanitizer::cleanClinicalNotes($catMeta['note'] ?? ''); $looksLikeHtml = $noteHtml !== '' && str_contains($noteHtml, '<'); @endphp @if ($noteHtml !== '' || $catMeta['remarks'] !== '' || $catMeta['advice'] !== '')
 

Clinical Notes

@if ($noteHtml !== '') @if ($looksLikeHtml)
{!! $noteHtml !!}
@else

{{ $noteHtml }}

@endif @endif @if ($catMeta['remarks'] !== '')

Remarks: {{ $catMeta['remarks'] }}

@endif @if ($catMeta['advice'] !== '')

Advice: {{ $catMeta['advice'] }}

@endif @if (! empty($appendEndOfReport))
--- End of report ---
@endif
@endif