fix:테넌트 목록을 현재 사용자가 등록한 것만 표시

- registered_by로 현재 로그인 사용자가 등록한 테넌트만 조회
- 영업 진행 버튼 → 영업실적 등록 페이지 연결
- 상세계약 설정 버튼 → 테넌트 편집 페이지 연결
- 매니저 진행 버튼 → 영업담당자 관리 페이지 연결
- 삭제 버튼에 확인 다이얼로그 추가

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
pro
2026-01-28 20:22:54 +09:00
parent f993d3de79
commit 70300ccf3a
2 changed files with 52 additions and 17 deletions

View File

@@ -94,8 +94,10 @@ private function getDashboardData(Request $request): array
'confirmed_commission' => 0, // 확정 가입비 수당
];
// 테넌트 목록 (HQ 제외)
// 테넌트 목록 (현재 로그인한 사용자가 등록한 테넌트만)
$currentUser = auth()->user();
$tenants = Tenant::where('tenant_type', '!=', 'HQ')
->where('registered_by', $currentUser->id)
->orderBy('created_at', 'desc')
->get();