@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']}}
|
|
PHYSICAL EXAMINATIONE
|
|
Test
|
Result
|
Ref. Range
|
Status
|
@foreach($physical_tests as $result)
|
{{$result['component']['name']}}
|
{{$result['result']}}
|
@include('pdf.partials.medical_report_reference_range',['result'=>$result])
|
{{$result['status']}}
|
@endforeach
|
Chemical EXAMINATIONE
|
|
Test
|
Result
|
Ref. Range
|
Status
|
@foreach($chemical_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_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