feat:영업관리 대시보드에 테넌트 및 계약 관리 섹션 추가
- 테넌트 목록 표시 (업체명, 담당자, 등록일) - 계약관리 버튼 (영업 진행, 상세계약 설정, 매니저 진행) - 행 클릭 시 상세 정보 토글 - 신규 테넌트 등록 버튼 제외 (가망고객 관리에서 처리) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Http\Controllers\Sales;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Tenants\Tenant;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\View\View;
|
||||
|
||||
@@ -93,11 +94,17 @@ private function getDashboardData(Request $request): array
|
||||
'confirmed_commission' => 0, // 확정 가입비 수당
|
||||
];
|
||||
|
||||
// 테넌트 목록 (HQ 제외)
|
||||
$tenants = Tenant::where('tenant_type', '!=', 'HQ')
|
||||
->orderBy('created_at', 'desc')
|
||||
->get();
|
||||
|
||||
return compact(
|
||||
'stats',
|
||||
'commissionByRole',
|
||||
'totalCommissionRatio',
|
||||
'tenantStats',
|
||||
'tenants',
|
||||
'period',
|
||||
'year',
|
||||
'month',
|
||||
|
||||
Reference in New Issue
Block a user