<?php echo $head; ?>
<h1 class="heading1">
  <span class="maintext"><i class="fa fa-money"></i> <?php echo $heading_title; ?></span>
  <span class="subtext"></span>
</h1>

<div class="contentpanel">
	<table class="table table-striped transaction-table">
	<thead>
	<tr>
		<th><?php echo $text_transaction_id; ?></th>
		<th><?php echo $text_date_added; ?></th>
		<th><?php echo $text_transaction_type; ?></th>
		<th><?php echo $text_debit; ?></th>
		<th><?php echo $text_credit; ?></th>
		<th ><?php echo $text_transaction_description; ?></th>
	</tr>
	</thead>
	<?php if( sizeof((array)$transactions) ) { foreach ($transactions as $trn) { ?>
		<tr>
			<td><?php echo $trn['customer_transaction_id']; ?></td>
			<td><?php echo $trn['date_added']; ?></td>
			<td><?php echo $trn['transaction_type']; ?></td>
			<td><?php echo $trn['debit']; ?></td>
			<td><?php echo $trn['credit']; ?></td>
			<td class="col-md-4"><?php echo $trn['description']; ?></td>
		</tr>
	<?php } } ?>
	</table>

	<?php
	if ( sizeof((array)$transactions) <=0 ) {
	?>
		<div><?php echo $text_error; ?></div>
	<?php	
	}
	?>

	<div class="pagination"><?php echo $pagination_bootstrap; ?></div>
	
</div>

<div class="container-fluid cart_total mt10">

	<div class="col-md-6 mt20 pull-left">
	    <a href="<?php echo $continue; ?>" class="btn btn-default mr10" title="<?php echo $button_back; ?>">
	    	<i class="fa fa-arrow-left"></i>
	    	<?php echo $button_back ?>
	    </a>
	</div>

	<div class="col-md-6 cart-info totals pull-right">
	    <table class="table table-striped table-bordered">
	    	<tr>
	    		<td>
	    			<span class="extra bold totalamout"><?php echo $text_total; ?></span>
	    		</td>
	    		<td>
	    			<span class="bold totalamout"><?php echo $balance_amount; ?></span>
	    		</td>
	    	</tr>
	    </table>
	</div>
</div>

<?php echo $footer; ?>