Separating clients in foreach with mpdf

0

My scenario is as follows, I generate a pdf file using the mpdf library and this pdf file is an interval query between client code and event date. Eg: code 0001 to 0004 and 0000-00-00 to 0000-00-00. It is generating the pdf with the result perfectly, however I need to separate the information of each client, because they are being displayed together, see the image and follow the code where I generate the pdf:

thecodeishere link

Thank you in advance

    
asked by anonymous 15.08.2018 / 18:42

2 answers

0

The report is correct. I think we should just place the foreach($reports as $r) product loop within the foreach($clients as $c) clients, and after this product loop perform a page break or space with $mpdf->AddPage(); , thus separating each client with its products. >     

16.08.2018 / 23:40
0

Resolved as follows:

link

Thanks @ C.Bohok

    
17.08.2018 / 16:08