<style>
.lang-tamil, .lang-tamil input {
    font-family: amudham !important;
    font-weight: bolder !important;
    letter-spacing: 1px;
}
</style>
<aside class="right-side">
    <!-- Main content -->
    <?php $general_data = get_general_setting();?>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <!-- /.box -->
                
                <div class="box box-primary">
                    <div class="box-body table-responsive" style="clear:both;" id="print_data_container">
                        <div>
                        <table border="0" width="1000px" style="border-collapse:collapse; font-size:14px; font-family:Verdana, Geneva, sans-serif;">
                                <tr>
                                    <td>
                            <table border="0" width="100%" style="border-collapse:collapse;">
                                <tr>
                                    <td colspan="5" align="center" style="font-size:16px; font-weight:bold; padding:20px 0px 8px 0px;">SREE RAMAR TEMPLE</td>
                                </tr>
                                <tr>
                                    <td colspan="5" align="center" width="49%" style="font-size:13px; font-weight:bold;">Date : <?php echo date('d-m-Y',strtotime($start_date));?> to <?php echo date('d-m-Y',strtotime($end_date));?></td>
                                </tr>
                            
                            </table>
                           
                            <table width="100%" border="1" cellpadding="3" cellspacing="0" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:14px; width: 100%; border-collapse:collapse; margin-top:5px;" class="filterTable" id="filterTable">
                                <thead>
                                    <tr>
                                        <th style="padding:2px; width:60px;">S.No</th>
                                        <th align="left" style="padding:2px;">Description</th>
                                        <th align="right" style="padding:2px; width:200px;">Amount</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php 
									$total_amt 	= 0;
                                    $start_date = (!empty($start_date)) ? $start_date : date('d-m-Y');
                                    $add_days 	= 30;
                                    $d 			= date('d-m-Y',strtotime($start_date) + (24*3600*$add_days));
                                    $end_date 	= (!empty($end_date)) ? $end_date : date('d-m-Y');
                                    if(count($results) > 0) { 
									 	$i = 0;
                                        foreach( $results as $key => $row) :
                                            $total_amt += $row['amount'];
                                        ?>
                                            <tr>
                                                <td align="center" style="padding:2px;"><?php echo ++$i;?></td>
                                                <td style="padding:2px;"><?php echo $row['service_name']; ?></td>
                                                <td align="right" style="padding:2px;"><?php echo number_format($row['amount'],2,'.','');?></td>
                                            </tr>
                                        <?php endforeach; ?>                                        	
                                    <?php } else {?>
                                        <tr>
                                            <td colspan="3" style="color: #0B6CCB;"><center>No Records Found!</center></td>
                                        </tr>
                                    <?php } ?>
                                </tbody>
                                
                            </table>
                            <?php if(count($results) > 0) { ?>
                                <!--<tfoot style="border-left: 1px solid #fff; border-right: 1px solid #fff;  border-bottom: 1px solid #fff;">
                                	<tr>
                                        <td colspan="3" align="right" style="border:none; padding: 0px;">
                                        
                                        </td>
                                        
                                    </tr>
                                </tfoot>-->
                                <table width="100%" border="0" cellspacing="0" style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:14px; width: 100%; border-collapse:collapse;">
                                    <tr>
                                    <td width="40%">
                                    </td>
                                    <td width="" style="border-bottom:1px solid grey; border-left:1px solid grey; text-align:right; padding: 5px; font-size: 15px; font-weight:bold;">
                                        Total
                                        </td>
                                        <td style="width:194px; border-bottom:1px solid grey; border-left:1px solid grey; border-right:1px solid grey; text-align:right; padding: 5px; font-size: 15px; font-weight:bold;">
                                        <?php echo number_format($total_amt,2,'.','');?>
                                        </td>
                                        </tr>
                                        </table>
                                <?php } ?>
                            </td>
                            </tr>
                            </table>
                           <div style="clear:both;"></div>
                        </div>
                    </div>
                
                    
                </div><!-- /.box -->
            </div>
        </div>
    </section><!-- /.content -->
</aside><!-- /.right-side -->
<!-- ./wrapper -->