Idoreports installation error: HostSlaReport does not exist

I have attempted to install idoreports but there is an error in icingaweb2: Erraneous hook implementation, class “Icinga\Module\Idoreports\HostSlaReport” does not exist. I have noted that error is reported when the run.php file is present in the idereports folder. If its removed and the module disabled then enabled there is no error. Please assist.

root@reports:/usr/share/icingaweb2/modules/idoreports# ls
doc                library      README.md  ServiceSlaReport.php
HostSlaReport.php  LICENSE      run.php    tmp
IdoReport.php      module.info  schema
root@reports:/usr/share/icingaweb2/modules/idoreports#

Issue has been solved. First Imade sure the reporting module pointed to the right data source, reporting. Then tried copying the report files. Not sure exactly but I copied the reports php files into the reporting module folder.Then also copied them reports into the idoreports module folder. They were in the library/Idoreports subfolder.

root@reports:/usr/share/icingaweb2/modules/idoreports# ls -la
total 72
drwxr-xr-x  6 root root  4096 Jun 16 08:44 .
drwxr-xr-x 15 root root  4096 Jun 12 08:47 ..
drwxr-xr-x  3 root root  4096 Jun 12 08:23 doc
-rw-r--r--  1 root root  2815 Jun 12 08:53 HostSlaReport.php
-rw-r--r--  1 root root  7386 Jun 11 08:13 IdoReport.php
drwxr-xr-x  3 root root  4096 Jun 16 08:44 library
-rw-r--r--  1 root root 18091 Jun 16 08:44 LICENSE
-rw-r--r--  1 root root    83 Jun 16 08:44 module.info
-rw-r--r--  1 root root   285 Jun 16 08:44 README.md
-rw-r--r--  1 root root   379 Jun 16 08:44 run.php
drwxr-xr-x  4 root root  4096 Jun 12 08:15 schema
-rw-r--r--  1 root root  2915 Jun 11 08:13 ServiceSlaReport.php
drwxr-xr-x  2 root root  4096 Jun 12 08:48 tmp

Below is the reporting folder I copied the modules into:

root@reports:/usr/share/icingaweb2/modules/reporting/library/Reporting/Reports# ls -la
total 28
drwxr-xr-x 2 root root 4096 Jun 12 16:06 .
drwxr-xr-x 8 root root 4096 Jun  5 14:47 ..
-rw-r--r-- 1 root root 2815 Jun 12 15:48 HostSlaReport.php
-rw-r--r-- 1 root root 7386 Jun 12 15:55 IdoReport.php
-rw-r--r-- 1 root root 2915 Jun 12 15:55 ServiceSlaReport.php
-rw-r--r-- 1 root root 1023 Jun  5 14:47 SystemReport.php

Now the reports are available: