@php $locale = app()->getLocale(); $authUser = auth()->user(); $siteAuth = app(\App\Services\Site\SiteAuthService::class); $recaptchaEnabled = (bool) config('site_auth.recaptcha_enabled', false) && filled(config('services.recaptcha.site_key')); $siteAuthBoot = [ 'authenticated' => auth()->check(), 'user' => $siteAuth->userPayload($authUser), 'resendSeconds' => (int) config('site_auth.otp_resend_seconds', 60), 'passwordLoginEnabled' => site_auth_method_enabled('password'), 'otpLoginEnabled' => site_auth_method_enabled('otp'), 'recaptchaEnabled' => $recaptchaEnabled, 'recaptchaSiteKey' => config('services.recaptcha.site_key'), 'routes' => [ 'sendOtp' => route('site.auth.otp.send', ['locale' => $locale]), 'verifyOtp' => route('site.auth.otp.verify', ['locale' => $locale]), 'passwordLogin' => route('site.auth.password.login', ['locale' => $locale]), 'profile' => route('site.auth.profile', ['locale' => $locale]), 'logout' => route('site.auth.logout', ['locale' => $locale]), 'home' => route('site.home', ['locale' => $locale]), ], 'labels' => [ 'invalid' => __('site.auth_otp_invalid'), 'sendFailed' => __('site.auth_otp_send_failed'), 'sending' => __('site.auth_sending'), 'verifying' => __('site.auth_verifying'), 'passwordInvalid' => __('site.auth_password_invalid'), 'captchaRequired' => __('site.auth_captcha_required'), 'loggingIn' => __('site.auth_logging_in'), ], 'intendedUrl' => session('site.url.intended'), 'openOnLoad' => session('site_auth_required', false), ]; @endphp
{{ __('site.auth_prefer_password') }}
{{ __('site.auth_no_password_hint') }}