%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> </head> <body> <div class="container-fluid"> <table class="table table-bordered"> <thead> <tr> <th>Months </th> <th>Total</th> <?php foreach($cols as $k=>$r){ ?> <th><?= $r ?></th> <?php } ?> </tr> </thead> <tbody> <?php foreach($records as $k=>$r){ ?> <tr> <td><?= $r['month_year'] ?></td> <td><?= $r['total'] ?>/ <b><?= $r['paid'] ?></b></td> <?php $ind=0; foreach($cols as $t_ind=>$col){ ?> <td> <?php if(is_null($r['data'][$ind]['month_year'])){ $ind = $ind +1; } ?> <?php if($r['data'][$ind]['month_year'] == $col){ ?> <?php echo $r['data'][$ind]['total_record']; ?> <?php $ind++; ?> <?php }else{ echo "0"; } ?> </td> <?php } ?> </tr> <?php } ?> </tbody> </table> </div> </body> </html>