Admin · Call center

Lots à appeler

Priorisez les lots avec un contact utile en 10 s.

@foreach($statuses as $key => $label) @endforeach
@forelse($lots as $lot) @php $tender = $lot->tender; $selectedScore = $lot->call_company_id ? $lot->callCandidates->firstWhere('company_id', $lot->call_company_id) : null; $primaryCandidate = $selectedScore ? $selectedScore->company : optional($lot->callCandidates->first())->company; $primaryScore = optional($selectedScore)->proximity_score ?? optional($lot->callCandidates->first())->proximity_score ?? optional($lot->bestCompanyScore)->proximity_score; $phone = is_array($primaryCandidate?->contact_phones ?? null) ? ($primaryCandidate->contact_phones[0] ?? null) : null; $email = is_array($primaryCandidate?->contact_emails ?? null) ? ($primaryCandidate->contact_emails[0] ?? null) : null; @endphp @empty @endforelse
Lot AO Entreprise à appeler Suivi
Lot {{ $lot->number ?? '—' }} — {{ str($lot->title)->limit(70) }}
{{ $lot->lot_key }}
Secteurs: {{ $lot->sector_names ? implode(', ', $lot->sector_names) : '—' }}
{{ str($tender->title)->limit(70) }}
{{ $tender->buyer_name ?? 'Acheteur inconnu' }} · {{ $tender->region ?? 'Région ?' }}
Date limite: {{ $tender->deadline_at?->format('d/m H:i') ?? '—' }}
@if($primaryCandidate)
{{ $primaryCandidate->name }}
Score {{ $primaryScore ? number_format($primaryScore, 1) : '—' }} / 100
@if($phone)
📞 {{ $phone }}
@elseif($email)
✉️ {{ $email }}
@else
Pas de contact
@endif @else Aucune entreprise @endif
@php $statusValue = $lot->call_status ?? \App\Support\CallCenter::defaultStatus(); @endphp {{ \App\Support\CallCenter::label($statusValue) }}
@if($lot->last_call_at) Dernier call {{ $lot->last_call_at->diffForHumans() }} @else Jamais appelé @endif
@if($lot->call_notes)
{{ str($lot->call_notes)->limit(90) }}
@endif
Voir / Appeler
Aucun lot ne correspond à ces filtres.
{{ $lots->links() }}