fix:쿨다운 → 재등록 대기 기간으로 용어 변경

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
pro
2026-01-28 15:42:40 +09:00
parent b0b34b44bb
commit 8d73cc3f79
5 changed files with 11 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ class TenantProspect extends Model
public const STATUS_CONVERTED = 'converted'; // 테넌트 전환 완료
public const VALIDITY_MONTHS = 2; // 영업권 유효기간 (개월)
public const COOLDOWN_MONTHS = 1; // 쿨다운 기간 (개월)
public const COOLDOWN_MONTHS = 1; // 재등록 대기 기간 (개월)
protected $fillable = [
'business_number',
@@ -102,7 +102,7 @@ public function isConverted(): bool
}
/**
* 쿨다운 중 여부
* 재등록 대기 중 여부
*/
public function isInCooldown(): bool
{
@@ -131,7 +131,7 @@ public function getStatusLabelAttribute(): string
}
if ($this->isInCooldown()) {
return '쿨다운';
return '대기중';
}
return '만료';

View File

@@ -167,7 +167,7 @@ public function canRegister(string $businessNumber, ?int $excludeId = null): arr
];
}
// 쿨다운 중인 경우
// 재등록 대기 중인 경우
$inCooldown = (clone $query)
->where('status', TenantProspect::STATUS_EXPIRED)
->where('cooldown_ends_at', '>', now())
@@ -176,7 +176,7 @@ public function canRegister(string $businessNumber, ?int $excludeId = null): arr
if ($inCooldown) {
return [
'can_register' => false,
'reason' => "쿨다운 기간 중입니다. (등록 가능: {$inCooldown->cooldown_ends_at->format('Y-m-d')})",
'reason' => "재등록 대기 기간 중입니다. (등록 가능: {$inCooldown->cooldown_ends_at->format('Y-m-d')})",
'prospect' => $inCooldown,
];
}

View File

@@ -179,8 +179,8 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none foc
<ul class="text-sm text-blue-700 space-y-1">
<li>등록일로부터 <strong>2개월간</strong> 영업권이 유효합니다.</li>
<li>유효기간 테넌트로 전환 영업 실적으로 인정됩니다.</li>
<li>만료 <strong>1개월간</strong> 쿨다운 기간이 적용됩니다.</li>
<li>쿨다운 이후 다른 영업파트너가 등록할 있습니다.</li>
<li>만료 <strong>1개월간</strong> 재등록 대기 기간이 적용됩니다.</li>
<li>대기 기간 이후 다른 영업파트너가 등록할 있습니다.</li>
</ul>
</div>

View File

@@ -109,7 +109,7 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none foc
@else
<div class="text-gray-500">{{ $prospect->expires_at->format('Y-m-d') }} 만료</div>
@if($prospect->isInCooldown())
<div class="text-xs text-yellow-600">쿨다운: {{ $prospect->cooldown_ends_at->format('Y-m-d') }}</div>
<div class="text-xs text-yellow-600">대기: {{ $prospect->cooldown_ends_at->format('Y-m-d') }}</div>
@endif
@endif
</td>

View File

@@ -107,7 +107,7 @@ class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg transitio
</dd>
</div>
<div class="flex justify-between">
<dt class="text-gray-500">쿨다운 종료일</dt>
<dt class="text-gray-500">대기 종료일</dt>
<dd class="font-medium text-gray-900">{{ $prospect->cooldown_ends_at->format('Y-m-d H:i') }}</dd>
</div>
@if($prospect->isConverted())
@@ -172,7 +172,7 @@ class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg transitio
</div>
@elseif($prospect->isInCooldown())
<div class="bg-yellow-50 border border-yellow-200 rounded-lg p-4">
<h3 class="font-medium text-yellow-800 mb-2">쿨다운 기간</h3>
<h3 class="font-medium text-yellow-800 mb-2">재등록 대기 기간</h3>
<p class="text-sm text-yellow-700">
영업권이 만료되었습니다.
{{ $prospect->cooldown_ends_at->format('Y-m-d') }} 이후 다른 영업파트너가 재등록할 있습니다.
@@ -189,7 +189,7 @@ class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg transitio
<div class="bg-gray-50 border border-gray-200 rounded-lg p-4">
<h3 class="font-medium text-gray-800 mb-2">영업권 만료</h3>
<p class="text-sm text-gray-700">
영업권이 만료되었습니다. 쿨다운 기간이 종료되어 재등록이 가능합니다.
영업권이 만료되었습니다. 대기 기간이 종료되어 재등록이 가능합니다.
</p>
</div>
@endif