Update graduation workflow, promotions, and admin module improvements
This commit is contained in:
@@ -222,8 +222,8 @@
|
||||
$errors->first($targetClassField),
|
||||
$errors->first($notesField),
|
||||
])->filter();
|
||||
$selectedPromote = old($targetClassField, $promoteClasses->firstWhere('id', $recommendation['target_class_id'])?->id ?? ($promoteClasses->first()?->id ?? ''));
|
||||
$selectedRepeat = old($targetClassField, $repeatClasses->firstWhere('id', $recommendation['target_class_id'])?->id ?? ($repeatClasses->first()?->id ?? ''));
|
||||
$selectedPromote = old($targetClassField, $recommendation['action'] === 'promote' ? ($recommendation['target_class_id'] ?? '') : '');
|
||||
$selectedRepeat = old($targetClassField, $recommendation['action'] === 'repeat' ? ($recommendation['target_class_id'] ?? '') : '');
|
||||
$promoteClassOptions = $promoteClasses->map(fn ($classRoom) => [
|
||||
'id' => $classRoom->id,
|
||||
'name' => $classRoom->name,
|
||||
|
||||
Reference in New Issue
Block a user