transactions.blade.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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>Merchant</th>
  13. <th>Amount</th>
  14. <th>Charge or Refund</th>
  15. <th>Description</th>
  16. <th>Is stripe payment confirmed?</th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. @foreach($transactions as $transaction)
  21. <tr>
  22. <td>{{$transaction->created_at}}</td>
  23. <td>
  24. <a href="{{ route('admin.orders.view.dashboard', $transaction->storeOrder) }}">{{ $transaction->storeOrder->iid }}</a>
  25. </td>
  26. <td>
  27. <a href="{{ route('admin.payment-methods.view.dashboard', $transaction->paymentMethod) }}">{{ $transaction->paymentMethod->card_type }}
  28. ending in {{ $transaction->paymentMethod->card_last_four }}</a></td>
  29. <td>
  30. {{$transaction->paymentMethod->authorize_customer_profile_id? 'Authorize.net': 'Stripe'}}
  31. </td>
  32. <td>${{$transaction->amount}}</td>
  33. <td>{{$transaction->charge_or_refund}}</td>
  34. <td>{{$transaction->description}}</td>
  35. <td>
  36. @if($transaction->paymentMethod->stripe_id)
  37. @if($transaction->is_stripe_confirmation_done)
  38. Yes
  39. @else
  40. No
  41. @endif
  42. @else
  43. -
  44. @endif
  45. </td>
  46. </tr>
  47. @endforeach
  48. </tbody>
  49. </table>
  50. </div>
  51. </div>
  52. <div class="mt-3">
  53. </div>
  54. @endsection