feat:고객관리 상세 모달에 총 개발비/구독료 표시 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-19 17:27:44 +09:00
parent 6970726bd9
commit 1d90411308

View File

@@ -104,13 +104,31 @@
<!-- 계약 납입 정보 -->
<div class="bg-emerald-50 rounded-lg p-4 mb-6">
<h3 class="text-sm font-semibold text-emerald-700 mb-3">계약 납입 정보</h3>
<div class="grid grid-cols-3 gap-4">
@php
$totalRegFee = $management->total_registration_fee ?? $management->contractProducts->sum('registration_fee') ?? 0;
$totalSubFee = $management->contractProducts->sum('subscription_fee') ?? 0;
@endphp
<div class="grid grid-cols-3 gap-4 mb-3">
<div>
<p class="text-sm text-gray-500">계약일</p>
<p class="font-medium {{ $management->contracted_at ? 'text-blue-600' : 'text-gray-400' }}">
{{ $management->contracted_at ? $management->contracted_at->format('Y-m-d') : '-' }}
</p>
</div>
<div>
<p class="text-sm text-gray-500"> 개발비</p>
<p class="font-medium {{ $totalRegFee > 0 ? 'text-emerald-700' : 'text-gray-400' }}">
{{ $totalRegFee > 0 ? number_format($totalRegFee) . '원' : '-' }}
</p>
</div>
<div>
<p class="text-sm text-gray-500">구독료 ()</p>
<p class="font-medium {{ $totalSubFee > 0 ? 'text-emerald-700' : 'text-gray-400' }}">
{{ $totalSubFee > 0 ? number_format($totalSubFee) . '원' : '-' }}
</p>
</div>
</div>
<div class="grid grid-cols-3 gap-4">
<div>
<p class="text-sm text-gray-500">1 납입</p>
<p class="font-medium {{ $commission?->first_payment_at ? 'text-emerald-600' : 'text-gray-400' }}">