payment_modal.blade.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <form action="{{ route('affiliate_user.payment_store') }}" method="POST">
  2. @csrf
  3. <div class="modal-header">
  4. <h5 class="modal-title h6">{{ translate('Affiliate Payment')}}</h5>
  5. <button type="button" class="close" data-dismiss="modal">
  6. </button>
  7. </div>
  8. <div class="modal-body">
  9. <table class="table table-striped table-bordered" >
  10. <tbody>
  11. <tr>
  12. @if($affiliate_user->balance >= 0)
  13. <td>{{ translate('Due Amount') }}</td>
  14. <td><strong>{{ single_price($affiliate_user->balance) }}</strong></td>
  15. @endif
  16. </tr>
  17. <tr>
  18. <td>{{ translate('Paypal Email') }}</td>
  19. <td>{{ $affiliate_user->paypal_email }}</td>
  20. </tr>
  21. <tr>
  22. <td>{{ translate('Bank Information') }}</td>
  23. <td>{{ $affiliate_user->bank_information }}</td>
  24. </tr>
  25. </tbody>
  26. </table>
  27. @if ($affiliate_user->balance > 0)
  28. <input type="hidden" name="affiliate_user_id" value="{{ $affiliate_user->id }}">
  29. <div class="form-group row">
  30. <label class="col-sm-3 col-from-label" for="amount">{{ translate('Amount')}}</label>
  31. <div class="col-sm-9">
  32. <input type="number" min="0" step="0.01" name="amount" id="amount" value="{{ $affiliate_user->balance }}" class="form-control" required>
  33. </div>
  34. </div>
  35. <div class="form-group row">
  36. <label class="col-sm-3 col-from-label" for="payment_method">{{ translate('Payment Method')}}</label>
  37. <div class="col-sm-9">
  38. <select name="payment_method" id="payment_method" class="form-control aiz-selectpicker" required>
  39. <option value="">{{ translate('Select Payment Method')}}</option>
  40. <option value="Paypal">{{ translate('Paypal')}}</option>
  41. <option value="Bank">{{ translate('Bank')}}</option>
  42. </select>
  43. </div>
  44. </div>
  45. @endif
  46. </div>
  47. <div class="modal-footer">
  48. @if ($affiliate_user->balance > 0)
  49. <button class="btn btn-sm btn-primary" type="submit">{{ translate('Pay')}}</button>
  50. @endif
  51. <button type="button" class="btn btn-sm btn-light" data-dismiss="modal">{{translate('Cancel')}}</button>
  52. </div>
  53. </form>