<table class="table table-striped b-t b-light text-sm">
			<thead>
				<tr>
					<th><?=lang('date')?></th>
					<th><?=lang('invoice')?></th>
					<th><?=lang('payment_method')?> </th>
					<th><?=lang('amount')?> </th>
					<th><?=lang('trans_id')?></th>
				</tr> </thead> <tbody>
				<?php
								if (!empty($user_payments)) {
				foreach ($user_payments as $key => $p) { ?>
                                <?php $cur = $this->applib->client_currency($p->paid_by); ?>
				<tr>
					<td><?=strftime(config_item('date_format'), strtotime($p->created_date));?></td>
					<td><a class="text-success" href="<?=base_url()?>invoices/view/<?=$p->invoice?>"><?=$p->reference_no?></a></td>
					<td><?=$p->method_name;?> </td>
					<td><?=$this->applib->fo_format_currency($cur->code, $p->amount)?></td>
					<td><?=$p->trans_id;?></td>
				</tr>
				<?php  }} else{ ?>
				<tr>
					<td></td><td><?=lang('nothing_to_display')?></td><td></td><td></td><td></td>
				</tr>
				<?php } ?>
				
				
				
			</tbody>
		</table>