diff --git a/app/Http/Controllers/Admin/EducationController.php b/app/Http/Controllers/Admin/EducationController.php index 06d1243..56db14f 100644 --- a/app/Http/Controllers/Admin/EducationController.php +++ b/app/Http/Controllers/Admin/EducationController.php @@ -121,6 +121,16 @@ class EducationController extends Controller return redirect()->route('admin.education.edit', ['education' => $education]); } + public function edit_program(ProgramEducation $program, Education $education) { + $id_education = $education->id; + return view('admin.education.program-edit', compact('id_education', 'education', 'program')); + } + + public function update_program(ProgramEducationRequest $request, ProgramEducation $program, Education $education) { + $program->update($request->all()); + return redirect()->route('admin.education.edit', ['education' => $education]); + } + public function delete_program(ProgramEducation $program, Education $education) { $education = $education->id; $program->delete(); diff --git a/resources/views/admin/education/form.blade.php b/resources/views/admin/education/form.blade.php index e697afb..3f2a6ac 100644 --- a/resources/views/admin/education/form.blade.php +++ b/resources/views/admin/education/form.blade.php @@ -101,58 +101,106 @@ @isset($education) -
Специализация | +Описание | +Редактирование | +
---|---|---|
+
+
+
+
+ Специальность: ++ {{$pro->name}} + + |
+ + Описание: {{$pro->text}} + | ++ Изменить | + Удалить + + | +