customer-information-payment-methods.blade.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <div class="">
  2. <div class="d-flex align-items-center">
  3. <h6 class="fw-bold text-muted mb-0">Payment Methods</h6>
  4. <div class="ms-2">
  5. @include('app.my-account.admin.users.forms.payment-method-create')
  6. </div>
  7. </div>
  8. <div>
  9. <table class="table table-sm table-striped table-bordered table-hover">
  10. <thead>
  11. <tr>
  12. <th>Card</th>
  13. {{--<th>Actions</th>--}}
  14. </tr>
  15. </thead>
  16. <tbody>
  17. @foreach($user->paymentMethods as $paymentMethod)
  18. <tr>
  19. <td>{!! @$paymentMethod->displayName() !!}
  20. @if($user->default_payment_method_id == $paymentMethod->id)
  21. <span class="bg-success text-white rounded px-1">Default</span>
  22. @endif
  23. </td>
  24. {{--<td>
  25. <div class="d-flex align-items-center">
  26. @include('app.my-account.admin.users.forms.payment-method-remove')
  27. @if($user->default_payment_method_id != $paymentMethod->id)
  28. <span class="mx-1">|</span>
  29. @include('app.my-account.admin.users.forms.payment-method-make-default')
  30. @endif
  31. </div>
  32. </td>--}}
  33. </tr>
  34. @endforeach
  35. </tbody>
  36. </table>
  37. </div>
  38. </div>