@auth

{{-- Logo --}}

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

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


SmartTB

{!! __("TB PATIENTS") !!}

Logo

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

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

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


@php $user = Auth::user()->uuids; $mdID = App\Models\ClinicStaff::where(['user_id' => $user])->select('clinic_id')->firstOrFail()->toArray(); $clinicName = AuthenticatedClinic($mdID['clinic_id']); @endphp

TB PATIENTS' NAMES AND THEIR CONDITIONS

Clinic: {{ $clinicName['c_name'] }} Hospital
District: {{ $clinicName['d_name'].' ' }}
Region: {{ $clinicName['r_name'] }}

@foreach ((array)json_decode($patients, true) as $key => $Dataitems) @php $patient_result_info = displayPatientsResultByRegion($Dataitems['patient_id']); @endphp {{-- @dd($patient_result_info) --}} @php $doseInfo = getPatientDoseInfo($Dataitems['patient_id']); @endphp @if($doseInfo) @else @endif @endforeach
{!! __('No') !!} Patient No Sex
(M/F)
Age Village/Street Phone no TB information
TB Type Patient Type Status Dose started at
{{ $key+1 }} {{ $Dataitems['patient_number'] }} {{ $Dataitems['sex'] }} {{ $Dataitems['age'] }} {{ $Dataitems['village_or_street'] }} {{ '0'.$Dataitems['phone'] }} @foreach ($patient_result_info as $tb_result_info) @endforeach
{{ $tb_result_info['tb_name'] }}
@foreach ($patient_result_info as $tb_result_info) @endforeach
{{ $tb_result_info['patient_type'] }}
@foreach ($patient_result_info as $tb_result_info) @if($tb_result_info['result'] == true) @elseif($tb_result_info['result'] == false) @endif @endforeach
PositiveNegative
@foreach ($doseInfo as $tb_result_info) @endforeach
{{ \Carbon\Carbon::parse($tb_result_info['created_at'])->toDateString() }}
No Dose
@endauth