refactor: [business-card] 메뉴 2개로 분리 (파트너 명함신청 / 명함신청 처리)
- 파트너 명함신청 (/sales/business-cards): 모든 사용자 (신청폼+이력) - 명함신청 처리 (/sales/business-cards/manage): 관리자 전용 (2분할) - 뱃지를 manage 라우트에 연동
This commit is contained in:
@@ -60,12 +60,12 @@ public function boot(): void
|
||||
$menuBadges['byUrl']['/sales/managers/approvals'] = $approvalStats['pending'];
|
||||
}
|
||||
|
||||
// 명함신청 대기 건수
|
||||
// 명함신청 대기 건수 (관리자용 처리 메뉴에 표시)
|
||||
$businessCardService = app(BusinessCardRequestService::class);
|
||||
$businessCardPending = $businessCardService->getPendingCount();
|
||||
if ($businessCardPending > 0) {
|
||||
$menuBadges['byRoute']['sales.business-cards.index'] = $businessCardPending;
|
||||
$menuBadges['byUrl']['/sales/business-cards'] = $businessCardPending;
|
||||
$menuBadges['byRoute']['sales.business-cards.manage'] = $businessCardPending;
|
||||
$menuBadges['byUrl']['/sales/business-cards/manage'] = $businessCardPending;
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
// 서비스 오류 시 무시
|
||||
|
||||
Reference in New Issue
Block a user