aboutsummaryrefslogtreecommitdiff
path: root/include/offers-view.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 10:18:36 +0200
committerCamil Staps2016-08-01 10:18:36 +0200
commit2dc93d359e1badbeadc470bc2c53f6794594c868 (patch)
tree07cb5250404395f43bcad6ab01c4f83a98314109 /include/offers-view.php
parentRemoved duplicate code (diff)
Braintree status history
Diffstat (limited to 'include/offers-view.php')
-rw-r--r--include/offers-view.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/offers-view.php b/include/offers-view.php
index 323fc31..5dee452 100644
--- a/include/offers-view.php
+++ b/include/offers-view.php
@@ -126,9 +126,16 @@ $_offer = new Offer($_pdo, $_id);
$payments = [$payment];
foreach ($payments as $payment) {
echo "<tr>
- <td>{$payment->id}</td>
- <td>{$payment->braintree_id}</td>
- <td>{$payment->braintree_status}</td>
+ <td class='col-min-width'>{$payment->id}</td>
+ <td class='col-min-width'>{$payment->braintree_id}</td>
+ <td class='col-max-width'>
+ <a href='#payment-status-{$payment->id}' aria-expanded='false' aria-controls='#payment-status-{$payment->id}' data-toggle='collapse'>{$payment->braintree_status}</a>
+ <div class='collapse' id='payment-status-{$payment->id}'>";
+ foreach ($payment->getBraintreeStatusHistory() as $item) {
+ echo "{$item->timestamp->format('Y-m-d H:i')}: {$item->status}<br/>";
+ }
+ echo "</div>
+ </td>
<td class='col-min-width'>
<a title='Refresh' href='?id={$_offer->id}&refresh_payment={$payment->id}' class='btn btn-info btn-circle fa fa-refresh'></a>
</td>