{{-- resources/views/partials/international/method-selection.blade.php --}}
account_bal }} : {{ Auth::user()->btc_balance ?? 0 }}; if (this.amount > maxBalance) { this.amount = maxBalance; } }, previewTransfer() { if (this.amount > 0 && this.withdrawMethod !== '') { this.showPreview = true; } }, submitForm() { // Don't set isSubmitting, just show our custom modal if (typeof window.showProcessingModal === 'function') { window.showProcessingModal(); } }, // Handle beneficiary selection for international transfers handleBeneficiarySelection(beneficiary) { this.withdrawMethod = beneficiary.method_type || this.withdrawMethod; // Fill form based on method type switch (beneficiary.method_type) { case 'Wire Transfer': this.accountName = beneficiary.account_name || ''; this.accountNumber = beneficiary.account_number || ''; this.bankName = beneficiary.bank_name || ''; this.bankAddress = beneficiary.bank_address || ''; this.accountType = beneficiary.account_type || 'Online Banking'; this.country = beneficiary.country || ''; this.swiftCode = beneficiary.swift_code || ''; this.iban = beneficiary.iban || ''; break; case 'Cryptocurrency': this.cryptoCurrency = beneficiary.crypto_currency || 'BTC'; this.cryptoNetwork = beneficiary.crypto_network || 'Native'; this.walletAddress = beneficiary.wallet_address || ''; break; case 'PayPal': this.paypalEmail = beneficiary.paypal_email || ''; break; case 'Wise Transfer': this.wiseFullName = beneficiary.account_name || ''; this.wiseEmail = beneficiary.wise_email || ''; this.wiseCountry = beneficiary.country || ''; break; case 'Skrill': this.skrillEmail = beneficiary.skrill_email || ''; this.skrillFullName = beneficiary.account_name || ''; break; case 'Venmo': this.venmoUsername = beneficiary.venmo_username || ''; this.venmoPhone = beneficiary.venmo_phone || ''; break; case 'Zelle': this.zelleEmail = beneficiary.zelle_email || ''; this.zellePhone = beneficiary.zelle_phone || ''; this.zelleName = beneficiary.account_name || ''; break; case 'Cash App': this.cashAppTag = beneficiary.cashapp_tag || ''; this.cashAppFullName = beneficiary.account_name || ''; break; case 'Revolut': this.revolutFullName = beneficiary.account_name || ''; this.revolutEmail = beneficiary.revolut_email || ''; this.revolutPhone = beneficiary.venmo_phone || ''; break; case 'Alipay': this.alipayId = beneficiary.alipay_id || ''; this.alipayFullName = beneficiary.account_name || ''; break; case 'WeChat Pay': this.wechatId = beneficiary.wechat_id || ''; this.wechatName = beneficiary.account_name || ''; break; } this.description = 'Transfer to ' + beneficiary.name; this.changeMethod(); }, // Get current form data for saving as beneficiary getCurrentFormData() { const baseData = { method_type: this.withdrawMethod }; switch (this.withdrawMethod) { case 'Wire Transfer': return { ...baseData, account_name: this.accountName, account_number: this.accountNumber, bank_name: this.bankName, bank_address: this.bankAddress, account_type: this.accountType, country: this.country, swift_code: this.swiftCode, iban: this.iban }; case 'Cryptocurrency': return { ...baseData, crypto_currency: this.cryptoCurrency, crypto_network: this.cryptoNetwork, wallet_address: this.walletAddress }; case 'PayPal': return { ...baseData, paypal_email: this.paypalEmail }; case 'Wise Transfer': return { ...baseData, account_name: this.wiseFullName, wise_email: this.wiseEmail, country: this.wiseCountry }; case 'Skrill': return { ...baseData, skrill_email: this.skrillEmail, account_name: this.skrillFullName }; case 'Venmo': return { ...baseData, venmo_username: this.venmoUsername, venmo_phone: this.venmoPhone }; case 'Zelle': return { ...baseData, zelle_email: this.zelleEmail, zelle_phone: this.zellePhone, account_name: this.zelleName }; case 'Cash App': return { ...baseData, cashapp_tag: this.cashAppTag, account_name: this.cashAppFullName }; case 'Revolut': return { ...baseData, account_name: this.revolutFullName, revolut_email: this.revolutEmail, venmo_phone: this.revolutPhone }; case 'Alipay': return { ...baseData, alipay_id: this.alipayId, account_name: this.alipayFullName }; case 'WeChat Pay': return { ...baseData, wechat_id: this.wechatId, account_name: this.wechatName }; default: return baseData; } }, // Check if required fields are filled for the current method hasRequiredFieldsForMethod() { switch (this.withdrawMethod) { case 'Wire Transfer': return this.accountName && this.accountNumber && this.bankName && this.bankAddress; case 'Cryptocurrency': return this.cryptoCurrency && this.cryptoNetwork && this.walletAddress; case 'PayPal': return this.paypalEmail; case 'Wise Transfer': return this.wiseFullName && this.wiseEmail && this.wiseCountry; case 'Skrill': return this.skrillEmail && this.skrillFullName; case 'Venmo': return this.venmoUsername && this.venmoPhone; case 'Zelle': return this.zelleEmail && this.zellePhone && this.zelleName; case 'Cash App': return this.cashAppTag && this.cashAppFullName; case 'Revolut': return this.revolutFullName && this.revolutEmail && this.revolutPhone; case 'Alipay': return this.alipayId && this.alipayFullName; case 'WeChat Pay': return this.wechatId && this.wechatName; default: return false; } } }" x-init=" if (withdrawMethod === 'Cryptocurrency') { changeMethod(); setTimeout(() => { localStorage.removeItem('select_crypto'); }, 500); } " class="p-4 space-y-4" >
@include('partials._mobile_header', [ 'title' => 'International Transfer', 'showBackButton' => true, 'backUrl' => route('dashboard'), 'showNotifications' => true, 'showDarkMode' => true, 'financeUser' => Auth::user() ])
@include('partials.quick-transfer', ['transferType' => 'international'])

Select Transfer Method

Wire Transfer

Transfer funds directly to international bank accounts.

Cryptocurrency

Send funds to your cryptocurrency wallet.

PayPal

Transfer funds to your PayPal account.

Wise Transfer

Transfer with lower fees using Wise.

Cash App

Quick transfers to your Cash App account.

More Options

Zelle, Venmo, Revolut, and more.

{{-- Include "More Methods" and "Transfer Form" partials --}} @include('partials.international.more-methods') @include('partials.international.transfer-form')
{{-- Include security notice, modals, styles, and scripts --}} @include('partials.international.modals-and-scripts')