fix:상세모달 헤더에서 중복 역할 뱃지 제거
- 역할은 아래 '역할 관리' 섹션에서만 표시 - 승인 상태 뱃지만 헤더에 유지 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,30 +5,9 @@
|
||||
<div>
|
||||
<h2 class="text-xl font-bold text-gray-800">{{ $partner->name }}</h2>
|
||||
<p class="text-sm text-gray-500 mt-1">레벨 {{ $level }} 영업파트너</p>
|
||||
<div class="flex items-center gap-2 mt-2">
|
||||
@foreach($partner->userRoles as $userRole)
|
||||
@php
|
||||
$roleColor = match($userRole->role->name ?? '') {
|
||||
'sales' => 'bg-blue-100 text-blue-800',
|
||||
'manager' => 'bg-purple-100 text-purple-800',
|
||||
'recruiter' => 'bg-green-100 text-green-800',
|
||||
default => 'bg-gray-100 text-gray-800',
|
||||
};
|
||||
$roleLabel = match($userRole->role->name ?? '') {
|
||||
'sales' => '영업',
|
||||
'manager' => '매니저',
|
||||
'recruiter' => '유치담당',
|
||||
default => $userRole->role->name ?? '-',
|
||||
};
|
||||
@endphp
|
||||
<span class="px-2 py-1 text-xs font-medium rounded-full {{ $roleColor }}">
|
||||
{{ $roleLabel }}
|
||||
</span>
|
||||
@endforeach
|
||||
<span class="px-2 py-1 text-xs font-medium rounded-full {{ $partner->approval_status_color }}">
|
||||
{{ $partner->approval_status_label }}
|
||||
</span>
|
||||
</div>
|
||||
<span class="inline-block mt-2 px-2 py-1 text-xs font-medium rounded-full {{ $partner->approval_status_color }}">
|
||||
{{ $partner->approval_status_label }}
|
||||
</span>
|
||||
</div>
|
||||
<button type="button" onclick="typeof closeDetailModal !== 'undefined' ? closeDetailModal() : closePartnerModal()" class="text-gray-400 hover:text-gray-600">
|
||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
|
||||
Reference in New Issue
Block a user