fix:영업관리 대시보드 기간 설정 기능 추가

This commit is contained in:
pro
2026-01-27 19:06:36 +09:00
parent d1fb001e28
commit 7fbd04f4ee
2 changed files with 91 additions and 9 deletions

View File

@@ -21,6 +21,15 @@ public function index(Request $request): View
$year = $request->input('year', now()->year);
$month = $request->input('month', now()->month);
// 기간 설정 모드일 경우
if ($period === 'custom') {
$startDate = $request->input('start_date', now()->startOfMonth()->format('Y-m-d'));
$endDate = $request->input('end_date', now()->format('Y-m-d'));
} else {
$startDate = now()->startOfMonth()->format('Y-m-d');
$endDate = now()->endOfMonth()->format('Y-m-d');
}
// 통계 데이터 (임시 데이터 - 추후 실제 데이터로 교체)
$stats = [
'total_membership_fee' => 0, // 총 가입비
@@ -62,7 +71,9 @@ public function index(Request $request): View
'totalCommissionRatio',
'period',
'year',
'month'
'month',
'startDate',
'endDate'
));
}
}