feat:영업파트너 관리에 승인 상태 필터 버튼 추가
- 전체/승인완료/승인대기 버튼 형태 필터 추가 - 기존 검색 필터에서 상태 select 제거 (버튼으로 대체) - 검색 시 선택된 승인 상태 유지 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -20,7 +20,7 @@ class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg transition
|
||||
</div>
|
||||
|
||||
<!-- 통계 카드 -->
|
||||
<div class="grid grid-cols-2 md:grid-cols-6 gap-4 mb-6 flex-shrink-0">
|
||||
<div class="grid grid-cols-2 md:grid-cols-6 gap-4 mb-4 flex-shrink-0">
|
||||
<div class="bg-white rounded-lg shadow-sm p-4">
|
||||
<div class="text-sm text-gray-500">전체</div>
|
||||
<div class="text-2xl font-bold text-gray-800">{{ number_format($stats['total']) }}명</div>
|
||||
@@ -47,9 +47,29 @@ class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg transition
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 승인 상태 필터 버튼 -->
|
||||
<div class="flex gap-2 mb-4 flex-shrink-0">
|
||||
<a href="{{ route('sales.managers.index', array_merge(request()->except('approval_status', 'page'), [])) }}"
|
||||
class="px-4 py-2 rounded-lg font-medium transition {{ !request('approval_status') ? 'bg-gray-800 text-white' : 'bg-white text-gray-700 hover:bg-gray-100 border border-gray-300' }}">
|
||||
전체
|
||||
</a>
|
||||
<a href="{{ route('sales.managers.index', array_merge(request()->except('page'), ['approval_status' => 'approved'])) }}"
|
||||
class="px-4 py-2 rounded-lg font-medium transition {{ request('approval_status') === 'approved' ? 'bg-emerald-600 text-white' : 'bg-white text-gray-700 hover:bg-gray-100 border border-gray-300' }}">
|
||||
승인완료
|
||||
</a>
|
||||
<a href="{{ route('sales.managers.index', array_merge(request()->except('page'), ['approval_status' => 'pending'])) }}"
|
||||
class="px-4 py-2 rounded-lg font-medium transition {{ request('approval_status') === 'pending' ? 'bg-yellow-500 text-white' : 'bg-white text-gray-700 hover:bg-gray-100 border border-gray-300' }}">
|
||||
승인대기
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- 필터 영역 -->
|
||||
<div class="flex-shrink-0 mb-4">
|
||||
<form method="GET" class="flex flex-wrap gap-2 sm:gap-4 items-center bg-white p-4 rounded-lg shadow-sm">
|
||||
<!-- 현재 approval_status 유지 -->
|
||||
@if(request('approval_status'))
|
||||
<input type="hidden" name="approval_status" value="{{ request('approval_status') }}">
|
||||
@endif
|
||||
<div class="flex-1 min-w-0 w-full sm:w-auto">
|
||||
<input type="text"
|
||||
name="search"
|
||||
@@ -65,14 +85,6 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none foc
|
||||
<option value="recruiter" {{ request('role') === 'recruiter' ? 'selected' : '' }}>유치담당</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="w-full sm:w-40">
|
||||
<select name="approval_status" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
||||
<option value="">전체 상태</option>
|
||||
<option value="pending" {{ request('approval_status') === 'pending' ? 'selected' : '' }}>승인대기</option>
|
||||
<option value="approved" {{ request('approval_status') === 'approved' ? 'selected' : '' }}>승인완료</option>
|
||||
<option value="rejected" {{ request('approval_status') === 'rejected' ? 'selected' : '' }}>반려</option>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="bg-gray-600 hover:bg-gray-700 text-white px-6 py-2 rounded-lg transition w-full sm:w-auto">
|
||||
검색
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user