{{-- Payments open stays server-driven: the credential fields are rendered per driver ($credentialKeys) and the driver select is wire:model.live, so the server must build the right form. render() here is light (no big count), so the open round-trip is quick. CLOSE is client-side via wire-model below. --}}
@forelse ($methods as $m) @empty @endforelse
{{ __('Payment Method') }} {{ __('Driver') }} {{ __('Min') }} {{ __('Max') }} {{ __('New Users') }} {{ __('Status') }} {{ __('Action') }}
{{ $m->name }} {{ $allDriverLabels[$m->driver] ?? ucfirst($m->driver) }} {{ money($m->min) }} {{ money($m->max) }}
@error('form.name')

{{ $message }}

@enderror
@error('form.max')

{{ $message }}

@enderror
{{-- Encrypted gateway credentials / payment instructions --}}
@if (($form['driver'] ?? 'manual') === 'manual')

{{ __('Payment instructions') }}

@else

{{ __('Credentials') }}

@endif @php $credLabels = [ 'publishable_key' => 'Publishable Key (pk_…)', 'secret_key' => 'Secret Key (sk_…)', 'webhook_secret' => 'Webhook Secret (whsec_…)', 'mode' => 'Mode (live or sandbox)', 'client_id' => 'Client ID', 'webhook_id' => 'Webhook ID', 'api_key' => 'Binance API Key (for auto-verification — optional)', 'api_secret' => 'Binance API Secret (for auto-verification — optional)', 'crypto_currency' => 'Crypto currency (e.g. USDT)', 'binance_pay_id' => 'Binance Pay ID (numeric ID, e.g. 84857040)', 'currency' => 'Crypto currency (e.g. USDT)', 'instructions' => 'Payment instructions (shown to the customer) — leave blank to keep', 'key_id' => 'Key ID', 'key_secret' => 'Key Secret', 'public_key' => 'Public Key', ]; @endphp
@foreach ($credentialKeys as $key) @php $label = $credLabels[$key] ?? ucwords(str_replace('_', ' ', $key)); @endphp @if ($key === 'instructions') @else @endif @endforeach
@if (($form['driver'] ?? 'manual') !== 'manual')

{{ __('Stored encrypted. The payment engine reads these at checkout.') }}

@endif
{{-- Payment Details Image — ONLY for Manual / Bank transfer driver. Upload a QR code, a wallet number, a bank account screenshot or any image that shows the customer WHERE and HOW to send the money. The client will see this image in the "Add Funds" step before uploading their proof. Accepted: JPG, PNG, GIF — max 4 MB. --}} @if (($form['driver'] ?? 'manual') === 'manual')

{{ __('Payment details image') }} ({{ __('optional — payment QR, account details, etc.') }})

{{-- Preview of the currently stored image --}} @if ($existingImageUrl && ! $bankTransferImage)
{{ __('Current payment image') }}

{{ __('Current image') }}

{{ __('Upload a new image below to replace it.') }}

@endif {{-- Livewire temp preview once a new file is chosen --}} @if ($bankTransferImage)
{{ __('New image preview') }}

✓ {{ __('New image ready to save') }}

{{ __('Click "Save settings" to apply.') }}

@endif @error('bankTransferImage')

{{ $message }}

@enderror

{{ __('This image is shown to the client when they select Bank Transfer so they know exactly where to send the money.') }}

@endif