ledger-transactions.blade.php 898 B

1234567891011121314151617181920212223242526
  1. <?php
  2. $ledgerTransactions = $order->ledgerTransactions;
  3. ?>
  4. @if(count($ledgerTransactions))
  5. <h6 class="fw-bold">Ledger Transactions</h6>
  6. <table class="table table-sm table-hover table-striped table-bordered mb-0">
  7. <thead class="bg-warning bg-opacity-10">
  8. <tr>
  9. <th>Date</th>
  10. <th>Plus/Minus</th>
  11. <th>Amount</th>
  12. <th>Memo</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. @foreach ($order->ledgerTransactions as $transaction)
  17. <tr>
  18. <td>{{ friendly_date($transaction->created_at) }}</td>
  19. <td>{{ $transaction->plus_or_minus }}</td>
  20. <td>${{ $transaction->amount }}</td>
  21. <td>{{ $transaction->system_memo }}</td>
  22. </tr>
  23. @endforeach
  24. </tbody>
  25. </table>
  26. @endif