@foreach($projectData as $data)
@php
// Keep the collection type consistent whether the
// controller passed an array or an Eloquent/Support
// collection, and derive a stable color per developer
// from their name so it never shifts between the
// compact row (original order) and the modal (sorted
// by count).
$devList = collect($data['developerBugCounts']);
$visibleDevs = $devList->take(3);
$remainingCount = $devList->count() - $visibleDevs->count();
$devColor = fn($name) => crc32($name) % 5;
@endphp