{{ $stat['label'] }}
{{ $stat['value'] }}
@extends('layouts.main_dashboard.app') @php $isArabic = app()->getLocale() === 'ar'; $emailTwoFactorEnabled = $user->two_factor_method === 'email'; $authenticatorEnabled = $user->two_factor_method === 'authenticator' && $user->two_factor_confirmed_at; $twoFactorLabel = match ($user->two_factor_method) { 'email' => $isArabic ? 'رمز عبر البريد الإلكتروني' : 'Email Code', 'authenticator' => $user->two_factor_confirmed_at ? 'Google Authenticator' : ($isArabic ? 'Google Authenticator بانتظار التفعيل' : 'Google Authenticator Pending'), default => $isArabic ? 'غير مفعل' : 'Disabled', }; $securityStats = [ [ 'label' => $isArabic ? 'حالة البريد' : 'Email Status', 'value' => $user->hasVerifiedEmail() ? ($isArabic ? 'موثق' : 'Verified') : ($isArabic ? 'بانتظار التحقق' : 'Pending'), ], [ 'label' => $isArabic ? 'التحقق الثنائي' : 'Two-Factor', 'value' => $twoFactorLabel, ], [ 'label' => $isArabic ? 'الجلسات النشطة' : 'Active Sessions', 'value' => $sessions->count(), ], ]; @endphp @section('title', $isArabic ? 'إعدادات الأمان' : 'Security Settings') @section('page_heading', $isArabic ? 'إعدادات الأمان' : 'Security Settings') @section('skip_page_hero', true) @section('content')
{{ $isArabic ? 'غيّر كلمة المرور، راجع الجلسات النشطة، واختر طريقة التحقق الثنائي المناسبة. الصفحة مبسطة ومباشرة بدون خطوات إضافية غير ضرورية.' : 'Change your password, review active sessions, and choose the two-factor method that fits you. This page is intentionally direct and simplified.' }}
{{ $stat['label'] }}
{{ $stat['value'] }}
{{ $isArabic ? 'يفضل استخدام كلمة مرور قوية مع تسجيل الخروج من الأجهزة الأخرى عند الحاجة.' : 'Use a strong password and sign out of other devices when needed.' }}
{{ $isArabic ? 'اختر طريقة الحماية الإضافية المناسبة لحسابك.' : 'Choose the additional protection method for your account.' }}
{{ $isArabic ? 'أدخل الرمز المكوّن من 6 أرقام الذي تم إرساله إلى بريدك الإلكتروني.' : 'Enter the 6-digit code sent to your email address.' }}
@error('email_code'){{ $isArabic ? 'امسح رمز QR أو أدخل المفتاح يدوياً في التطبيق.' : 'Scan the QR code or enter the secret key manually in the app.' }}
{{ $isArabic ? 'أدخل الرمز الحالي من التطبيق لإيقاف التحقق الثنائي.' : 'Enter the current authenticator code to disable two-factor authentication.' }}
@error('disable_authenticator_code'){{ $isArabic ? 'راجع الأجهزة المرتبطة بالحساب حالياً، وسجّل الخروج من أي جهاز غير معروف.' : 'Review devices currently linked to your account and sign out from any unfamiliar one.' }}