refactor:영업담당자 → 영업파트너 용어 변경 및 드롭다운 로직 수정

- 전체 코드에서 '영업담당자' → '영업파트너'로 용어 통일
- 관리 드롭다운: 모든 HQ 사용자 → 내가 유치한 하위 영업파트너만 표시
- User.php children() 관계 활용

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
pro
2026-01-29 07:57:30 +09:00
parent 92c4e15273
commit 9f6218bc07
6 changed files with 14 additions and 15 deletions

View File

@@ -118,11 +118,10 @@ private function getDashboardData(Request $request): array
->get()
->keyBy('tenant_id');
// HQ 매니저 목록 (드롭다운용) - 본인 제외
$allManagers = User::whereHas('tenants', function ($query) {
$query->where('tenant_type', 'HQ');
})->where('id', '!=', auth()->id())
->get(['id', 'name', 'email']);
// 내가 유치한 영업파트너 목록 (드롭다운용)
$allManagers = auth()->user()->children()
->where('is_active', true)
->get(['id', 'name', 'email']);
return compact(
'stats',