{{-- Logo --}}

{!! __("THE UNITED REPUBLIC OF TANZANIA") !!}

{!! __("MINISTRY OF HEALTH") !!}


SmartTB

Logo

{!! __('P.O.BOX 743, Dodoma, Tanzania') !!}

{!! __('Phone: +255-26-2323267/5 | Cell phone: +255-26-2342000/5') !!}

{!! __('Email: ps@afya.go.tz') !!}



LABORATORY RESULTS

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

@foreach ($briefly as $Item) {{ strtoupper($Item['sample_test_code']) }}: {{ strtoupper($Item['sample_name']) }}; @endforeach