fix:매니저 상담 완료 시 내 계약 현황 갱신 오류 수정 및 UI 개선
- refreshTenantList에 prospects 데이터 추가하여 HTMX 갱신 오류 수정 - 내 계약 현황 진행률 UI 개선: - 영업/매니저 프로그래스바 컴팩트 레이아웃 (왼쪽) - 개발 진행 과정 7단계 + 상태 배지 (오른쪽) - 현재 단계 애니메이션 효과 추가 - 상태별 색상 배지로 시각적 구분 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -278,6 +278,12 @@ public function refreshTenantList(Request $request): View
|
||||
// 두 목록 합치기 (중복 제거)
|
||||
$convertedTenantIds = array_unique(array_merge($registeredTenantIds, $managedTenantIds));
|
||||
|
||||
// 3) 내가 등록한 가망고객 (아직 전환되지 않은 것 - active 상태)
|
||||
$prospects = TenantProspect::whereIn('registered_by', $partnerIds)
|
||||
->whereIn('status', [TenantProspect::STATUS_ACTIVE, TenantProspect::STATUS_EXPIRED])
|
||||
->orderBy('created_at', 'desc')
|
||||
->get();
|
||||
|
||||
// 전환된 테넌트만 조회 (최신순, 페이지네이션)
|
||||
$tenants = Tenant::whereIn('id', $convertedTenantIds)
|
||||
->orderBy('created_at', 'desc')
|
||||
@@ -298,6 +304,7 @@ public function refreshTenantList(Request $request): View
|
||||
|
||||
return view('sales.dashboard.partials.tenant-list', compact(
|
||||
'tenants',
|
||||
'prospects',
|
||||
'managements',
|
||||
'allManagers'
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user