@php $settings = \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::settings(); $countries = \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::countryOptions(); $defaultCountry = \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::defaultCountry(); $pending = session('referral_auth.pending_registration', []); $savedCountryIso = old('phone_country_iso', $pending['phone_country_iso'] ?? $defaultCountry['iso']); $savedDialCode = old('phone_dial_code', $pending['phone_dial_code'] ?? $defaultCountry['dial']); $savedPhoneLocal = old('phone_local', $pending['phone_local'] ?? ''); $savedReferralCode = old('referral_code', $pending['referral_code'] ?? \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::currentReferralCode()); $showOtpInput = ! empty($pending['phone_e164']); $isRegistrationOpen = env('REGISTERATION', 'true') == '1'; @endphp @slot('title', __('Register'))
{{ __('Growth Ready') }}

{{ __('Capture users with phone-ready signup and referral momentum.') }}

{{ __('New accounts can arrive with international mobile numbers, OTP verification, and referral attribution built in.') }}

{{ __('Register') }}

{{ __('Launch your account on :site_name.', ['site_name' => config('config.site_name')]) }}

@if (session()->has('alert'))
{{ session('alert')['msg'] }}
@endif @if($isRegistrationOpen)
@csrf
@error('username')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
@if ($settings->signup_phone_enabled)
@error('phone_local')
{{ $message }}
@enderror
@endif @if ($settings->allow_referrals)
@error('referral_code')
{{ $message }}
@enderror
@endif @if ($showOtpInput)
@error('otp_code')
{{ $message }}
@enderror
@endif
@if ($showOtpInput) @else @endif
@else
{{ __('Registration is currently disabled.') }}
@endif

{{ __('Already have account?') }} {{ __('Sign in here') }}