@forelse($progressItems as $item)
@php
$tenant = $item->tenant;
$companyName = $tenant?->company_name ?? '알 수 없음';
$currentHqStep = $hqStatusOrder[$item->hq_status ?? 'pending'] ?? 0;
@endphp
{{ $companyName }}
{{ $tenant?->business_number ?? '-' }}
{{ $item->updated_at->format('m/d') }}
{{-- 7단계 프로그레스 바 --}}
@foreach($hqStatuses as $statusKey => $statusLabel)
@if($statusKey !== 'pending')
@php
$stepNum = $hqStatusOrder[$statusKey];
$isCompleted = $stepNum < $currentHqStep;
$isCurrent = $stepNum === $currentHqStep;
@endphp
@endif
@endforeach
{{ $item->hq_status_label }}
{{-- 상태 변경 드롭다운 --}}
{{-- 담당자 정보 --}}
영업: {{ $item->salesPartner?->user?->name ?? '-' }}
|
매니저: {{ $item->manager?->name ?? '-' }}
{{-- 상세 버튼 --}}