request()->input('search'), ]; return Inertia::render('Client/Persons/Index', compact('persons', 'filters')); } public function show(string $id) { $person = new ClientFullInfoPersonResource(User::query()->with(['userDetail', 'departments_work.faculty', 'departments_teach.faculty', 'divisions', 'faculties'])->where('id', $id)->firstOrFail()); return Inertia::render('Client/Persons/Show', compact('person')); } }