@php $isArabic = app()->getLocale() === 'ar'; $supportedLocales = config('app.supported_locales', ['ar', 'en']); $languageNames = ['ar' => 'العربية', 'en' => 'English']; $developmentMode = $developmentMode ?? false; $featuredLoginRoles = ['admin', 'teacher', 'student', 'parent', 'social_worker', 'counselor', 'health_visitor', 'subject_head']; @endphp {{ $isArabic ? 'تخطي إلى نموذج تسجيل الدخول' : 'Skip to sign in form' }}
SM

{{ $isArabic ? 'مرحباً بك في SmartLMS' : 'Welcome to SmartLMS' }}

{{ $isArabic ? 'سجل دخولك للوصول إلى حسابك' : 'Sign in to access your account' }}

@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any()) @endif
@csrf
@error('email')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror
@if ($developmentMode)

{{ $isArabic ? 'دخول سريع (بيئة التطوير)' : 'Quick Login (Dev Mode)' }}

@php $schoolManagerAccount = collect($demoAccounts ?? [])->firstWhere('type', 'admin'); @endphp @if ($schoolManagerAccount)
@csrf
@endif
@foreach ($featuredLoginRoles as $type) @php $isSpecialRole = in_array($type, ['social_worker', 'counselor', 'health_visitor', 'subject_head'], true); $routeName = $isSpecialRole ? route('login.development.role', $type) : route('login.development', $type); $roleLabel = str_replace('_', ' ', $type); @endphp
@csrf
@endforeach
@endif
@include('partials.browser-error-logger')