@include('pdf.normal_report.components.result_header', ['CategoryPackages' => $Package,'profile'=>$Profile,'templateReportName'=>$templateReportName ?? null]) {{-- Addendum / Amended revisions print before the result they correct, newest first, each on its own page. --}} @foreach(($Revisions ?? collect()) as $Revision)

{{ $templateReportName ?? $Package->getTemplateReportName() }} - {{ \App\Models\ENDUSERLABORDERPACKAGETEMPLATE::revisionLabel($Revision->REVISION_TYPE) }}

{!! $Revision->RESULT ?? '' !!}
@if(!empty($Revision->CRITICAL_COMMENT))

Critical Comment

{{ $Revision->CRITICAL_COMMENT }}

@endif
{{-- Each revision, and the original that follows them, starts a new page. --}}
@endforeach
{!! $LabCategoryPackageResults->RESULT??'' !!}
@if(!empty($Package->RESULT_COMMENT))
{!! $Package->RESULT_COMMENT !!}
@endif @if($opinions->count())

Doctor Opinions

@foreach($opinions as $opinion)
Second Opinion ({{$opinion->Doctor->USERNAME}}) :{{$opinion->OPINION_TEXT}}
doctor-sign
@endforeach @endif @if(!empty($LabCategoryPackageResults->CRITICAL_COMMENT))

Critical Comment

{{$LabCategoryPackageResults->CRITICAL_COMMENT}}

@endif

End of Report