financial-transactions.blade.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. @extends('app.my-account.admin.orders.single')
  2. @section('details')
  3. <div class="my-4">
  4. <h4><b>Financial Transactions</b></h4>
  5. <div class="table-responsive">
  6. <table class="table table-sm table-hover table-striped table-bordered mb-0">
  7. <thead>
  8. <tr>
  9. <th>Date</th>
  10. <th>Order</th>
  11. <th>Payment Method</th>
  12. <th>Amount</th>
  13. <th>Charge or Refund</th>
  14. <th>Description</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. @foreach($transactions as $transaction)
  19. <tr>
  20. <td>{{$transaction->created_at}}</td>
  21. <td><a href="{{ route('admin.orders.view.dashboard', $transaction->storeOrder) }}">{{ $transaction->storeOrder->iid }}</a></td>
  22. <td><a href="{{ route('admin.payment-methods.view.dashboard', $transaction->paymentMethod) }}">{{ $transaction->paymentMethod->card_type }} ending in {{ $transaction->paymentMethod->cardLast4() }}</a></td>
  23. <td>{{$transaction->amount}}</td>
  24. <td>{{$transaction->charge_or_refund}}</td>
  25. <td>{{$transaction->description}}</td>
  26. </tr>
  27. @endforeach
  28. </tbody>
  29. </table>
  30. </div>
  31. </div>
  32. @endsection