refactor educational components and API routes; update form handling in various actions and Vue components, enhance user interface for form display, and improve data retrieval logic in CreateAdmissionPlan job

This commit is contained in:
F4ilji
2025-07-27 12:52:04 +05:00
parent 9a1fcbbf9d
commit a4bdde6382
20 changed files with 961 additions and 72 deletions
@@ -23,8 +23,16 @@ class GetEducationalProgramAction
$formsEdu = $this->getEducationalFormsTask->run();
$seo = $this->getSeoForModelTask->run($this->seoPageProvider, $programModel);
$settingsPage = request()->attributes->get('settings_page') ?? [];
if (array_key_exists('form', $settingsPage)) {
$form = $settingsPage['form'];
} else {
$form = null;
}
$program = new EducationalProgramResource($programModel);
return compact('program', 'formsEdu', 'seo');
return compact('program', 'formsEdu', 'seo', 'form');
}
}