adding UserDetailObserver and reorderable records feature

This commit is contained in:
F4ilji
2025-05-13 15:01:03 +05:00
parent c3c468c11a
commit 0314febda2
14 changed files with 165 additions and 273 deletions
@@ -58,6 +58,9 @@ class ClientDepartmentController extends Controller
->where('is_active', true)
->with([
'faculty',
'workers' => fn ($query) => $query->orderBy('sort', 'asc'),
'teachers' => fn ($query) => $query->orderBy('sort', 'asc'),
'programs' => fn ($query) => $query->orderBy('sort', 'asc'),
'workers.userDetail',
'teachers.userDetail',
'programs.directionStudy',