@php $isArabic = app()->getLocale() === 'ar'; $isEmailMethod = $method === 'email'; $authPageTitle = $isArabic ? 'التحقق الثنائي | SmartLMS' : 'Two-Factor Verification | SmartLMS'; $authBadge = $isArabic ? 'التحقق الثنائي' : 'Two-Factor Verification'; $authBadgeIcon = $isEmailMethod ? 'fa-envelope-circle-check' : 'fa-mobile-screen-button'; $authHeading = $isArabic ? 'خطوة أمان إضافية قبل الدخول' : 'One more security step before access'; $authDescription = $isArabic ? 'تم التعرف على أن الحساب يحتاج طبقة حماية إضافية. أدخل الرمز المطلوب لإكمال تسجيل الدخول بشكل آمن.' : 'This account requires an extra protection layer. Enter the requested code to complete sign in securely.'; $authPanelLabel = $isArabic ? 'تأكيد الهوية' : 'Identity Confirmation'; $authFormHeading = $isArabic ? 'أدخل رمز التحقق' : 'Enter the verification code'; $authFormDescription = $isEmailMethod ? ($isArabic ? 'تحقق من بريدك الإلكتروني ثم أدخل الرمز المكوّن من 6 أرقام قبل انتهاء صلاحيته.' : 'Check your email and enter the 6-digit code before it expires.') : ($isArabic ? 'افتح تطبيق المصادقة وأدخل الرمز الحالي المكوّن من 6 أرقام لإكمال الدخول.' : 'Open your authenticator app and enter the current 6-digit code to continue.'); $authHighlights = [ [ 'icon' => $isEmailMethod ? 'fa-envelope' : 'fa-qrcode', 'title' => $isEmailMethod ? ($isArabic ? 'رمز عبر البريد' : 'Code via email') : ($isArabic ? 'رمز من التطبيق' : 'Code from app'), 'description' => $isEmailMethod ? ($isArabic ? 'يتم إرسال رمز مؤقت إلى بريد المستخدم المسجّل لتأكيد الملكية قبل فتح الجلسة.' : 'A temporary code is sent to the registered email to confirm ownership before opening the session.') : ($isArabic ? 'يعتمد التحقق على تطبيق المصادقة المرتبط مسبقًا بالحساب.' : 'Verification relies on the authenticator app already linked to the account.'), ], [ 'icon' => 'fa-stopwatch', 'title' => $isArabic ? 'مهلة قصيرة وآمنة' : 'Short secure window', 'description' => $isArabic ? 'الرمز صالح لفترة محدودة، ما يقلّل فرص الاستخدام غير المصرّح به.' : 'The code is only valid for a limited period, reducing the chance of unauthorized use.', ], [ 'icon' => 'fa-door-open', 'title' => $isArabic ? 'دخول بعد التحقق' : 'Access after verification', 'description' => $isArabic ? 'بعد قبول الرمز ينتقل المستخدم مباشرة إلى اللوحة المناسبة لنوع حسابه.' : 'After the code is accepted, the user is taken directly to the correct dashboard for their account type.', ], ]; $authSideStats = [ [ 'value' => '6', 'label' => $isArabic ? 'أرقام الرمز' : 'Code Digits', 'description' => $isArabic ? 'أدخل الرمز كاملًا بدون مسافات.' : 'Enter the full code without spaces.', ], [ 'value' => '10', 'label' => $isArabic ? 'دقائق الصلاحية' : 'Minutes Valid', 'description' => $isArabic ? 'في حالة البريد الإلكتروني يتم تجديد الرمز عند إعادة الإرسال.' : 'For email verification, a fresh code is generated when resending.', ], [ 'value' => '24/7', 'label' => $isArabic ? 'حماية الجلسة' : 'Session Protection', 'description' => $isArabic ? 'التحقق الإضافي يحمي الحساب حتى لو تسرّبت كلمة المرور.' : 'Extra verification protects the account even if the password is exposed.', ], ]; @endphp @extends('auth.layouts.app') @section('form')
@csrf

{{ $isEmailMethod ? ($isArabic ? 'التحقق عبر البريد الإلكتروني' : 'Email verification') : ($isArabic ? 'التحقق عبر تطبيق المصادقة' : 'Authenticator verification') }}

{{ $isEmailMethod ? ($isArabic ? 'أرسلنا رمزًا مؤقتًا إلى بريدك الإلكتروني. أدخله هنا لإكمال تسجيل الدخول.' : 'We sent a temporary code to your email. Enter it here to complete sign in.') : ($isArabic ? 'أدخل الرمز الحالي من تطبيق المصادقة المرتبط بحسابك.' : 'Enter the current code from the authenticator app linked to your account.') }}

@if (! $isEmailMethod && $otpAuthUrl)

{{ $isArabic ? 'رابط الإعداد الاحتياطي' : 'Fallback setup URI' }}

{{ $isArabic ? 'إذا كنت تضبط التطبيق يدويًا، يمكنك استخدام الرابط التالي.' : 'If you are setting up the app manually, you can use the following URI.' }}

{{ $otpAuthUrl }}
@endif
@endsection @section('footer')
@if ($isEmailMethod)
@csrf
@endif

{{ $isArabic ? 'دخلت بحساب مختلف أو تريد البدء من جديد؟' : 'Using another account or want to restart?' }} {{ $isArabic ? 'العودة إلى تسجيل الدخول' : 'Back to sign in' }}

@endsection