@role('ls')

Testing information

Laboratory results
@foreach ((array)json_decode($dataSample, true) as $key => $items) @php $check_listInfo = getRequestCheckListInfo($items['id']); $sampleTaken = getSampleInfo($items['list_id']); @endphp @endforeach
# First Name Last Name Age Testing Information
TB Test Type Results TB Type Issue Date
{{ $key+1 }} {{ $items['Fname'] }} {{ $items['Lname'] }} {{ $items['age'] }} @foreach ($sampleTaken as $sampleTakenItem) @endforeach
{{ $sampleTakenItem['sample_name'] }}
@foreach ($sampleTaken as $sampleResultsItem) @if($sampleResultsItem['result'] == true) @else @endif @endforeach
{{ __('Postive') }} {{ __('Negative') }}
@foreach ($sampleTaken as $sampleResultsItem) @php $tb_observed = getTBTypeObserved($sampleResultsItem['TB_category_ID']); @endphp @if($tb_observed) @foreach ($tb_observed as $tb_type) @endforeach @endif @endforeach
{{ $tb_type['name'] }}
@foreach ($sampleTaken as $sampleResultsItem) @endforeach
{{ \Carbon\Carbon::parse($sampleResultsItem['dateIssue'])->format('d/m/Y') }}
@endrole @role('xt')

Testing Results

@if(count((array)json_decode($dataSample, true))> 0)
Testing result reports
@error('from') {{ $message }} @enderror
@error('to') {{ $message }} @enderror
{{-- Print --}}
@endif
@php $user = Auth::user()->uuids; $mdID = App\Models\ClinicStaff::where(['user_id' => $user])->select('clinic_id')->firstOrFail()->toArray(); @endphp @foreach ((array)json_decode($dataSample, true) as $key => $items) @if($mdID['clinic_id'] == $items['clinic_id']) @endif @endforeach
S/No First Name Last Name Age Testing Information
Test Type Tb Results TB TYPE HIV Issue Date
{{ $key+1 }} {{ $items['Fname'] }} {{ $items['Lname'] }} {{ $items['age'] }} @php $check_listInfo = getRequestCheckListInfo($items['id']); $sampleTaken = getSampleInfo($items['list_id']); @endphp @foreach ($sampleTaken as $itemFetched) @endforeach
{{ $itemFetched['sample_name'] }}
@foreach ($sampleTaken as $sampleResultsItem) @if($sampleResultsItem['result'] == true) @else @endif @endforeach
{{ __('Postive') }} {{ __('Negative') }}
@foreach ($sampleTaken as $sampleResultsItem) @endforeach
{{ $sampleResultsItem['tb_cate'] }}
@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'])->format('d M Y') }}
@endrole @role('ltc')

Testing Results

@if(count((array)json_decode($dataSample, true))> 0)
Testing result reports
@error('from') {{ $message }} @enderror
@error('to') {{ $message }} @enderror
{{-- Print --}}
@endif
@php $user = Auth::user()->uuids; $mdID = App\Models\ClinicStaff::where(['user_id' => $user])->select('clinic_id')->firstOrFail()->toArray(); @endphp @foreach ((array)json_decode($dataSample, true) as $key => $items) @if($mdID['clinic_id'] == $items['clinic_id']) @endif @endforeach
S/No First Name Last Name Age Testing Information
Test Type Tb Results TB TYPE HIV Issue Date
{{ $key+1 }} {{ $items['Fname'] }} {{ $items['Lname'] }} {{ $items['age'] }} @php $check_listInfo = getRequestCheckListInfo($items['id']); $sampleTaken = getSampleInfo($items['list_id']); @endphp @foreach ($sampleTaken as $itemFetched) @endforeach
{{ $itemFetched['sample_name'] }}
@foreach ($sampleTaken as $sampleResultsItem) @if($sampleResultsItem['result'] == true) @else @endif @endforeach
{{ __('Postive') }} {{ __('Negative') }}
@foreach ($sampleTaken as $sampleResultsItem) @endforeach
{{ $sampleResultsItem['tb_cate'] }}
@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'])->format('d M Y') }}
@endrole @include('layouts.inc.global_loader')