@php use App\Enums\PayoutMethod; @endphp
@csrf @if ($method !== 'POST') @method($method) @endif {{-- Section 1: Who --}}
1
{{ __('Who are they?') }}
{{ __('Your recipient\'s legal name as on their ID and bank records.') }}
@error('first_name')
{{ $message }}
@enderror
@error('last_name')
{{ $message }}
@enderror
@error('country_code')
{{ $message }}
@enderror
@error('currency')
{{ $message }}
@enderror
{{-- Section 2: Payout method --}}
2
{{ __('How will they get paid?') }}
{{ __('Pick the payout type — fields below will adapt.') }}
@foreach ($payoutMethods as $method) @php $isOn = old('payout_method', $beneficiary?->payout_method?->value) === $method->value; $sub = match ($method) { PayoutMethod::BankAccount => __('Direct bank transfer · 1–2 days'), PayoutMethod::MobileWallet => __('bKash, M-Pesa, GCash · minutes'), PayoutMethod::CashPickup => __('Pickup partner location'), PayoutMethod::DebitCard => __('Push-to-card · instant'), PayoutMethod::WalletCredit => __('Internal wallet credit'), }; @endphp @endforeach
@error('payout_method')
{{ $message }}
@enderror
{{-- Section 3: Account details (dynamic) --}}
3
{{ __('Account details') }}
{{ __('Exact details from the recipient\'s account or wallet.') }}
@error('account_details')
{{ $message }}
@enderror
{{-- Section 4: Contact (optional) --}}
4
{{ __('Contact (optional)') }}
{{ __('We may use these to notify the recipient when funds arrive.') }}
{{ __('International format with country code.') }}
@error('phone_number')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
{{-- Action bar --}}
{{ __('Cancel') }}
@push('scripts') @endpush