<table width="100%" class="printTbl">
        				<tr>
                            <td colspan="12"  style="overflow:hidden; padding-bottom:10px;">
                                <p style="text-align: right; margin:0; padding-right: 10px; font-weight: 500; line-height: 2; padding-bottom: 0px; padding-top: 0px; color: black; font-size: 25px;">
                                    <?php if(isset($rptTitle)) echo $rptTitle; ?>
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="12" class="container-fluid">
                            	<div class="col-lg-4 col-md-4 col-sm-4">
                                <?php
                                if (isset($company)) {
                                    foreach ($company as $rowC) {
                                        ?>

                                        <?php if(isset($pdf417)): ?>
                                            <div class="fr">
                                                <?php 
                                                    echo $pdf417;
                                                ?>
                                            </div>
                                        <?php endif; ?>
                                        <p style="text-align:center; font-size:16px; width:355px;margin:0 auto;"> 
                                            <span style=" font-weight:800;"><?php echo $rowC->companyName; ?></span> <span style="font-size:10px;"><?php echo "(".$rowC->companyNo.")";?></span><br />
                                            <span style="font-size:10px;"><?php echo "GST Registration No : ".$rowC->gstRegisteredNo; ?></span><br />
                                        </p>
                                        <p style="width: 355px; text-align:center; font-size:10px; line-height:1.4; padding:0 0 5px; margin:0 auto; ">
                                            
                                            <?php if(!empty($rowC->line1)): ?><span><?php echo $rowC->line1; ?></span><br /><?php endif; ?>
                                            <?php if(!empty($rowC->line2) || !empty($rowC->line3)): ?><span><?php echo $rowC->line2.", ".$rowC->line3; ?></span><br /><?php endif; ?>
                                            <?php if(!empty($rowC->companyPostCode) || !empty($rowC->city)): ?><span><?php echo $rowC->companyPostCode . '  ' . $rowC->city; ?> </span><br /><?php endif; ?>
                                            <?php if(!empty($rowC->fldname) || !empty($rowC->fldcountry)): ?><span><?php echo $rowC->fldname . '  ' . $rowC->fldcountry; ?> </span><br /><?php endif; ?>
                                            <?php if(!empty($rowC->phoneNo) || !empty($rowC->faxNo)): ?><span><?php echo 'Phone : ' . $rowC->phoneNo . '  Fax : ' . $rowC->faxNo; ?> </span><?php endif; ?>
                                        </p>
                                    <?php }
                                }
                                ?>
                                </div>
                                <div class="col-lg-4 col-md-4 col-sm-4">
                                </div>

                            </td>
                        </tr>
                        <?php if(isset($leftContentHeader) || isset($leftContent) || isset($rightContentHeader) || isset($rightContent)): ?>
                        <tr>
                            <td>
                                <?php
                                if (isset($leftContentHeader)){
                                    echo "<p class='modPrint' style='padding-left:10px; margin:0; font-size:11px; '>"
                                    . "<strong>".$leftContentHeader."</strong></p>";
                                }
                                 
                                 if (isset($leftContent)){
                                   echo '<p style="padding-left:10px; margin:0; line-height:1.4;">';
                                    foreach ($leftContent as $value) {
                                         echo $value != ''?"<span>".$value."</span><br />":'';
                                     }
                                      if (isset($sale_invoice_date)){
                                   echo '<div class="div_paid modPrint" style="padding-left: 10px; line-height: 1.4; position: relative; width: 100px; height: 0px; float: right; margin-top: -80px; margin-right: 30%;">';
                                        echo '<div class="paid_paid">PAID</div><div class="paid_date">'.$sale_invoice_date.'</div>';
                                  echo '</div>';
                                 }
                                  echo '</p>';
                                 }
                                 
                                 
                                
                                ?>
                                
                            </td>
                                
                            <td valign="top">
                                <?php if(isset($rightContentHeader) || isset($rightContent)): ?>
                                <div style="line-height:1.4; text-align:left; float:right">
                                    <?php
                                        if (isset($rightContentHeader)){
                                        	echo "<p class='modPrint' style='padding-right:10px; margin:0; font-size:11px; '>"
                                        			. "<strong>".$rightContentHeader."</strong></p>";
                                        } 
                                        if (isset($rightContent)){
                                             foreach ($rightContent as $value) {
                                                echo $value != ''?"<span>".$value."</span><br />":'';
                                            }
                                        }
                                    ?>
                                </div>
                                <?php endif; ?>
                              </td>
                        </tr>
                        <?php endif; ?>
    </table>
    <br />
    <table id="oTable" class="printTbl" width="98%" align="center">
    
    	<thead>
                      <tr>
                        <th class=''><?php echo $this->lang->line('loan/month'); ?></th>
                        <th class='text-right'><?php echo $this->lang->line('balanceLoan'); ?></th>
                        <th class='text-right'><?php echo $this->lang->line('openingBalance'); ?></th>
                        <th class='text-right'><?php echo $this->lang->line('newLoan'); ?></th>
                        <th class=''><?php echo $this->lang->line('jan'); ?></th>
                        <th class=''><?php echo $this->lang->line('feb'); ?></th>
                        <th class=''><?php echo $this->lang->line('mar'); ?></th>
                        <th class=''><?php echo $this->lang->line('apr'); ?></th>
                        <th class=''><?php echo $this->lang->line('may'); ?></th>
                        <th class=''><?php echo $this->lang->line('jun'); ?></th>
                        <th class=''><?php echo $this->lang->line('jul'); ?></th>
                        <th class=''><?php echo $this->lang->line('aug'); ?></th>
                        <th class=''><?php echo $this->lang->line('sep'); ?></th>
                        <th class=''><?php echo $this->lang->line('oct'); ?></th>
                        <th class=''><?php echo $this->lang->line('nov'); ?></th>
                        <th class=''><?php echo $this->lang->line('dec'); ?></th>
                        <th class='text-right'><?php echo $this->lang->line('lastPayment'); ?></th>
                        <th class='text-right'><?php echo $this->lang->line('lastPaymentAmount'); ?></th>

                      </tr>
                    </thead>
                    <tbody>
                        <?php 
                        if(!empty($loans)):
                          $i = 1;
                          foreach($loans as $row):
                        ?>
                        <tr>
                            <th class=''><?php echo $row->acctName; ?></th>
                            <th class='text-right'><?php echo number_format($row->balanceLoan,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->openingBalanceCr,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->newloan,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->january,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->february,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->march,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->april,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->may,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->june,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->july,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->august,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->september,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->october,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->november,2); ?></th>
                            <th class='text-right'><?php echo number_format($row->december,2); ?></th>
                            <th class='text-right'><?php echo (!empty($row->lastPaymentDate))?date("d-m-Y",strtotime($row->lastPaymentDate)):''; ?></th>
                            <th class='text-right'><?php echo number_format($row->lastPaymentAmount,2); ?></th>
                        </tr>
                        <?php
                          endforeach;
                        endif;
                        ?>
                        <tr>
                        	<td align="left" colspan="2" class="no-print"><br />
                            	<button title="Print" class="btn-icon btn-success-form btn-mini Print" onclick="do_print()" type="button" name="Print"><span class="glyphicon glyphicon-print"></span></button>
                                <button title="Download" class="btn-icon btn-warning-form btn-mini EXCEL" onclick="downloadExcel()" type="button" name="EXCEL"><span class="glyphicon glyphicon-download"></span></button>
                                <button type='button' title="Back" class="btn-icon btn-danger-form btn-mini Close" onclick="close_window()" type="button" name="Close"><span class="glyphicon glyphicon-off"></span></button>        
                            </td>
                        </tr>
                        <tr>
                        	<td>
                            	<br />
                            </td>
                        </tr>
                    </tbody>                         
                            
    </table>