Feat: UI/UX организаций как в назначениях

✅ AJAX добавление/удаление пользователей
✅ AJAX добавление/удаление групп
✅ Modal редактирования организации
✅ Фильтрация GroupSearchController для организаций
✅ Счётчики обновляются без перезагрузки

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
mirivlad
2026-03-31 16:57:26 +08:00
co-authored by Qwen-Coder
parent 7f19cedeee
commit de64be24eb
4 changed files with 472 additions and 154 deletions
+7 -1
View File
@@ -45,8 +45,14 @@ Route::middleware('auth')->group(function () {
// Администрирование
Route::prefix('admin')->name('admin.')->group(function () {
Route::resource('organizations', OrganizationController::class);
Route::resource('organizations', OrganizationController::class)->except(['edit', 'update']);
Route::resource('organizations.groups', GroupController::class);
Route::get('/organizations/{organization}/edit', [OrganizationController::class, 'edit'])->name('organizations.edit');
Route::put('/organizations/{organization}', [OrganizationController::class, 'update'])->name('organizations.update');
Route::post('/organizations/{organization}/users/add', [OrganizationController::class, 'addUser'])->name('organizations.users.add');
Route::delete('/organizations/{organization}/users/{user}/remove', [OrganizationController::class, 'removeUser'])->name('organizations.users.remove');
Route::post('/organizations/{organization}/groups/add', [OrganizationController::class, 'addGroup'])->name('organizations.groups.add');
Route::delete('/organizations/{organization}/groups/{group}/remove', [OrganizationController::class, 'removeGroup'])->name('organizations.groups.remove');
Route::resource('users', UserController::class);
Route::resource('course-categories', CourseCategoryController::class);
Route::resource('courses', CourseController::class);