@php $physical_tests=\App\Models\InvoiceTestResult::where([ ['invoice_test_id',$custom_test['id']], ])->orderBy('id','asc')->take(3)->skip(1)->get(); $chemical_tests=\App\Models\InvoiceTestResult::where([ ['invoice_test_id',$custom_test['id']], ])->orderBy('id','asc')->take(8)->skip(5)->get(); $microscopic_tests=\App\Models\InvoiceTestResult::where([ ['invoice_test_id',$custom_test['id']], ])->orderBy('id','asc')->take(8)->skip(14)->get(); @endphp
{{$custom_test['test']['name']}}
@foreach($physical_tests as $result) @endforeach
PHYSICAL EXAMINATIONE
Test Result Ref. Range Status
{{$result['component']['name']}} {{$result['result']}} @include('pdf.partials.medical_report_reference_range',['result'=>$result]) {{$result['status']}}
@foreach($chemical_tests as $result) @endforeach
Chemical EXAMINATIONE
Test Result Ref. Range Status
{{$result['component']['name']}} {{$result['result']}} @include('pdf.partials.medical_report_reference_range',['result'=>$result]) {{$result['status']}}
@foreach($microscopic_tests as $result) @endforeach
MICROSCOPIC EXAMINATION
Test Result Ref. Range Status
{{$result['component']['name']}} {{$result['result']}} @include('pdf.partials.medical_report_reference_range',['result'=>$result]) {{$result['status']}}
@if(!empty($custom_test['comment']))
Comment : {!! str_replace("\n", '
', $custom_test['comment']) !!}
@endif @if($custom_test['allow_history']) @include('pdf.partials.test_history',['test'=>$custom_test]) @endif