fix:영업관리 대시보드 기간 설정 기능 추가
This commit is contained in:
@@ -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'
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user