@php $settings = \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::settings(); $countries = \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::countryOptions(); $defaultCountry = \Plugins\ReferralAuthSuite\Support\ReferralAuthSuite::defaultCountry(); $savedCountryIso = old('phone_country_iso', session('referral_auth.login_country_iso', $defaultCountry['iso'])); $savedDialCode = old('phone_dial_code', session('referral_auth.login_dial_code', $defaultCountry['dial'])); $savedLocal = old('phone_local', session('referral_auth.login_local', '')); $loginMode = $settings->login_mode; $showPasswordForm = $loginMode !== 'phone_otp_only'; $showPhoneForm = $loginMode !== 'username_password'; $otpSent = session('referral_auth.login_phone'); @endphp @slot('title', __('Login'))
{{ __('Modern Access Flow') }}

{{ __('Flexible sign in built for faster conversion.') }}

{{ __('Use classic credentials, phone OTP, or both, depending on how your admin has configured this workspace.') }}

{{ __('Sign In') }}

{{ __('Welcome back to :site_name.', ['site_name' => config('config.site_name')]) }}

@if (session()->has('alert'))
{{ session('alert')['msg'] }}
@endif @if ($showPasswordForm)
@csrf
@error('username')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
{{ __('Reset Password') }}
@endif @if ($showPhoneForm) @if ($showPasswordForm)
{{ __('OR CONTINUE WITH PHONE OTP') }}
@endif
@csrf
@error('phone_local')
{{ $message }}
@enderror
@if ($otpSent)
@error('otp_code')
{{ $message }}
@enderror
@endif
@if ($otpSent) @else @endif
@endif

{{ __("Don't have an account yet?") }} {{ __('Sign up here') }}

@if ($loginMode === 'phone_otp_only')

{{ __('Need recovery access because you have not added your phone number yet?') }}

@endif