@php $patients = []; try { $user = Auth::user()->uuids; $mdID = \App\Models\ClinicStaff::where(['user_id' => $user])->select('clinic_id')->firstOrFail()->toArray(); $patients = getPatientCheckRequest($mdID['clinic_id']); } catch (\Throwable $th) { //throw $th; echo ''.$th->getMessage().''; } @endphp @if($patients) {{ count($patients) }} @else {{ __(0) }} @endif TB Checks