@props(['rows' => collect(), 'asOf' => now()->toDateString(), 'compact' => false])

Collectors

@unless ($compact) @endunless @forelse ($rows as $row) @php $collectorId = (int) $row->employee->id; $dueTodayUrl = route('loan.book.collections.due_today', ['date' => $asOf, 'collector_id' => $collectorId]); $pastDueUrl = route('loan.book.collections.past_due', ['date' => $asOf, 'collector_id' => $collectorId]); $registerUrl = route('loan.book.collections.register', ['from' => $asOf, 'to' => $asOf]); $casesUrl = route('loan.book.collections.workflow.index'); $ptpUrl = route('loan.book.collections.ptp.index', ['filter' => 'broken', 'collector_id' => $collectorId]); @endphp @unless ($compact) @endunless @empty @endforelse
# Collector Assigned Clients Due Today Collected Today Outstanding Today Past DueCases Broken PTP Money Collected (MTD)Recovery Rate
{{ $loop->iteration }} {{ trim($row->employee->first_name.' '.$row->employee->last_name) }} {{ $row->assigned_clients }} {{ number_format($row->due_today, 0) }} {{ number_format($row->collected_today, 0) }} {{ number_format($row->outstanding_today, 0) }} {{ number_format($row->past_due, 0) }} @if ($row->cases > 0) {{ $row->cases }} @else {{ $row->cases }} @endif @if ($row->broken_ptp > 0) {{ $row->broken_ptp }} @else {{ $row->broken_ptp }} @endif {{ number_format($row->money_collected, 0) }}{{ number_format($row->recovery_rate, 1) }}%
No collectors with assigned portfolio.