From 41e7eca92d0ebfe41b3f6712bd86362fc3812fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Thu, 19 Feb 2026 09:00:51 +0900 Subject: [PATCH] =?UTF-8?q?feat:=EC=9C=A0=EC=B9=98=20=ED=8C=8C=ED=8A=B8?= =?UTF-8?q?=EB=84=88=20=ED=98=84=ED=99=A9=EC=97=90=20=EA=B0=9C=EC=9D=B8/?= =?UTF-8?q?=EB=8B=A8=EC=B2=B4=20=EC=9C=A0=ED=98=95=20=EB=B0=B0=EC=A7=80=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- app/Http/Controllers/Sales/SalesDashboardController.php | 2 +- .../sales/dashboard/partials/partner-activity.blade.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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']] ?? '비활동' }}