From 44f443966ac04121c1da705d878d16a337abfb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Fri, 20 Feb 2026 14:18:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=EC=88=98=EB=8B=B9=EC=A7=80=EA=B8=89?= =?UTF-8?q?=ED=98=84=ED=99=A9=ED=86=B5=EA=B3=84=20=ED=95=84=ED=84=B0=20UI?= =?UTF-8?q?=20=EA=B0=9C=EC=84=A0=20-=20=EA=B8=B0=EA=B0=84=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EC=B2=B4=ED=81=AC=EB=B0=95=EC=8A=A4,=20=ED=8C=8C?= =?UTF-8?q?=ED=8A=B8=EB=84=88/=EB=A7=A4=EB=8B=88=EC=A0=80=20=EB=93=9C?= =?UTF-8?q?=EB=A1=AD=EB=B0=95=EC=8A=A4=20=EC=A0=9C=EA=B1=B0,=20=EB=86=92?= =?UTF-8?q?=EC=9D=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- .../Finance/SettlementController.php | 22 ++- .../settlement/payment-stats.blade.php | 154 ++++++++++-------- 2 files changed, 106 insertions(+), 70 deletions(-) diff --git a/app/Http/Controllers/Finance/SettlementController.php b/app/Http/Controllers/Finance/SettlementController.php index c33ce375..1fbb700a 100644 --- a/app/Http/Controllers/Finance/SettlementController.php +++ b/app/Http/Controllers/Finance/SettlementController.php @@ -398,10 +398,24 @@ public function paymentStats(Request $request): View|Response // 필터 파라미터 $now = now(); - $startYear = (int) $request->input('start_year', $now->year); - $startMonth = (int) $request->input('start_month', 1); - $endYear = (int) $request->input('end_year', $now->year); - $endMonth = (int) $request->input('end_month', $now->month); + $dateRange = $request->boolean('date_range'); + + if ($dateRange) { + // 기간 범위 모드 + $startYear = (int) $request->input('start_year', $now->year); + $startMonth = (int) $request->input('start_month', 1); + $endYear = (int) $request->input('end_year', $now->year); + $endMonth = (int) $request->input('end_month', $now->month); + } else { + // 단일 월 모드 (기본) + $singleYear = (int) $request->input('year', $now->year); + $singleMonth = (int) $request->input('month', $now->month); + $startYear = $singleYear; + $startMonth = $singleMonth; + $endYear = $singleYear; + $endMonth = $singleMonth; + } + $status = $request->input('status'); $paymentType = $request->input('payment_type'); $partnerId = $request->input('partner_id'); diff --git a/resources/views/finance/settlement/payment-stats.blade.php b/resources/views/finance/settlement/payment-stats.blade.php index 468ddfef..4d191317 100644 --- a/resources/views/finance/settlement/payment-stats.blade.php +++ b/resources/views/finance/settlement/payment-stats.blade.php @@ -5,12 +5,16 @@ @section('content')
{{-- 페이지 헤더 + 필터 통합 --}} -
+

수당지급현황통계

-

- {{ $filters['startYear'] }}년 {{ $filters['startMonth'] }}월 ~ {{ $filters['endYear'] }}년 {{ $filters['endMonth'] }}월 +

+ @if($filters['startYear'] == $filters['endYear'] && $filters['startMonth'] == $filters['endMonth']) + {{ $filters['startYear'] }}년 {{ $filters['startMonth'] }}월 수당 종합 통계 + @else + {{ $filters['startYear'] }}년 {{ $filters['startMonth'] }}월 ~ {{ $filters['endYear'] }}년 {{ $filters['endMonth'] }}월 수당 종합 통계 + @endif

- {{-- 시작 기간 --}} -
-
- - -
- + {{-- 기간설정 체크박스 --}} +
+
- ~ - - {{-- 종료 기간 --}} -
+ {{-- 단일 년/월 (기본) --}} +
- - @for ($y = now()->year; $y >= now()->year - 3; $y--) @endfor
- +
+ + +
-
+ {{-- 기간 범위 (체크 시 표시) --}} +
+
+ + +
+
+ + +
+ ~ +
+ + +
+
+ + +
+
{{-- 상태 --}}
- - @@ -75,55 +109,29 @@ class="inline-flex items-center gap-1 px-3 py-1.5 text-gray-500 hover:text-gray- {{-- 지급유형 --}}
- -
- {{-- 파트너 --}} -
- - -
- - {{-- 매니저 --}} -
- - -
- {{-- 검색어 --}}
- - + +
{{-- 조회 / 초기화 --}} -
+ + {{-- 통계 카드 8개 --}}
{{-- 1. 총 수당 발생액 --}}