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