fix:상세모달 승인/반려 버튼 관리자 전용으로 변경
- 일반 영업파트너에게는 '본사 운영팀에서 승인 처리 예정' 메시지 표시 - 승인/반려 버튼은 isAdmin() 체크로 관리자에게만 표시 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -46,7 +46,14 @@
|
||||
</svg>
|
||||
<div class="flex-1">
|
||||
<h3 class="font-semibold text-yellow-800 text-sm">승인 대기 중</h3>
|
||||
<p class="text-xs text-yellow-700 mt-1">첨부된 서류를 확인 후 승인 또는 반려해주세요.</p>
|
||||
<p class="text-xs text-yellow-700 mt-1">
|
||||
@if(auth()->user()->isAdmin())
|
||||
첨부된 서류를 확인 후 승인 또는 반려해주세요.
|
||||
@else
|
||||
본사 운영팀에서 승인 처리 예정입니다.
|
||||
@endif
|
||||
</p>
|
||||
@if(auth()->user()->isAdmin())
|
||||
<div class="mt-3 flex gap-2">
|
||||
<form action="{{ route('sales.managers.approve', $partner->id) }}" method="POST" class="inline">
|
||||
@csrf
|
||||
@@ -75,6 +82,7 @@ class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user