@if ($activeView === 'branches' && count($rankings['top_branches'] ?? []) > 0)
Rankings — branches @if (! empty($rankings['source'])) · same source as branch table @endif

Top portfolio

    @foreach (array_slice($rankings['top_branches'] ?? [], 0, 5) as $row)
  • {{ $row['branch_label'] ?? '—' }} · {{ number_format($row['outstanding_balance'] ?? 0, 0) }}
  • @endforeach

Highest PAR

    @foreach (array_slice($rankings['highest_par'] ?? [], 0, 5) as $row)
  • {{ $row['branch_label'] ?? '—' }} · {{ number_format($row['par30_ratio'] ?? $row['par_percent'] ?? 0, 1) }}%
  • @endforeach
@endif @if ($activeView === 'officers' && count($rankings['top_officers'] ?? []) > 0)
Rankings — officers

Best collections

    @foreach (array_slice($rankings['best_collections'] ?? [], 0, 5) as $row)
  • {{ $row['officer_name'] ?? '—' }}
  • @endforeach

Largest portfolio

    @foreach (array_slice($rankings['largest_portfolio'] ?? [], 0, 5) as $row)
  • {{ $row['officer_name'] ?? '—' }}
  • @endforeach

Bottom collections

    @foreach (array_slice($rankings['bottom_officers'] ?? [], 0, 5) as $row)
  • {{ $row['officer_name'] ?? '—' }}
  • @endforeach
@endif