title: Dynamic Reports Generation in laravel
body: <p>I'm trying to develop a custom reports generation for my application, in which the user will dynamically input the model and its related model.And will select the related columns for which the report is needed and will have conditional statements for 'AND' and 'OR' conditions. </p>
  
  <p>The same functionality is done is vtiger ,Zoho CRM and sales force .</p>
  
  <p>My doubt is which is the efficient way of doing it.</p>
  
  <p>1.Either by creating tables for each modules and defining its column in database
  2.Or by providing a config file for all the set up 
  3.Or by creating a model class for all reports and defining its related model attributes and binding data using getter and setter(accessors and mutators).
  4.Or suggest me any other preferrable method or any packages with have minimal functionalities relating this</p>
  
  <p>I know is complex but please suggest me few hints from your point of view.</p>
  
  <p>Please find the below for the flow.
  <a href="https://i.stack.imgur.com/Kjr2t.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Kjr2t.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/5Y7Dx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5Y7Dx.png" alt="enter image description here"></a></p>