LABORATORY RESULTS
S/No |
First Name |
Last Name |
Age |
TESTING INFORMATION |
TB Test Type |
TB Results |
TB TYPE |
HIV |
Date Issued |
@foreach ((array)json_decode($sampleResults, true) as $key => $items)
{{ $key+1 }} |
{{ $items['Fname'] }} |
{{ $items['Lname'] }} |
{{ $items['age'] }} |
@php
$check_listInfo = getRequestCheckListInfo($items['id']);
$sampleTaken = getSampleInfo($items['list_id']);
@endphp
@foreach ($sampleTaken as $sampleTakenItem)
{{ $sampleTakenItem['sample_test_code'] }}
|
@endforeach
|
@foreach ($sampleTaken as $sampleResultsItem)
@if($sampleResultsItem['result'] == true)
{{ __('Positive') }}
|
@else
{{ __('Negative') }}
|
@endif
@endforeach
|
@foreach ($sampleTaken as $sampleResultsItem)
@php
$tb_observed = getTBTypeObserved($sampleResultsItem['TB_category_ID']);
@endphp
@if($tb_observed)
@foreach ($tb_observed as $tb_type)
{{ $tb_type['sname'] }}
|
@endforeach
@else
------- |
@endif
@endforeach
|
@foreach ($sampleTaken as $sampleResultsItem)
@if ($sampleResultsItem['hiv_result'] == 1)
Positive |
@elseif($sampleResultsItem['hiv_result'] == 0)
Negative |
@elseif($sampleResultsItem['hiv_result'] == 2)
Not tested |
@endif
@endforeach
|
@foreach ($sampleTaken as $sampleResultsItem)
{{ \Carbon\Carbon::parse($sampleResultsItem['dateIssue'])->toDateString() }}
|
@endforeach
|
@endforeach
@php
$briefly = \App\Models\TBTestSamples::get()->toArray();
@endphp
@foreach ($briefly as $Item)
{{ strtoupper($Item['sample_test_code']) }}: {{ strtoupper($Item['sample_name']) }};
@endforeach