transactions.blade.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @extends('app.my-account.admin.users.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->card_last_four }}</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. <div class="mt-3">
  33. </div>
  34. @endsection