{{getLoggedinPatient() ? $row->opd_count : count($row->patient->opd)}}