Commit d8010595 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix: training_programs query uses status column not is_active

The transfer wizard was querying is_active which doesn't exist on
training_programs table — the column is status with CHECK constraint.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 55e34c49
......@@ -280,7 +280,7 @@ public function render()
$availablePrograms = collect();
$availableGroups = collect();
if ($this->selectedEnrollment && $this->currentStep >= 2) {
$availablePrograms = TrainingProgram::where('is_active', true)
$availablePrograms = TrainingProgram::where('status', 'active')
->orderBy('name_ar')
->get();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment