|
@@ -26,7 +26,17 @@
|
|
|
<td><a href="{{ route('admin.orders.view.dashboard', $order) }}">{{ $order->orderNumber() }}</a>
|
|
|
</td>
|
|
|
<td>{{ friendly_date($order->created_at) }}</td>
|
|
|
- <td>{{ displayAmount('$', $order->order_total) }}</td>
|
|
|
+ <td>
|
|
|
+ <?php
|
|
|
+ $amountFromClientBalance = $order->amountDeductedFromAccountBalance();
|
|
|
+ ?>
|
|
|
+ {{ displayAmount('$', $order->order_total) }}
|
|
|
+ @if($amountFromClientBalance)
|
|
|
+ <div>
|
|
|
+ <span><i class="fas fa-info-circle"></i> Deduction from client balance: <b>{{ displayAmount('$', $amountFromClientBalance) }}</b></span>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
<td>
|
|
|
@include('app.my-account.admin.orders.partials.order-tests-summary')
|
|
|
</td>
|
|
@@ -35,42 +45,8 @@
|
|
|
@include('app.my-account.admin.orders.forms.create-charge')
|
|
|
</div>
|
|
|
<div>
|
|
|
- <table class="table table-sm table-hover table-striped table-bordered mb-0">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>Date</th>
|
|
|
- <th>Charge/Refund</th>
|
|
|
- <th>Amount</th>
|
|
|
- <th>Payment Method</th>
|
|
|
- <th></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- @foreach ($order->financialTransactions as $transaction)
|
|
|
- <tr>
|
|
|
- <td>{{ friendly_date($transaction->created_at) }}</td>
|
|
|
- <td>{{ $transaction->charge_or_refund }}
|
|
|
- @if($transaction->requires_stripe_confirmation)
|
|
|
- @if($transaction->is_stripe_confirmation_done)
|
|
|
- <span class="text-success">Completed</span>
|
|
|
- @else
|
|
|
- <span class="text-danger">Pending</span>
|
|
|
- @endif
|
|
|
- @else
|
|
|
- <span class="text-success">Completed</span>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- <td>${{ $transaction->amount }}</td>
|
|
|
- <td>{!! $transaction->paymentMethod->displayName() !!}</td>
|
|
|
- <td>
|
|
|
- @if ($transaction->charge_or_refund == 'CHARGE')
|
|
|
- @include('app.my-account.admin.orders.forms.create-refund')
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ @include('app.my-account.admin.orders.partials.financial-transactions')
|
|
|
+ @include('app.my-account.admin.orders.partials.ledger-transactions')
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|