@include('referral-auth-suite::partials.icon-fallback') @if (session()->has('alert')) @slot('type', session('alert')['type']) @slot('msg', session('alert')['msg']) @endif @if ($errors->any()) @endif
{{ __('Adoption Snapshot') }}

{{ __('Referral & Phone Auth') }}

{{ __('Users with phone numbers') }}
{{ number_format($stats['users_with_phone']) }}
{{ __('Verified phone users') }}
{{ number_format($stats['verified_phones']) }}
{{ __('Referral signups') }}
{{ number_format($stats['referred_users']) }}
{{ __('Commission issued') }}
{{ \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::money($stats['total_commission_paid'], $settings->reward_currency) }}
{{ __('Pending withdrawals') }}
{{ number_format($stats['pending_withdrawals']) }}

{{ __('Selected OTP devices') }}
@forelse ($selectedDevices as $device)
{{ $device->body }}
{{ $device->user->username ?? __('Unknown owner') }}
{{ $device->status }}
@empty
{{ __('Choose at least one connected device to enable OTP delivery. Add more than one to rotate traffic automatically.') }}
@endforelse
{{ __('Authentication Settings') }}

{{ __('Control how users sign up, how they sign in, which WhatsApp devices send OTPs, and how referral revenue is paid out.') }}

@csrf
{{ __('Authentication Flow') }}

{{ __('Choose how signup and login should work, then configure the OTP sender pool used for phone verification.') }}

{{ __('Single sender supported, rotation starts at 2+ devices') }}
signup_phone_enabled))>
signup_phone_required))>
signup_phone_otp_required))>
allow_referrals))>
allow_cookie_referrals))>
{{ __('Admin fallback access') }}
{{ __('If phone-only login is enabled and OTP sender devices go offline, admins can use the Recovery Sign In form on the password recovery page with username, password, and this emergency code.') }}
{{ __('Select at least one connected device for OTP delivery. If you choose more than one, messages will rotate automatically between them.') }}
{{ __('Available placeholders: :site_name, :otp, :minutes') }}
{{ __('Referral Revenue Settings') }}

{{ __('Set the referral payout model, cookie window, and withdrawal rules from one cleaner control panel.') }}

{{ __('Current reward') }}: {{ \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::rewardPreview() }}
@foreach ($rewardTypes as $rewardTypeKey => $rewardTypeLabel)
@endforeach
%
allow_withdrawals))>
withdrawal_auto_approve))>
@foreach ($withdrawalMethods as $methodKey => $methodLabel)
withdrawal_methods ?? []), true))>
@endforeach
{{ __('Top Referrers') }}

{{ __('Quick visibility into which users are already bringing others into the platform.') }}

@forelse ($topReferrers as $user) @empty @endforelse
{{ __('User') }} {{ __('Referral Code') }} {{ __('Referrals') }}
{{ $user->username }}
{{ $user->email }}
{{ $user->referral_code ?: 'N/A' }} {{ number_format($user->referrals_count) }}
{{ __('No referral activity yet.') }}
{{ __('Withdrawal Requests') }}

{{ __('Review payout requests from referrers and move them through your preferred approval flow.') }}

@forelse ($latestWithdrawals as $withdrawal) @empty @endforelse
{{ __('User ID') }} {{ __('Amount') }} {{ __('Method') }} {{ __('Status') }} {{ __('Account Details') }} {{ __('Action') }}
{{ $withdrawal->user_id }} {{ \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::money((float) $withdrawal->amount, $withdrawal->currency) }} {{ \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::withdrawalMethodOptions()[$withdrawal->method] ?? $withdrawal->method }} {{ $withdrawal->status }} {{ $withdrawal->account_details['account_name'] ?? '' }} {{ $withdrawal->account_details['account_identifier'] ?? '' }}
@csrf
{{ __('No withdrawal requests yet.') }}