I am trying to develop my own generation of reports for my application, in which the user will dynamically enter the model and its associated model. And it will select the appropriate columns for which a report is required, and will have conditional statements for 'AND' and 'OR'.
The same functions are performed as vtiger, Zoho CRM and sales force.
My doubt is an effective way to do this.
1. Or by creating tables for each module and defining its column in the 2.Or database, providing a configuration file for all configured 3.Or, creating a model class for all reports and defining the model attributes associated with it and linking the data using the getter and setter (accessors and mutators). 4. Offer me any other preferred method or any packages with minimal functionality related to this.
I know this is difficult, but please offer me some tips from your point of view.
Please find below for flow.

php laravel reporting-services report crm
Gowtham selvaraj
source share