@php $portal = $portal ?? 'student'; $configs = [ 'school' => [ 'title' => 'School Admin Portal', 'subtitle' => 'Administrative Dashboard Access', 'gradientFrom' => 'purple-600', 'gradientTo' => 'fuchsia-700', 'ring' => 'focus:ring-purple-500', 'text' => 'text-purple-600', 'bgLight' => 'bg-purple-50', 'borderLight' => 'border-purple-100', 'textLight' => 'text-purple-700', 'shadow' => 'shadow-purple-200', 'icon' => 'fa-user-shield', 'input_name' => 'email', 'input_label' => 'User ID / Email', 'input_icon' => 'fa-user', 'placeholder' => 'Enter your User ID', 'route' => 'school.login.post', ], 'student' => [ 'title' => 'Student Portal', 'subtitle' => 'Access your academic dashboard', 'gradientFrom' => 'blue-600', 'gradientTo' => 'indigo-700', 'ring' => 'focus:ring-blue-500', 'text' => 'text-blue-600', 'bgLight' => 'bg-blue-50', 'borderLight' => 'border-blue-100', 'textLight' => 'text-blue-700', 'shadow' => 'shadow-blue-200', 'icon' => 'fa-user-graduate', 'input_name' => 'user_id', 'input_label' => 'User ID', 'input_icon' => 'fa-id-card', 'placeholder' => 'Enter your unique ID', 'route' => 'student.login.post', ], 'staff' => [ 'title' => 'Staff Portal', 'subtitle' => 'Access your teaching dashboard', 'gradientFrom' => 'amber-500', 'gradientTo' => 'orange-600', 'ring' => 'focus:ring-amber-500', 'text' => 'text-amber-600', 'bgLight' => 'bg-amber-50', 'borderLight' => 'border-amber-100', 'textLight' => 'text-amber-700', 'shadow' => 'shadow-amber-200', 'icon' => 'fa-chalkboard-user', 'input_name' => 'employee_code', 'input_label' => 'Employee Code', 'input_icon' => 'fa-id-card', 'placeholder' => 'Enter employee code', 'route' => 'staff.login.post', ], ]; $config = $configs[$portal] ?? $configs['school']; // Portal switcher order: Student → Staff → School $allPortals = [ 'student' => ['label' => 'Student', 'icon' => 'fa-user-graduate', 'color' => 'blue', 'route' => 'student.login'], 'staff' => ['label' => 'Staff', 'icon' => 'fa-chalkboard-user', 'color' => 'amber', 'route' => 'staff.login'], 'school' => ['label' => 'Admin', 'icon' => 'fa-user-shield', 'color' => 'purple', 'route' => 'school.login'], ]; @endphp
@if($portal === 'student') @elseif($portal === 'staff') @endif