@php
$physical_tests=\App\Models\InvoiceTestResult::where([
['invoice_test_id',$custom_test['id']],
])->orderBy('id','asc')->take(6)->skip(1)->get();
$microscopic_1_tests=\App\Models\InvoiceTestResult::where([
['invoice_test_id',$custom_test['id']],
])->orderBy('id','asc')->take(6)->skip(8)->get();
$microscopic_2_tests=\App\Models\InvoiceTestResult::where([
['invoice_test_id',$custom_test['id']],
])->orderBy('id','asc')->take(7)->skip(14)->get();
@endphp
|
|
{{$custom_test['test']['name']}}
|
|
Physical Examination
|
|
Test
|
Result
|
Reference range
|
Status
|
@foreach($physical_tests as $result)
|
{{$result['component']['name']}}
|
{{$result['result']}}
|
@include('pdf.partials.medical_report_reference_range',['result'=>$result])
|
{{$result['status']}}
|
@endforeach
|
Microscopic Examination
|
|
Test
|
Result
|
Ref.Range
|
Status
|
@foreach($microscopic_1_tests as $result)
|
{{$result['component']['name']}}
|
{{$result['result']}}
|
@include('pdf.partials.medical_report_reference_range',['result'=>$result])
|
{{$result['status']}}
|
@endforeach
|
|
Test
|
Result
|
Ref.Range
|
Status
|
@foreach($microscopic_2_tests as $result)
|
{{$result['component']['name']}}
|
{{$result['result']}}
|
@include('pdf.partials.medical_report_reference_range',['result'=>$result])
|
{{$result['status']}}
|
@endforeach
|
@if(!empty($custom_test['comment']))
@endif
@if($custom_test['allow_history'])
@include('pdf.partials.test_history',['test'=>$custom_test])
@endif