feat:계약 현황 페이지네이션 추가 (10건 단위)

- 최신 계약이 상단에 표시되도록 정렬
- 10건 초과 시 HTMX 페이지네이션 표시
- 현재 페이지 범위 및 총 건수 표시

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
pro
2026-01-29 07:51:41 +09:00
parent 3ebae96a7f
commit 92c4e15273
3 changed files with 71 additions and 4 deletions

View File

@@ -105,10 +105,11 @@ private function getDashboardData(Request $request): array
->pluck('tenant_id')
->toArray();
// 전환된 테넌트만 조회
// 전환된 테넌트만 조회 (최신순, 페이지네이션)
$tenants = Tenant::whereIn('id', $convertedTenantIds)
->orderBy('created_at', 'desc')
->get();
->paginate(10)
->withQueryString();
// 각 테넌트의 영업 관리 정보 로드
$tenantIds = $tenants->pluck('id')->toArray();