diff --git a/app/Models/Sales/TenantProspect.php b/app/Models/Sales/TenantProspect.php index 2a26c052..f196a160 100644 --- a/app/Models/Sales/TenantProspect.php +++ b/app/Models/Sales/TenantProspect.php @@ -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 '만료'; diff --git a/app/Services/Sales/TenantProspectService.php b/app/Services/Sales/TenantProspectService.php index 9ee9e762..94f46c24 100644 --- a/app/Services/Sales/TenantProspectService.php +++ b/app/Services/Sales/TenantProspectService.php @@ -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, ]; } diff --git a/resources/views/sales/prospects/create.blade.php b/resources/views/sales/prospects/create.blade.php index a35ef96a..bd46b8e3 100644 --- a/resources/views/sales/prospects/create.blade.php +++ b/resources/views/sales/prospects/create.blade.php @@ -179,8 +179,8 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none foc diff --git a/resources/views/sales/prospects/index.blade.php b/resources/views/sales/prospects/index.blade.php index 72c0a95e..69276d7f 100644 --- a/resources/views/sales/prospects/index.blade.php +++ b/resources/views/sales/prospects/index.blade.php @@ -109,7 +109,7 @@ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none foc @else
{{ $prospect->expires_at->format('Y-m-d') }} 만료
@if($prospect->isInCooldown()) -
쿨다운: {{ $prospect->cooldown_ends_at->format('Y-m-d') }}
+
대기: {{ $prospect->cooldown_ends_at->format('Y-m-d') }}
@endif @endif diff --git a/resources/views/sales/prospects/show.blade.php b/resources/views/sales/prospects/show.blade.php index 70595094..84e297c3 100644 --- a/resources/views/sales/prospects/show.blade.php +++ b/resources/views/sales/prospects/show.blade.php @@ -107,7 +107,7 @@ class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg transitio
-
쿨다운 종료일
+
대기 종료일
{{ $prospect->cooldown_ends_at->format('Y-m-d H:i') }}
@if($prospect->isConverted()) @@ -172,7 +172,7 @@ class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg transitio @elseif($prospect->isInCooldown())
-

쿨다운 기간

+

재등록 대기 기간

영업권이 만료되었습니다. {{ $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

영업권 만료

- 영업권이 만료되었습니다. 쿨다운 기간이 종료되어 재등록이 가능합니다. + 영업권이 만료되었습니다. 대기 기간이 종료되어 재등록이 가능합니다.

@endif