<div class="blocktitle">Transactions Hitory Resigter</div>
<div class="table-responsive">
	<table cellpadding="0" cellspacing="0" class="table table-bordered table-strped">
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('courseId'); ?></th>
			<th><?php echo $this->Paginator->sort('courseTitle'); ?></th>
			<th><?php echo $this->Paginator->sort('courseName'); ?></th>
			<th><?php echo $this->Paginator->sort('startDate'); ?></th>
			<th><?php echo $this->Paginator->sort('endDate'); ?></th>
			<th><?php echo $this->Paginator->sort('totalUsd'); ?></th>
			<th><?php echo $this->Paginator->sort('totalFee'); ?></th>
			<th><?php echo $this->Paginator->sort('Transaction ID'); ?></th>
			<th><?php echo $this->Paginator->sort('Email'); ?></th>
			<th><?php echo $this->Paginator->sort('status'); ?></th>
			
	</tr>
	<?php foreach ($transactions as $transaction): ?>
	<tr>
		<td><?php echo h($transaction['Transaction']['id']); ?>&nbsp;</td>
		<td><?php echo h($transaction['Transaction']['courseId']); ?>&nbsp;</td>
		<td><?php echo h($transaction['Transaction']['courseTitle']); ?>&nbsp;</td>
		<td><?php echo h($transaction['Transaction']['courseName']); ?>&nbsp;</td>
		<td><?php echo h($transaction['Transaction']['startDate']); ?>&nbsp;</td>
		<td><?php echo h($transaction['Transaction']['endDate']); ?>&nbsp;</td>
		<td><?php echo h($transaction['Transaction']['totalUsd']); ?>&nbsp;</td>
		<td><?php echo h($transaction['Transaction']['totalFee']); ?>&nbsp;</td>
		<td><?php echo h($transaction['Transaction']['txn_id']); ?>&nbsp;</td>
		<td><?php echo h($transaction['Transaction']['payer_email']); ?>&nbsp;</td>
		<td><?php echo h($transaction['Transaction']['paymentStatus']); ?>&nbsp;</td>
		
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
