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
Patient No. | Action | |
---|---|---|
{{ $Dataitems['patient_number'] }} | @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))Click to assign dose | @elseif(in_array(0, $result))No Action | @endif