<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

<div class="box">
    <div class="box-header">
        <div class="box-header">
        <h2 class="blue"><i class="fa-fw fa fa-plus"></i><?= lang('Account_Statement') ?></h2>
       <button type="button" class="btn btn-xs btn-default no-print pull-right" style="margin-right:15px;margin-top: 5px;" onclick="window.print();">
			<i class="fa fa-print"></i> <?= lang('print'); ?>
        </button>
    </div>
        
    </div>
    <div class="box-content">
        <div class="row">
            <div class="col-lg-12">
                <!--<p class="introtext"><?= lang('list_results'); ?></p>-->

                <div class="table-responsive">
                    <table class="table table-bordered table-hover table-striped" id="table_export">
                        <thead>
                        <tr class="primary">
                            <!--<th style="min-width:30px; width: 30px; text-align: center;">
                                <input class="checkbox checkth" type="checkbox" name="check"/>
                            </th>-->
                            <th><?= lang("id") ?></th>
                            <th><?= lang("date") ?></th>
                            <th><?= lang("Account_No") ?></th>
                            <th><?= lang("Type") ?></th>
                            <th><?= lang("balance") ?></th>
                            <th><?= lang("Note") ?></th>
                            
                           
                        </tr>
                        </thead>
                        <tbody>
						<?php  $count = 1; $inc = 0;
						if($account != '' ){?>
						<?php foreach($account as $row):?>
                        <tr>
							<!--<th style="min-width:30px; width: 30px; text-align: center;">
                                <input class="checkbox checkft" type="checkbox" name="check"/>
                            </th>-->
							<td><?php echo $count++; ?></td>
							<td><?=$row->date; ?></td>
							<td><?=$row->account; ?></td>
							<td><?=$row->type; ?></td> 
							<?php $inc+= $row->amount;?>
							<td><?=$row->amount; ?></td> 
							<td><?=$row->description;?></td> 
							
							 
						   
						   
                        </tr>
						<?php endforeach;
						}
						?>
						
                       
                        </tbody>

                        <!--<tfoot class="dtFilter">
                        <tr class="active">
                          
                            <th></th>
                            <th></th>
                            <th></th>
                            <th></th>
                            <th><?=$inc; ?></th>
                            <th></th>
                            
                            
                            
                        </tr>
                        </tfoot>-->
                    </table>
                     
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">

	jQuery(document).ready(function($)
	{
		

		var datatable = $("#table_export").dataTable();
		
		$(".dataTables_wrapper select").select2({
			minimumResultsForSearch: -1
		});
	});
		
</script>
