diff --git a/app/Http/Controllers/Sales/SalesDashboardController.php b/app/Http/Controllers/Sales/SalesDashboardController.php index 145b82bf..9b640923 100644 --- a/app/Http/Controllers/Sales/SalesDashboardController.php +++ b/app/Http/Controllers/Sales/SalesDashboardController.php @@ -541,7 +541,7 @@ private function getPartnerActivityData(): array // 직접 유치한 하위 파트너 목록 (parent_id가 현재 사용자인 사용자들) $recruitedPartners = User::where('parent_id', $currentUserId) ->where('is_active', true) - ->with(['userRoles.role']) + ->with(['userRoles.role', 'salesPartner']) ->get(); $partnerIds = $recruitedPartners->pluck('id')->toArray(); diff --git a/resources/views/sales/dashboard/partials/partner-activity.blade.php b/resources/views/sales/dashboard/partials/partner-activity.blade.php index 7760613d..20068bcf 100644 --- a/resources/views/sales/dashboard/partials/partner-activity.blade.php +++ b/resources/views/sales/dashboard/partials/partner-activity.blade.php @@ -319,6 +319,14 @@ {{ $activity['role_label'] }} + {{-- 유형 배지 --}} + @if($activity['partner']->salesPartner) + @if($activity['partner']->salesPartner->partner_type === 'corporate') + 단체 + @else + 개인 + @endif + @endif {{-- 상태 배지 --}} {{ $statusLabels[$activity['status']] ?? '비활동' }}