fix: [leave] 휴가신청 탭 기본 종료일을 연말로 변경

- 미래 날짜 휴가가 기본 필터에서 제외되는 문제 수정
- date_to 기본값: today → endOfYear
This commit is contained in:
김보곤
2026-03-05 16:06:16 +09:00
parent 810242ecdf
commit 1b85a26f1d

View File

@@ -97,7 +97,7 @@ class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:ring-2 f
<div style="flex: 0 1 150px;">
<label class="block text-xs text-gray-500 mb-1">종료일</label>
<input type="date" name="date_to"
value="{{ now()->toDateString() }}"
value="{{ now()->endOfYear()->toDateString() }}"
class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<div class="shrink-0">
@@ -113,7 +113,7 @@ class="px-4 py-2 bg-gray-600 hover:bg-gray-700 text-white text-sm rounded-lg tra
{{-- HTMX 테이블 영역 --}}
<div id="leaves-table"
hx-get="{{ route('api.admin.hr.leaves.index') }}"
hx-vals='{"date_from": "{{ now()->startOfYear()->toDateString() }}", "date_to": "{{ now()->toDateString() }}"}'
hx-vals='{"date_from": "{{ now()->startOfYear()->toDateString() }}", "date_to": "{{ now()->endOfYear()->toDateString() }}"}'
hx-trigger="load"
hx-headers='{"X-CSRF-TOKEN": "{{ csrf_token() }}"}'
class="min-h-[200px]">