Patients

@php $patients = []; try { $user = Auth::user()->uuids; $mdID = \App\Models\ClinicStaff::where(['user_id' => $user])->select('clinic_id')->firstOrFail()->toArray(); $patients = getPatientByClinic($mdID['clinic_id']); } catch (\Throwable $th) { //throw $th; echo ''.$th->getMessage().''; } @endphp
@if($patients) @foreach ($patients as $key => $Dataitems ) @php $patient_result = displayPatientResultInformationsByClinic($Dataitems['patient_id']); $result = []; @endphp @foreach ($patient_result as $tb_result_info) @php $result[] = $tb_result_info['result'];@endphp @endforeach @if(in_array(1, $result)) @elseif(in_array(0, $result)) @endif @endforeach @endif
Patient No. Action
{{ $Dataitems['patient_number'] }} Click to assign dose No Action