{{-- 완료 목록 --}}
완료 {{ $completedItems->total() }}건
@forelse($completedItems as $item) @php $tenant = $item->tenant; $prospect = $item->tenantProspect; $companyName = $tenant?->company_name ?? $prospect?->company_name ?? '알 수 없음'; $representativeName = $tenant?->representative_name ?? $prospect?->ceo_name ?? '-'; $businessNumber = $tenant?->business_number ?? $prospect?->business_number ?? '-'; // 담당자 정보 (영업파트너 또는 가망고객 등록자) $salesPersonName = $item->salesPartner?->user?->name ?? $prospect?->registeredBy?->name ?? '-'; $managerName = $item->manager?->name ?? $salesPersonName; // 매니저 없으면 영업담당자와 동일 @endphp
{{ $companyName }}
{{ $representativeName }} | {{ $businessNumber }}
{{-- 완료 정보 --}}
인계 완료
{{ $item->updated_at->format('Y-m-d') }}
{{-- 8단계 프로그레스 바 (완료 상태) --}}
@foreach($hqStatuses as $statusKey => $statusLabel)
{{ $statusLabel }}
@endforeach
{{-- 담당자 정보 --}}
영업: {{ $salesPersonName }} | 매니저: {{ $managerName }}
{{-- 상세 버튼 --}}
@empty
완료된 항목이 없습니다.
@endforelse
@if($completedItems->hasPages())
{{ $completedItems->withQueryString()->links() }}
@endif