pp_express_transaction.tpl
2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<table class="table table-striped table-bordered">
<thead>
<tr>
<td class="text-left"><?php echo $column_transaction; ?></td>
<td class="text-left"><?php echo $column_amount; ?></td>
<td class="text-left"><?php echo $column_type; ?></td>
<td class="text-left"><?php echo $column_status; ?></td>
<td class="text-left"><?php echo $column_pending_reason; ?></td>
<td class="text-left"><?php echo $column_date_added; ?></td>
<td class="text-left"><?php echo $column_action; ?></td>
</tr>
</thead>
<tbody>
<?php if ($transactions) { ?>
<?php foreach($transactions as $transaction) { ?>
<tr>
<td class="text-left"><?php echo $transaction['transaction_id']; ?></td>
<td class="text-left"><?php echo $transaction['amount']; ?></td>
<td class="text-left"><?php echo $transaction['payment_type']; ?></td>
<td class="text-left"><?php echo $transaction['payment_status']; ?></td>
<td class="text-left"><?php echo $transaction['pending_reason']; ?></td>
<td class="text-left"><?php echo $transaction['date_added']; ?></td>
<td class="text-left">
<?php if ($transaction['transaction_id']) { ?>
<a href="<?php echo $transaction['view']; ?>" data-toggle="tooltip" title="<?php echo $button_view; ?>" class="btn btn-info"><i class="fa fa-eye"></i></a>
<?php if ($transaction['payment_type'] == 'instant' && ($transaction['payment_status'] == 'Completed' || $transaction['payment_status'] == 'Partially-Refunded')) { ?>
<a href="<?php echo $transaction['refund']; ?>" data-toggle="tooltip" title="<?php echo $button_refund; ?>" class="btn btn-danger"><i class="fa fa-reply"></i></a>
<?php } ?>
<?php } else { ?>
<button type="button" value="<?php echo $transaction['resend']; ?>" data-toggle="tooltip" title="<?php echo $button_resend; ?>" class="btn btn-info"><i class="fa fa-refresh"></i></button>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php } else { ?>
<tr>
<td class="text-center" colspan="7"><?php echo $text_no_results; ?></td>
</tr>
<?php } ?>
</tbody>
</table>